16
16
#
17
17
# The generated manifests need to be updated manually with the following steps:
18
18
# * 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.
20
20
# * 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) .
22
22
# * Check or update the metadata/dependencies.yaml
23
23
# * Update image tags and hashes
24
24
@@ -45,30 +45,30 @@ generate_metadata() {
45
45
pushd " $METADATA_DIR "
46
46
47
47
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
59
59
60
60
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
72
72
73
73
popd
74
74
}
@@ -138,7 +138,7 @@ maybe_print_help() {
138
138
Example:
139
139
140
140
$SCRIPT_NAME -r 23.11.0 -c $HOME /repo/stackable/openshift-certified-operators -o $HOME /repo/stackable/zookeeper-operator
141
- HELP
141
+ HELP
142
142
143
143
exit 1
144
144
fi
0 commit comments