Skip to content

Commit d0632e5

Browse files
authored
Merge pull request #466 from c3d/issue/465-version-number-bump-devel
Bump OSC version to 1.8.0, and document where version appears
2 parents 8877ce1 + e2a4c34 commit d0632e5

File tree

10 files changed

+50
-36
lines changed

10 files changed

+50
-36
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To re-generate a bundle for another specific version without changing the standard setup, you can:
44
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6-
VERSION ?= 1.7.0
6+
VERSION ?= 1.8.0 ## OSC_VERSION
77

88
# CHANNELS define the bundle channels used in the bundle.
99
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")

bundle/manifests/sandboxed-containers-operator.clusterserviceversion.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metadata:
2121
features.operators.openshift.io/token-auth-aws: "false"
2222
features.operators.openshift.io/token-auth-azure: "false"
2323
features.operators.openshift.io/token-auth-gcp: "false"
24-
olm.skipRange: '>=1.1.0 <1.7.0'
24+
olm.skipRange: '>=1.1.0 <1.8.0' ## OSC_VERSION
2525
operatorframework.io/suggested-namespace: openshift-sandboxed-containers-operator
2626
operators.openshift.io/valid-subscription: '["OpenShift Container Platform", "OpenShift
2727
Platform Plus"]'
@@ -32,7 +32,7 @@ metadata:
3232
labels:
3333
operatorframework.io/arch.amd64: supported
3434
operatorframework.io/os.linux: supported
35-
name: sandboxed-containers-operator.v1.7.0
35+
name: sandboxed-containers-operator.v1.8.0 ## OSC_VERSION
3636
spec:
3737
apiservicedefinitions: {}
3838
customresourcedefinitions:
@@ -411,25 +411,25 @@ spec:
411411
- name: PEERPODS_NAMESPACE
412412
value: openshift-sandboxed-containers-operator
413413
- name: RELATED_IMAGE_KATA_MONITOR
414-
value: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.7.0
414+
value: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.8.0 ## OSC_VERSION
415415
- name: SANDBOXED_CONTAINERS_EXTENSION
416416
value: kata-containers
417417
- name: RELATED_IMAGE_CAA
418-
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.7.0
418+
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.8.0 ## OSC_VERSION
419419
- name: RELATED_IMAGE_PEERPODS_WEBHOOK
420-
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.7.0
420+
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.8.0 ## OSC_VERSION
421421
- name: RELATED_IMAGE_PODVM_BUILDER
422-
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
422+
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
423423
- name: RELATED_IMAGE_PODVM_PAYLOAD
424-
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.7.0
424+
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.8.0 ## OSC_VERSION
425425
envFrom:
426426
- secretRef:
427427
name: peer-pods-secret
428428
optional: true
429429
- configMapRef:
430430
name: peer-pods-cm
431431
optional: true
432-
image: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator:v1.7.0
432+
image: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator:v1.8.0 ## OSC_VERSION
433433
imagePullPolicy: Always
434434
name: manager
435435
ports:
@@ -566,18 +566,18 @@ spec:
566566
provider:
567567
name: Red Hat
568568
relatedImages:
569-
- image: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.7.0
569+
- image: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.8.0 ## OSC_VERSION
570570
name: kata-monitor
571-
- image: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.7.0
571+
- image: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.8.0 ## OSC_VERSION
572572
name: caa
573-
- image: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.7.0
573+
- image: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.8.0 ## OSC_VERSION
574574
name: peerpods-webhook
575-
- image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
575+
- image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
576576
name: podvm-builder
577-
- image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.7.0
577+
- image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.8.0 ## OSC_VERSION
578578
name: podvm-payload
579-
replaces: sandboxed-containers-operator.v1.6.0
580-
version: 1.7.0
579+
replaces: sandboxed-containers-operator.v1.7.0 ## OSC_VERSION_BEFORE
580+
version: 1.8.0 ## VERSION
581581
webhookdefinitions:
582582
- admissionReviewVersions:
583583
- v1

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator
16-
newTag: v1.7.0
16+
newTag: v1.8.0 ## OSC_VERSION

