Skip to content

Commit

Permalink
Upgrade golang 1.18 and packages (#102)
Browse files Browse the repository at this point in the history
* upgrade golang application and upgrade packages to fix vulunerability

* upgrade golang image in build stage

* add go list vendor

* upgrade golang to 1.18

* upgrade kind image to test helmchart
  • Loading branch information
msharbaji authored Jul 2, 2022
1 parent f1e19b9 commit bb11ba2
Show file tree
Hide file tree
Showing 3 changed files with 643 additions and 143 deletions.
6 changes: 3 additions & 3 deletions .estafette.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ stages:
build-lint-and-package:
parallelStages:
build:
image: golang:1.15.2-alpine3.12
image: golang:1.18-alpine
env:
CGO_ENABLED: 0
GOOS: linux
commands:
- go test ./...
- go test `go list ./... | grep -v /vendor/`
- go build -a -installsuffix cgo -ldflags "-X main.version=${ESTAFETTE_BUILD_VERSION} -X main.revision=${ESTAFETTE_GIT_REVISION} -X main.branch=${ESTAFETTE_GIT_BRANCH} -X main.buildDate=${ESTAFETTE_BUILD_DATETIME}" -o ./publish/${ESTAFETTE_GIT_NAME} .

lint-helm-chart:
Expand Down Expand Up @@ -66,7 +66,7 @@ stages:
test-helm-chart:
services:
- name: kubernetes
image: bsycorp/kind:latest-1.17
image: bsycorp/kind:latest-1.21
readiness:
path: /kubernetes-ready
port: 10080
Expand Down
90 changes: 73 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,78 @@
module github.com/estafette/estafette-gke-preemptible-killer

go 1.12
go 1.18

require (
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 // indirect
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 // indirect
github.com/alecthomas/kingpin v2.2.5+incompatible
github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 // indirect
github.com/estafette/estafette-foundation v0.0.69
github.com/golang/mock v1.4.1
github.com/google/go-intervals v0.0.0-20171120085516-250c62ad245e
github.com/mattn/go-isatty v0.0.6 // indirect
github.com/prometheus/client_golang v0.9.2
github.com/rs/zerolog v1.17.2
github.com/sergi/go-diff v1.0.0 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
google.golang.org/api v0.20.0
k8s.io/api v0.21.0
k8s.io/apimachinery v0.21.0
k8s.io/client-go v0.21.0
github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/estafette/estafette-foundation v0.0.75
github.com/golang/mock v1.6.0
github.com/google/go-intervals v0.0.2
github.com/prometheus/client_golang v1.12.2
github.com/rs/zerolog v1.27.0
golang.org/x/oauth2 v0.0.0-20220630143837-2104d58473e0
google.golang.org/api v0.86.0
k8s.io/api v0.24.2
k8s.io/apimachinery v0.24.2
k8s.io/client-go v0.24.2
)

require (
cloud.google.com/go/compute v1.7.0 // indirect
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/swag v0.21.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.35.0 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
golang.org/x/net v0.0.0-20220630215102-69896b714898 // indirect
golang.org/x/sys v0.0.0-20220702020025-31831981b65f // indirect
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220630174209-ad1d48641aa7 // indirect
google.golang.org/grpc v1.47.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.70.0 // indirect
k8s.io/kube-openapi v0.0.0-20220627174259-011e075b9cb8 // indirect
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
sigs.k8s.io/json v0.0.0-20220525155127-227cbc7cc124 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)
Loading

0 comments on commit bb11ba2

Please sign in to comment.