Skip to content

Commit 34ef15b

Browse files
authored
gen manifests for listener too (#116)
1 parent 2b7047a commit 34ef15b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

olm/build-manifests.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ annotations:
5656
operators.operatorframework.io.bundle.metadata.v1: metadata/
5757
operators.operatorframework.io.bundle.package.v1: stackable-${OPERATOR}
5858
59-
com.redhat.openshift.versions: v4.11-v4.17
59+
com.redhat.openshift.versions: v4.11-v4.19
6060
ANNOS
6161

6262
popd
@@ -69,14 +69,16 @@ generate_manifests() {
6969

7070
pushd "$MANIFESTS_DIR"
7171

72-
# split crd
73-
cat "$OP_ROOT/deploy/helm/$OPERATOR/crds/crds.yaml" | yq -s '.spec.names.kind'
72+
# If available, split the CRD into individual manifests
73+
# The secret op installs the CRDs by its self upon startup if not already there.
74+
if [ -f "$OP_ROOT/deploy/helm/$OPERATOR/crds/crds.yaml" ]; then
75+
cat "$OP_ROOT/deploy/helm/$OPERATOR/crds/crds.yaml" | yq -s '.spec.names.kind'
76+
fi
7477

7578
# expand config map, roles, service account, etc.
7679
helm template "$OPERATOR" "$OP_ROOT/deploy/helm/$OPERATOR" | yq -s '.metadata.name'
77-
7880
popd
79-
}
81+
}
8082

8183
parse_inputs() {
8284
while [[ "$#" -gt 0 ]]; do

0 commit comments

Comments
 (0)