55# This scripts generates the OLM manifests required to install an operator from a custom catalog.
66# These are not required to install an operator from the OperatorHub.
77#
8- # The images are published under docker .stackable.tech/sandbox since they are only needed during development.
8+ # The images are published under oci .stackable.tech/sandbox since they are only needed during development.
99#
1010# This script makes the following *assumptions*:
1111#
@@ -80,9 +80,9 @@ bundle-clean() {
8080build-bundle () {
8181 opm alpha bundle generate --directory manifests --package " ${OPERATOR} -package" --output-dir bundle --channels " stable,$CHANNEL " --default " $CHANNEL "
8282 cp metadata/* .yaml bundle/metadata/
83- docker build -t " docker .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " -f bundle.Dockerfile .
84- docker push " docker .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} "
85- opm alpha bundle validate --tag " docker .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " --image-builder docker
83+ docker build -t " oci .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " -f bundle.Dockerfile .
84+ docker push " oci .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} "
85+ opm alpha bundle validate --tag " oci .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " --image-builder docker
8686
8787 echo " Bundle built successfully!"
8888}
@@ -126,14 +126,14 @@ catalog() {
126126
127127 } >> " catalog/stackable-${OPERATOR} -operator.yaml"
128128 echo " Render operator: ${OPERATOR} "
129- opm render " docker .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " --output=yaml >> " catalog/stackable-${OPERATOR} -operator.yaml"
129+ opm render " oci .stackable.tech/sandbox/${OPERATOR} -bundle:${VERSION} " --output=yaml >> " catalog/stackable-${OPERATOR} -operator.yaml"
130130
131131 echo " Validating catalog..."
132132 opm validate catalog
133133
134134 echo " Build and push catalog for all ${OPERATOR} operator..."
135- docker build . -f catalog.Dockerfile -t " docker .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION} "
136- docker push " docker .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION} "
135+ docker build . -f catalog.Dockerfile -t " oci .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION} "
136+ docker push " oci .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION} "
137137
138138 echo " Generating catalog source..."
139139 cat > catalog-source.yaml << CATALOGSOURCE
@@ -144,7 +144,7 @@ metadata:
144144 name: stackable-${OPERATOR} -catalog
145145spec:
146146 sourceType: grpc
147- image: docker .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION}
147+ image: oci .stackable.tech/sandbox/stackable-${OPERATOR} -catalog:${VERSION}
148148 displayName: Stackable Catalog
149149 publisher: Stackable GmbH
150150 updateStrategy:
0 commit comments