We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d66240f + a0dc53f commit 6c7e169Copy full SHA for 6c7e169
1 file changed
hack/build-olm-manifests.sh
@@ -35,6 +35,15 @@ fi
35
cat ${SOUCE_DIR}/bundle/manifests/flux-operator.clusterserviceversion.yaml | \
36
envsubst > ${DEST_DIR}/bundle/manifests/flux-operator.clusterserviceversion.yaml
37
38
+if [ "$UBI" = "true" ]; then
39
+ IMG="ghcr.io/controlplaneio-fluxcd/flux-operator"
40
+ TAG="v${VERSION}${FLUX_OPERATOR_VARIANT}"
41
+ DIGEST=$(crane digest "${IMG}:${TAG}") || fatal "Failed to get digest for ${IMG}:${TAG}"
42
+ info "Resolved ${IMG}:${TAG} to ${DIGEST}"
43
+ CSV="${DEST_DIR}/bundle/manifests/flux-operator.clusterserviceversion.yaml"
44
+ perl -i -pe "s|\Q${IMG}:${TAG}\E|${IMG}\@${DIGEST}|g" "${CSV}"
45
+fi
46
+
47
cat ${SOUCE_DIR}/bundle/manifests/flux-operator.service.yaml > \
48
${DEST_DIR}/bundle/manifests/flux-operator.service.yaml
49
0 commit comments