-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7,815 changed files
with
280 additions
and
2,689,549 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
* | ||
|
||
!go.mod | ||
!go.sum | ||
|
||
!cmd/ | ||
!pkg/ | ||
!vendor/ | ||
!test/ | ||
|
||
**/Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- goconst | ||
- gofmt | ||
- golint | ||
- gosimple | ||
- ineffassign | ||
- interfacer | ||
- misspell | ||
- staticcheck | ||
- unconvert | ||
- varcheck | ||
- vet | ||
- vetshadow | ||
- errcheck | ||
|
||
run: | ||
|
||
# timeout for analysis | ||
timeout: 5m | ||
|
||
# include test files or not, default is true | ||
tests: false | ||
|
||
skip-dirs: | ||
- test | ||
|
||
issues: | ||
|
||
# List of regexps of issue texts to exclude | ||
exclude: | ||
- "comment on" | ||
- "error should be the last" | ||
- "should have comment" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
FROM golang:1.10-alpine3.7 | ||
FROM golang:1.14-alpine3.11 AS builder | ||
|
||
RUN apk --update --no-cache add \ | ||
git \ | ||
gcc \ | ||
musl-dev | ||
|
||
WORKDIR /go/src/github.com/v3io/scaler | ||
WORKDIR /autoscaler | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN go get github.com/v3io/scaler-types | ||
RUN GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-s -w" -o autoscaler cmd/autoscaler/main.go | ||
|
||
FROM alpine:3.11 | ||
|
||
RUN mkdir -p /home/v3io/bin \ | ||
&& GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-s -w" -o /home/v3io/bin/autoscaler cmd/autoscaler/main.go \ | ||
&& rm -rf /go/src/github/v3io/scaler | ||
COPY --from=builder /autoscaler/autoscaler /home/v3io/bin/autoscaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
FROM golang:1.10-alpine3.7 | ||
FROM golang:1.14-alpine3.11 AS builder | ||
|
||
RUN apk --update --no-cache add \ | ||
git \ | ||
gcc \ | ||
musl-dev | ||
|
||
WORKDIR /go/src/github.com/v3io/scaler | ||
WORKDIR /dlx | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN go get github.com/v3io/scaler-types | ||
RUN GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-s -w" -o dlx cmd/dlx/main.go | ||
|
||
FROM alpine:3.11 | ||
|
||
RUN mkdir -p /home/v3io/bin \ | ||
&& GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-s -w" -o /home/v3io/bin/dlx cmd/dlx/main.go \ | ||
&& rm -rf /go/src/github/v3io/scaler | ||
COPY --from=builder /dlx/dlx /home/v3io/bin/dlx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module github.com/v3io/scaler | ||
|
||
go 1.14 | ||
|
||
require ( | ||
github.com/ghodss/yaml v1.0.0 // indirect | ||
github.com/gogo/protobuf v1.2.1 // indirect | ||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect | ||
github.com/golang/protobuf v1.3.5 // indirect | ||
github.com/googleapis/gnostic v0.4.1 // indirect | ||
github.com/howeyc/gopass v0.0.0-20170109162249-bf9dde6d0d2c // indirect | ||
github.com/imdario/mergo v0.3.7 // indirect | ||
github.com/json-iterator/go v1.1.7 // indirect | ||
github.com/mattn/go-colorable v0.1.2 // indirect | ||
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.1 // indirect | ||
github.com/nuclio/errors v0.0.2 | ||
github.com/nuclio/logger v0.0.1 | ||
github.com/nuclio/zap v0.0.2 | ||
github.com/pavius/zap v1.4.2-0.20180228181622-8d52692529b8 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/spf13/pflag v1.0.3 // indirect | ||
github.com/stretchr/objx v0.2.0 // indirect | ||
github.com/stretchr/testify v1.5.1 | ||
github.com/v3io/scaler-types v1.5.0 | ||
go.uber.org/atomic v1.4.0 // indirect | ||
go.uber.org/multierr v1.1.0 // indirect | ||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect | ||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect | ||
golang.org/x/text v0.3.2 // indirect | ||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
k8s.io/api v0.0.0-20180713172427-0f11257a8a25 // indirect | ||
k8s.io/apimachinery v0.0.0-20180619225948-e386b2658ed2 | ||
k8s.io/client-go v7.0.0+incompatible | ||
k8s.io/metrics v0.0.0-20190116212108-c656f2547d11 | ||
) |
Oops, something went wrong.