config/manager/manager.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ spec:
7777
- name: PEERPODS_NAMESPACE
7878
value: "openshift-sandboxed-containers-operator"
7979
- name: RELATED_IMAGE_KATA_MONITOR
80-
value: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.7.0
80+
value: registry.redhat.io/openshift-sandboxed-containers/osc-monitor-rhel9:1.8.0 ## OSC_VERSION
8181
- name: SANDBOXED_CONTAINERS_EXTENSION
8282
value: kata-containers
8383
- name: RELATED_IMAGE_CAA
84-
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.7.0
84+
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9:1.8.0 ## OSC_VERSION
8585
- name: RELATED_IMAGE_PEERPODS_WEBHOOK
86-
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.7.0
86+
value: registry.redhat.io/openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9:1.8.0 ## OSC_VERSION
8787
- name: RELATED_IMAGE_PODVM_BUILDER
88-
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
88+
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
8989
- name: RELATED_IMAGE_PODVM_PAYLOAD
90-
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.7.0
90+
value: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.8.0 ## OSC_VERSION
9191
imagePullPolicy: Always
9292
resources:
9393
limits:

config/manifests/bases/sandboxed-containers-operator.clusterserviceversion.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ metadata:
2020
features.operators.openshift.io/token-auth-aws: "false"
2121
features.operators.openshift.io/token-auth-azure: "false"
2222
features.operators.openshift.io/token-auth-gcp: "false"
23-
olm.skipRange: '>=1.1.0 <1.7.0'
23+
olm.skipRange: '>=1.1.0 <1.8.0' ## OSC_VERSION
2424
operatorframework.io/suggested-namespace: openshift-sandboxed-containers-operator
2525
operators.openshift.io/valid-subscription: '["OpenShift Container Platform", "OpenShift
2626
Platform Plus"]'
@@ -31,7 +31,7 @@ metadata:
3131
labels:
3232
operatorframework.io/arch.amd64: supported
3333
operatorframework.io/os.linux: supported
34-
name: sandboxed-containers-operator.v1.7.0
34+
name: sandboxed-containers-operator.v1.8.0 ## OSC_VERSION
3535
spec:
3636
apiservicedefinitions: {}
3737
customresourcedefinitions:
@@ -372,8 +372,8 @@ spec:
372372
minKubeVersion: 1.28.0
373373
provider:
374374
name: Red Hat
375-
replaces: sandboxed-containers-operator.v1.6.0
376-
version: 1.7.0
375+
replaces: sandboxed-containers-operator.v1.7.0 ## OSC_VERSION_BEFORE
376+
version: 1.8.0 ## OSC_VERSION
377377
webhookdefinitions:
378378
- admissionReviewVersions:
379379
- v1

config/peerpods/podvm/osc-podvm-create-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
# /podvm-binaries.tar.gz /payload/podvm-binaries.tar.gz
1616
initContainers:
1717
- name: copy
18-
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.7.0
18+
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.8.0 ## OSC_VERSION
1919
command: ["/bin/sh", "-c"]
2020
args:
2121
- |
@@ -29,7 +29,7 @@ spec:
2929
- name: create
3030
# Binaries like kubectl, packer and yq are expected to be under /usr/local/bin
3131
# podvm binaries are expected to be under /payload/podvm-binaries.tar.gz
32-
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
32+
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
3333
# This image contains the following
3434
# azure-podvm-image-handler.sh script under /scripts/azure-podvm-image-handler.sh
3535
# aws-podvm-image-handler.sh script under /scripts/aws-podvm-image-handler.sh

config/peerpods/podvm/osc-podvm-delete-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
# aws-podvm-image-handler.sh script under /scripts/aws-podvm-image-handler.sh
2020
# sources for cloud-api-adaptor under /src/cloud-api-adaptor
2121
# Binaries like kubectl, packer and yq under /usr/local/bin
22-
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
22+
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
2323
securityContext:
2424
runAsUser: 0 # needed for container mode dnf access
2525
env:

