Skip to content

Commit

Permalink
Update to go 1.21
Browse files Browse the repository at this point in the history
This change updates the version of Go being used from 1.19 > 1.21

Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Jan 21, 2024
1 parent a61e129 commit 503f208
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 29 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GOLANG_BUILDER=golang:1.19
ARG GOLANG_BUILDER=golang:1.21
ARG OPERATOR_BASE_IMAGE=gcr.io/distroless/static:nonroot

# Build the manager binary
Expand Down Expand Up @@ -49,16 +49,16 @@ ARG IMAGE_TAGS="cn-openstack openstack"

# Labels required by upstream and osbs build system
LABEL com.redhat.component="${IMAGE_COMPONENT}" \
name="${IMAGE_NAME}" \
version="${IMAGE_VERSION}" \
summary="${IMAGE_SUMMARY}" \
io.k8s.name="${IMAGE_NAME}" \
io.k8s.description="${IMAGE_DESC}" \
io.openshift.tags="${IMAGE_TAGS}"
name="${IMAGE_NAME}" \
version="${IMAGE_VERSION}" \
summary="${IMAGE_SUMMARY}" \
io.k8s.name="${IMAGE_NAME}" \
io.k8s.description="${IMAGE_DESC}" \
io.openshift.tags="${IMAGE_TAGS}"
### DO NOT EDIT LINES ABOVE

ENV USER_UID=$USER_ID \
OPERATOR_TEMPLATES=/usr/share/infra-operator/templates/
OPERATOR_TEMPLATES=/usr/share/infra-operator/templates/

WORKDIR /

Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/openstack-k8s-operators/infra-operator

go 1.21

toolchain go1.21.1

require (
github.com/go-logr/logr v1.4.1
github.com/google/uuid v1.5.0
Expand Down
51 changes: 32 additions & 19 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
{
"extends": [
"github>openstack-k8s-operators/renovate-config:default.json5"
],
"constraints": {
"go": "1.19"
},
"baseBranches": ["main"],
"useBaseBranchConfig": "merge",
"packageRules": [
{
"matchPackageNames": ["github.com/openstack-k8s-operators/infra-operator/apis"],
"enabled": false
}
],
"postUpgradeTasks": {
"commands": ["make gowork", "make tidy", "make manifests generate"],
"fileFilters": ["**/go.mod", "**/go.sum", "**/*.go", "**/*.yaml"],
"executionMode": "update"
}
"extends": [
"github>openstack-k8s-operators/renovate-config:default.json5"
],
"constraints": {
"go": "1.21"
},
"baseBranches": [
"main"
],
"useBaseBranchConfig": "merge",
"packageRules": [
{
"matchPackageNames": [
"github.com/openstack-k8s-operators/infra-operator/apis"
],
"enabled": false
}
],
"postUpgradeTasks": {
"commands": [
"make gowork",
"make tidy",
"make manifests generate"
],
"fileFilters": [
"**/go.mod",
"**/go.sum",
"**/*.go",
"**/*.yaml"
],
"executionMode": "update"
}
}

0 comments on commit 503f208

Please sign in to comment.