Skip to content

Commit 2a28d66

Browse files
authored
updating project to use go 1.23 and UBI 9.5 (#6883)
Signed-off-by: Adam D. Cornett <[email protected]>
1 parent a995724 commit 2a28d66

File tree

27 files changed

+54
-53
lines changed

27 files changed

+54
-53
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fix: ## Fixup files in the repo.
5858

5959
.PHONY: setup-lint
6060
setup-lint: ## Setup the lint
61-
$(SCRIPTS_DIR)/fetch golangci-lint 1.54.0
61+
$(SCRIPTS_DIR)/fetch golangci-lint 1.62.2
6262

6363
.PHONY: lint
6464
lint: setup-lint ## Run the lint check

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/operator-framework/operator-sdk
22

3-
go 1.22.5
3+
go 1.23.4
44

55
require (
66
github.com/blang/semver/v4 v4.0.0

hack/generate/samples/internal/go/memcached-with-customization/memcached_with_customization.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func GenerateSample(binaryPath, samplesPath string) {
5252
errorInfo += monitoringString
5353
}
5454

55-
log.Infof(logInfo)
55+
log.Info(logInfo)
5656
ctx, err := pkg.NewSampleContext(binaryPath, filepath.Join(samplesPath, "memcached-operator"), "GO111MODULE=on")
5757
pkg.CheckError(errorInfo, err)
5858

@@ -71,7 +71,7 @@ func (mh *Memcached) Prepare() {
7171
logInfo += monitoringString
7272
}
7373

74-
log.Infof(logInfo)
74+
log.Info(logInfo)
7575
mh.ctx.Destroy()
7676

7777
log.Infof("creating directory")

images/custom-scorecard-tests/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the custom-scorecard-tests binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.23 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace
@@ -17,7 +17,7 @@ COPY . .
1717
RUN GOOS=linux GOARCH=$TARGETARCH make build/custom-scorecard-tests
1818

1919
# Final image.
20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
2121

2222
ENV HOME=/opt/custom-scorecard-tests \
2323
USER_NAME=custom-scorecard-tests \

images/helm-operator/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.23 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace
@@ -17,7 +17,7 @@ COPY . .
1717
RUN GOOS=linux GOARCH=$TARGETARCH make build/helm-operator
1818

1919
# Final image.
20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
2121

2222
ENV HOME=/opt/helm \
2323
USER_NAME=helm \

images/operator-sdk/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the operator-sdk binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.23 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace
@@ -17,10 +17,10 @@ COPY . .
1717
RUN GOOS=linux GOARCH=$TARGETARCH make build/operator-sdk
1818

1919
# Final image.
20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
2121

2222
# TODO: Figure out how to take the go binary from the builder image so this doesn't have to be maintained.
23-
ENV GO_VERSION=1.22.5
23+
ENV GO_VERSION=1.23.4
2424

2525
ARG TARGETARCH
2626
RUN microdnf install -y make gcc which tar gzip

images/scorecard-test-kuttl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the scorecard-test-kuttl binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.23 AS builder
33
ARG TARGETARCH
44
ARG BUILDPLATFORM
55

images/scorecard-test/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the scorecard-test binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.23 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace
@@ -17,7 +17,7 @@ COPY . .
1717
RUN GOOS=linux GOARCH=$TARGETARCH make build/scorecard-test
1818

1919
# Final image.
20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
2121

2222
ENV HOME=/opt/scorecard-test \
2323
USER_NAME=scorecard-test \

images/scorecard-untar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/ubi:9.4-1214.1726694543
1+
FROM registry.access.redhat.com/ubi9/ubi:9.5
22

33
## Create a new non-root user to run as
44
ENV HOME=/opt/scorecard-untar \

internal/cmd/helm-operator/run/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func NewCmd() *cobra.Command {
7575
cmd := &cobra.Command{
7676
Use: "run",
7777
Short: "Run the operator",
78-
Args: func(cmd *cobra.Command, args []string) error {
78+
Args: func(cmd *cobra.Command, _ []string) error {
7979
if cmd.Flag("metrics-require-rbac").Value.String() == "true" && cmd.Flag("metrics-secure").Value.String() == "false" {
8080
return errors.New("--metrics-secure flag is required when --metrics-require-rbac is present")
8181
}

0 commit comments

Comments
 (0)