Skip to content

Commit 273ec98

Browse files
razvanadwk67
andauthored
fix/openshift 24.3 (#64)
* wip * wip * corrected indentation and made spec tag more specific in notes * minor comment change --------- Co-authored-by: Andrew Kenworthy <[email protected]>
1 parent d8e640e commit 273ec98

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

olm/build-bundles.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ catalog() {
173173

174174
deploy() {
175175
if $DEPLOY; then
176-
kubectl apply --namespace stackable-operators -f catalog-source.yaml
177-
kubectl apply --namespace stackable-operators -f subscription.yaml
178-
kubectl apply --namespace stackable-operators -f operator-group.yaml
176+
kubectl describe namespace stackable-operators || kubectl create namespace stackable-operators
177+
kubectl apply --namespace stackable-operators \
178+
-f catalog-source.yaml \
179+
-f subscription.yaml \
180+
-f operator-group.yaml
179181
echo "Operator deployment done!"
180182
else
181183
echo "Skip operator deployment!"

olm/build-manifests.sh

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#
1717
# The generated manifests need to be updated manually with the following steps:
1818
# * Copy the cluster service version file from the previous package version.
19-
# * Replace the contents of the deployment, and cluster role with the `spec` and `rules` from the newly generated files.
19+
# * Replace the contents of the deployment, and cluster role with the `template.spec` and `rules` from the newly generated files.
2020
# * Remove the unused generated files : service account, operator cluster role (not the product cluster role), role binding, deployment.
21-
# * Remove all Helm labels in all remaining files.
21+
# * Remove all Helm labels in all remaining files (including all labels from the cluster role).
2222
# * Check or update the metadata/dependencies.yaml
2323
# * Update image tags and hashes
2424

@@ -45,30 +45,30 @@ generate_metadata() {
4545
pushd "$METADATA_DIR"
4646

4747
cat >annotations.yaml <<-ANNOS
48-
---
49-
annotations:
50-
operators.operatorframework.io.bundle.channel.default.v1: stable
51-
operators.operatorframework.io.bundle.channels.v1: stable
52-
operators.operatorframework.io.bundle.manifests.v1: manifests/
53-
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
54-
operators.operatorframework.io.bundle.metadata.v1: metadata/
55-
operators.operatorframework.io.bundle.package.v1: stackable-${OPERATOR}
56-
57-
com.redhat.openshift.versions: v4.10-v4.13
58-
ANNOS
48+
---
49+
annotations:
50+
operators.operatorframework.io.bundle.channel.default.v1: stable
51+
operators.operatorframework.io.bundle.channels.v1: stable
52+
operators.operatorframework.io.bundle.manifests.v1: manifests/
53+
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
54+
operators.operatorframework.io.bundle.metadata.v1: metadata/
55+
operators.operatorframework.io.bundle.package.v1: stackable-${OPERATOR}
56+
57+
com.redhat.openshift.versions: v4.11-v4.15
58+
ANNOS
5959

6060
cat >dependencies.yaml <<-DEPS
61-
---
62-
dependencies:
63-
- type: olm.package
64-
value:
65-
packageName: stackable-commons-operator
66-
version: "$RELEASE_VERSION"
67-
- type: olm.package
68-
value:
69-
packageName: stackable-secret-operator
70-
version: "$RELEASE_VERSION"
71-
DEPS
61+
---
62+
dependencies:
63+
- type: olm.package
64+
value:
65+
packageName: stackable-commons-operator
66+
version: "$RELEASE_VERSION"
67+
- type: olm.package
68+
value:
69+
packageName: stackable-secret-operator
70+
version: "$RELEASE_VERSION"
71+
DEPS
7272

7373
popd
7474
}
@@ -138,7 +138,7 @@ maybe_print_help() {
138138
Example:
139139
140140
$SCRIPT_NAME -r 23.11.0 -c $HOME/repo/stackable/openshift-certified-operators -o $HOME/repo/stackable/zookeeper-operator
141-
HELP
141+
HELP
142142

143143
exit 1
144144
fi

0 commit comments

Comments
 (0)