Skip to content

Commit

Permalink
Upgrade wire and golang (kubemod#73)
Browse files Browse the repository at this point in the history
* Upgrade wire and golang
  • Loading branch information
vassilvk authored Sep 6, 2021
1 parent a57f209 commit 91408bb
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: '1.14.7'
go-version: '1.17.0'

- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: '1.14.7'
go-version: '1.17.0'

- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/topic-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: '1.14.7'
go-version: '1.17.0'

- uses: actions/checkout@v2

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

## Unreleased

- 72: Upgrade to wire 0.5.0 and golang 1.17
- 67: Update upgrade instructions to explicitly delete certificate generation job

## 0.13.0 - 2021-05-15
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.14.7 as builder
FROM golang:1.17.0 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ docker-push:
# Develop in docker
docker-develop:
docker run --rm -it -v $(PWD):/go/src/kubemod -w /go/src/kubemod \
--entrypoint bash golang:1.14.7
--entrypoint bash golang:1.17.0

# find or download controller-gen
# download controller-gen if necessary
Expand All @@ -96,7 +96,7 @@ ifeq (, $(shell which controller-gen))
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
cd $$CONTROLLER_GEN_TMP_DIR ;\
go mod init tmp ;\
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5 ;\
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5 ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
Expand All @@ -112,7 +112,7 @@ ifeq (, $(shell which wire))
WIRE_TMP_DIR=$$(mktemp -d) ;\
cd $$WIRE_TMP_DIR ;\
go mod init tmp ;\
go get github.com/google/wire/cmd/wire@v0.4.0 ;\
go install github.com/google/wire/cmd/wire@v0.5.0 ;\
rm -rf $$WIRE_TMP_DIR ;\
}
WIRE=$(GOBIN)/wire
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/webapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func run(router *gin.Engine, webAppAddr string, log logr.Logger) {
}()

// Wait for interrupt signal to gracefully shutdown the server with a timeout of 10 seconds.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)

// kill (no param) default send syscall.SIGTERM
// kill -2 is syscall.SIGINT
Expand Down
3 changes: 2 additions & 1 deletion app/wire.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build wireinject
//go:build wireinject
// +build wireinject

/*
Licensed under the BSD 3-Clause License (the "License");
Expand Down
5 changes: 3 additions & 2 deletions app/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion core/wire.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build wireinject
//go:build wireinject
// +build wireinject

/*
Licensed under the BSD 3-Clause License (the "License");
Expand Down
7 changes: 5 additions & 2 deletions core/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/evanphx/json-patch/v5 v5.1.0
github.com/gin-gonic/gin v1.6.3
github.com/go-logr/logr v0.1.0
github.com/google/wire v0.4.0
github.com/google/wire v0.5.0
github.com/hexops/gotextdiff v1.0.3
github.com/onsi/ginkgo v1.14.1
github.com/onsi/gomega v1.10.2
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/wire v0.4.0 h1:kXcsA/rIGzJImVqPdhfnr6q0xsS9gU0515q1EPpJ9fE=
github.com/google/wire v0.4.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
Expand Down

0 comments on commit 91408bb

Please sign in to comment.