Skip to content

Commit 863420a

Browse files
authored
Merge pull request #94 from cybertec-postgresql/UpdateGo
Update go
2 parents d70f3eb + 78a1f9b commit 863420a

File tree

13 files changed

+20
-76
lines changed

13 files changed

+20
-76
lines changed

.github/workflows/publish_ghcr_image.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/run_e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: "^1.23.4"
17+
go-version: "^1.25.2"
1818
- name: Make dependencies
1919
run: make deps mocks
2020
- name: Code generation

.github/workflows/run_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: "^1.23.4"
17+
go-version: "^1.25.2"
1818
- name: Make dependencies
1919
run: make deps mocks
2020
- name: Compile

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ docker-local: build/cybertec-pg-operator
8989

9090

9191
indocker-race:
92-
docker run --rm -v "${GOPATH}":"${GOPATH}" -e GOPATH="${GOPATH}" -e RACE=1 -w ${PWD} golang:1.23.4 bash -c "make linux"
92+
docker run --rm -v "${GOPATH}":"${GOPATH}" -e GOPATH="${GOPATH}" -e RACE=1 -w ${PWD} golang:1.25.2 bash -c "make linux"
9393

9494
push:
9595
docker push "$(IMAGE):$(TAG)$(CDP_TAG)"

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module github.com/cybertec-postgresql/cybertec-pg-operator
22

3-
go 1.23.4
3+
go 1.25.2
44

55
require (
6+
github.com/Masterminds/semver v1.5.0
67
github.com/aws/aws-sdk-go v1.55.8
78
github.com/golang/mock v1.6.0
89
github.com/lib/pq v1.10.4
@@ -33,7 +34,6 @@ require (
3334
)
3435

3536
require (
36-
github.com/Masterminds/semver v1.5.0 // indirect
3737
github.com/davecgh/go-spew v1.1.1 // indirect
3838
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
3939
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
@@ -65,15 +65,15 @@ require (
6565
go.uber.org/atomic v1.7.0 // indirect
6666
go.uber.org/multierr v1.6.0 // indirect
6767
go.uber.org/zap v1.19.0 // indirect
68-
golang.org/x/mod v0.26.0 // indirect
68+
golang.org/x/mod v0.27.0 // indirect
6969
golang.org/x/net v0.43.0 // indirect
7070
golang.org/x/oauth2 v0.30.0 // indirect
7171
golang.org/x/sync v0.16.0 // indirect
7272
golang.org/x/sys v0.35.0 // indirect
7373
golang.org/x/term v0.34.0 // indirect
7474
golang.org/x/text v0.28.0 // indirect
7575
golang.org/x/time v0.3.0 // indirect
76-
golang.org/x/tools v0.35.0 // indirect
76+
golang.org/x/tools v0.36.0 // indirect
7777
google.golang.org/protobuf v1.36.6 // indirect
7878
gopkg.in/inf.v0 v0.9.1 // indirect
7979
gopkg.in/yaml.v3 v3.0.1 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB
274274
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
275275
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
276276
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
277-
golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg=
278-
golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ=
277+
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
278+
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
279279
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
280280
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
281281
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -352,8 +352,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
352352
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
353353
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
354354
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
355-
golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
356-
golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=
355+
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
356+
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
357357
golang.org/x/tools/go/expect v0.1.0-deprecated h1:jY2C5HGYR5lqex3gEniOQL0r7Dq5+VGVgY1nudX5lXY=
358358
golang.org/x/tools/go/expect v0.1.0-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
359359
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM=

kubectl-pg/go.mod

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

3-
go 1.24.6
3+
go 1.25.2
44

55
require (
66
github.com/cybertec-postgresql/cybertec-pg-operator v0.8.2

pkg/cluster/k8sres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (c *Cluster) enforceMinResourceLimits(resources *v1.ResourceRequirements) e
188188
if isSmaller {
189189
msg = fmt.Sprintf("defined CPU limit %s for %q container is below required minimum %s and will be increased",
190190
cpuLimit.String(), constants.PostgresContainerName, minCPULimit)
191-
c.logger.Warningf(msg)
191+
c.logger.Warningf("%s", msg)
192192
c.eventRecorder.Eventf(c.GetReference(), v1.EventTypeWarning, "ResourceLimits", msg)
193193
resources.Limits[v1.ResourceCPU], _ = resource.ParseQuantity(minCPULimit)
194194
}
@@ -205,7 +205,7 @@ func (c *Cluster) enforceMinResourceLimits(resources *v1.ResourceRequirements) e
205205
if isSmaller {
206206
msg = fmt.Sprintf("defined memory limit %s for %q container is below required minimum %s and will be increased",
207207
memoryLimit.String(), constants.PostgresContainerName, minMemoryLimit)
208-
c.logger.Warningf(msg)
208+
c.logger.Warningf("%s", msg)
209209
c.eventRecorder.Eventf(c.GetReference(), v1.EventTypeWarning, "ResourceLimits", msg)
210210
resources.Limits[v1.ResourceMemory], _ = resource.ParseQuantity(minMemoryLimit)
211211
}

pkg/cluster/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ func (c *Cluster) updateSecret(
10991099
}
11001100

11011101
if updateSecret {
1102-
c.logger.Debugln(updateSecretMsg)
1102+
c.logger.Debugln("%s", updateSecretMsg)
11031103
if _, err = c.KubeClient.Secrets(secret.Namespace).Update(context.TODO(), secret, metav1.UpdateOptions{}); err != nil {
11041104
return fmt.Errorf("could not update secret %s: %v", secretName, err)
11051105
}

pkg/cluster/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ func (c *Cluster) getTeamMembers(teamID string) ([]string, error) {
269269
if teamID == "" {
270270
msg := "no teamId specified"
271271
if c.OpConfig.EnableTeamIdClusternamePrefix {
272-
return nil, fmt.Errorf(msg)
272+
return nil, fmt.Errorf("%s", msg)
273273
}
274-
c.logger.Warnf(msg)
274+
c.logger.Warnf("%s", msg)
275275
return nil, nil
276276
}
277277

0 commit comments

Comments
 (0)