config/peerpods/podvm/osc-podvm-gallery-delete-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: delete-gallery
16-
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.7.0
16+
image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-builder-rhel9:1.8.0 ## OSC_VERSION
1717
securityContext:
1818
runAsUser: 0 # needed for container mode dnf access
1919
envFrom:

config/samples/deploy.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77
DisplayName: My Operator Catalog
88
sourceType: grpc
9-
image: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator-catalog:v1.7.0
9+
image: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator-catalog:v1.8.0 ## OSC_VERSION
1010
updateStrategy:
1111
registryPoll:
1212
interval: 5m
@@ -36,5 +36,4 @@ spec:
3636
name: sandboxed-containers-operator
3737
source: my-operator-catalog
3838
sourceNamespace: openshift-marketplace
39-
startingCSV: sandboxed-containers-operator.v1.7.0
40-
39+
startingCSV: sandboxed-containers-operator.v1.8.0 ## OSC_VERSION

docs/DEVELOPMENT.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ make catalog-build
8080
make catalog-push
8181
```
8282

83-
## Installing the Operator using OpenShift Web console
83+
## Installing the Operator using OpenShift Web console
8484

8585
### Create Custom Operator Catalog
8686

@@ -115,10 +115,10 @@ The new operator should be now available for installation from the OpenShift web
115115
## Installing the Operator using CLI
116116

117117
When deploying the Operator using CLI, cert-manager needs to be installed otherwise
118-
webhook will not start. `cert-manager` is not required when deploying via the web console as OLM
118+
webhook will not start. `cert-manager` is not required when deploying via the web console as OLM
119119
takes care of webhook certificate management. You can read more on this [here]( https://olm.operatorframework.io/docs/advanced-tasks/adding-admission-and-conversion-webhooks/#deploying-an-operator-with-webhooks-using-olm)
120120

121-
### Install cert-manager
121+
### Install cert-manager
122122
```
123123
oc apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.3/cert-manager.yaml
124124
```
@@ -131,5 +131,20 @@ Uncomment all entries marked with `[CERTMANAGER]` in manifest files under `confi
131131
make install && make deploy
132132
```
133133

134+
### Updating versions
134135

136+
When starting a new version, the locations tagged with `OSC_VERSION` should be updated with the new version number. A few places are also tagged with `OSC_VERSION_BEFORE`, referring to the version being replaced.
135137

138+
On the `main` branch `1.5.2`, the following locations were identified, but looking for the version pattern would give too many false positives on `devel` with `1.7.0`, and even more false positives were found with `1.8.0`. Most hits were in `go.mod` or `go.sum` and should be ignored, since they refer to dependencies with unrelated version numbering.
139+
140+
```
141+
Makefile:6:VERSION ?= 1.5.2
142+
config/manager/kustomization.yaml:16: newTag: 1.5.2
143+
config/manifests/bases/sandboxed-containers-operator.clusterserviceversion.yaml:16: olm.skipRange: '>=1.1.0 <1.5.2'
144+
config/manifests/bases/sandboxed-containers-operator.clusterserviceversion.yaml:28: name: sandboxed-containers-operator.v1.5.2
145+
config/manifests/bases/sandboxed-containers-operator.clusterserviceversion.yaml:368: version: 1.5.2
146+
config/samples/deploy.yaml:9: image: quay.io/openshift_sandboxed_containers/openshift-sandboxed-containers-operator-catalog:v1.5.2
147+
config/samples/deploy.yaml:39: startingCSV: sandboxed-containers-operator.v1.5.2
148+
hack/aws-image-job.yaml:24: image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.5.2
149+
hack/azure-image-job.yaml:23: image: registry.redhat.io/openshift-sandboxed-containers/osc-podvm-payload-rhel9:1.5.2
150+
```

0 commit comments

Comments
 (0)