Skip to content

Commit

Permalink
Modify labels
Browse files Browse the repository at this point in the history
Signed-off-by: jkalinic <[email protected]>
  • Loading branch information
jankalinic committed Jan 22, 2025
1 parent 0309be4 commit 18544c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CONSOLE_UI_NEXTAUTH_SECRET ?= $(shell openssl rand -base64 32)
# Without this export, UI and API images could not be pulled from registry during the deployment of Console instance
export QUARKUS_CONTAINER_IMAGE_TAG=${VERSION}
export QUARKUS_KUBERNETES_VERSION=${VERSION}
export QUARKUS_DOCKER_BUILDX_PLATFORM=${PLATFORMS}

container-image-api:
mvn package -am -pl api -Pcontainer-image -DskipTests -Dquarkus.container-image.image=$(CONSOLE_API_IMAGE)
Expand Down
10 changes: 6 additions & 4 deletions operator/bin/modify-bundle-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ for ARGUMENT in "$@" ; do
VERSION) VERSION=${VALUE};;
SKIP_RANGE) SKIP_RANGE=${VALUE};;
SKOPEO_TRANSPORT) SKOPEO_TRANSPORT=${VALUE};;
PLATFORMS) PLATFORMS=${VALUE};;
*)
esac
done
Expand Down Expand Up @@ -111,10 +112,11 @@ ${YQ} eval -o yaml -i '.spec.relatedImages += [{
"image": "'${ui_image_with_digest}'"
}]' "${CSV_FILE_PATH}"

${YQ} eval -o yaml -i ".metadata.labels[\"operatorframework.io/arch.amd64\"] = \"supported\"" "${CSV_FILE_PATH}"
${YQ} eval -o yaml -i ".metadata.labels[\"operatorframework.io/arch.arm64\"] = \"supported\"" "${CSV_FILE_PATH}"
${YQ} eval -o yaml -i ".metadata.labels[\"operatorframework.io/arch.ppc64le\"] = \"supported\"" "${CSV_FILE_PATH}"
${YQ} eval -o yaml -i ".metadata.labels[\"operatorframework.io/arch.s390x\"] = \"supported\"" "${CSV_FILE_PATH}"
for full_arch in ${PLATFORMS//,/ } ; do
os_arch=($(echo ${full_arch} | tr '/' '\n'))
arch=${os_arch[1]}
${YQ} eval -o yaml -i ".metadata.labels[\"operatorframework.io/arch.${arch}\"] = \"supported\"" "${CSV_FILE_PATH}"
done

# Add skipRange if present
if [[ -n "$SKIP_RANGE" ]]; then
Expand Down

0 comments on commit 18544c4

Please sign in to comment.