Skip to content

Commit 6f0994d

Browse files
Upgrade OPM to version from to
1 parent 0da7ea3 commit 6f0994d

File tree

7 files changed

+34
-12
lines changed

7 files changed

+34
-12
lines changed

changelog/fragments/upgrade-opm.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
For All-based Operators, upgrade OPM to version from `v1.23.0` to `v1.55.0`, which includes several bug fixes and
6+
improvements. For further information, see: https://github.com/operator-framework/operator-registry/releases
7+
kind: "change"
8+
breaking: false
9+
migration:
10+
header: Upgrade OPM version to v1.55.0 in the Makefile
11+
body: |
12+
Update the OPM version in your Makefile to `v1.55.0`:
13+
14+
```makefile
15+
-const opmVersion = "v1.23.0"
16+
+const opmVersion = "v1.55.0"
17+
```
18+
19+
```makefile
20+
- curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.23.0/$${OS}-$${ARCH}-opm ;\
21+
+ curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.55.0/$${OS}-$${ARCH}-opm ;\
22+
```

go.mod

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

3-
go 1.23.6
3+
go 1.24.3
44

55
require (
66
github.com/blang/semver/v4 v4.0.0
77
github.com/fatih/structtag v1.2.0
8-
github.com/go-logr/logr v1.4.2
8+
github.com/go-logr/logr v1.4.3
99
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
1010
github.com/iancoleman/strcase v0.3.0
1111
github.com/kr/text v0.2.0
@@ -45,10 +45,6 @@ require (
4545
sigs.k8s.io/yaml v1.4.0
4646
)
4747

48-
// https://github.com/kubernetes/apiserver/issues/116
49-
// reevaluate when we bump to k8s v1.33.0
50-
replace github.com/google/cel-go => github.com/google/cel-go v0.22.1
51-
5248
require (
5349
cel.dev/expr v0.23.1 // indirect
5450
dario.cat/mergo v1.0.1 // indirect
@@ -302,3 +298,7 @@ require (
302298
sigs.k8s.io/kustomize/kyaml v0.18.1 // indirect
303299
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
304300
)
301+
302+
// https://github.com/kubernetes/apiserver/issues/116
303+
// reevaluate when we bump to k8s v1.33.0
304+
replace github.com/google/cel-go => github.com/google/cel-go v0.22.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2
180180
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
181181
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
182182
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
183-
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
184-
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
183+
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
184+
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
185185
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
186186
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
187187
github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ=

internal/plugins/manifests/v2/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535

3636
// Version of `opm` to download and use for building index images.
3737
// This version's release artifacts *must* contain a binary for multiple arches; certain releases do not.
38-
const opmVersion = "v1.23.0"
38+
const opmVersion = "v1.55.0"
3939

4040
const filePath = "Makefile"
4141

testdata/go/v4/memcached-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ ifeq (,$(shell which opm 2>/dev/null))
308308
set -e ;\
309309
mkdir -p $(dir $(OPM)) ;\
310310
OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
311-
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.23.0/$${OS}-$${ARCH}-opm ;\
311+
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.55.0/$${OS}-$${ARCH}-opm ;\
312312
chmod +x $(OPM) ;\
313313
}
314314
else

testdata/go/v4/monitoring/memcached-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ ifeq (,$(shell which opm 2>/dev/null))
323323
set -e ;\
324324
mkdir -p $(dir $(OPM)) ;\
325325
OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
326-
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.23.0/$${OS}-$${ARCH}-opm ;\
326+
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.55.0/$${OS}-$${ARCH}-opm ;\
327327
chmod +x $(OPM) ;\
328328
}
329329
else

testdata/helm/memcached-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ ifeq (,$(shell which opm 2>/dev/null))
198198
@{ \
199199
set -e ;\
200200
mkdir -p $(dir $(OPM)) ;\
201-
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.23.0/$(OS)-$(ARCH)-opm ;\
201+
curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.55.0/$(OS)-$(ARCH)-opm ;\
202202
chmod +x $(OPM) ;\
203203
}
204204
else

0 commit comments

Comments
 (0)