From cc36c18c12da6b7645e46e8de7e0c0138450301f Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Mon, 21 Oct 2024 13:47:56 +0200 Subject: [PATCH] fix image url parsing Signed-off-by: Eguzki Astiz Lezaun --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d2bf2e..be191fd 100644 --- a/Makefile +++ b/Makefile @@ -443,10 +443,10 @@ bundle: manifests manifests-gen-base-csv kustomize operator-sdk ## Generate bund $(MAKE) bundle-ignore-createdAt bundle-operator-image-url: $(YQ) ## Read operator image reference URL from the manifest bundle. - @$(YQ) '.metadata.annotations.containerImage' bundle/manifests/dns-operator.clusterserviceversion.yaml + @$(YQ) -0 '.metadata.annotations.containerImage' bundle/manifests/dns-operator.clusterserviceversion.yaml bundle-operator-image-tag: $(YQ) ## Read operator image reference TAG from the manifest bundle. - @$(YQ) '.metadata.annotations.containerImage | split(":") | .[1]' bundle/manifests/dns-operator.clusterserviceversion.yaml + @$(YQ) -0 '.metadata.annotations.containerImage | split(":") | .[1]' bundle/manifests/dns-operator.clusterserviceversion.yaml # Since operator-sdk 1.26.0, `make bundle` changes the `createdAt` field from the bundle # even if it is patched: