From 52af8d1213c2f9e01c90ec519345f034f45569a0 Mon Sep 17 00:00:00 2001 From: Leonardo Milleri Date: Thu, 19 Dec 2024 09:17:55 +0000 Subject: [PATCH] Update installation scripts Removed hardcoded release v0.1.0 Signed-off-by: Leonardo Milleri --- scripts/install-helpers/install.sh | 3 ++- scripts/install-helpers/subs-ga.yaml | 1 - scripts/install-helpers/subs-upstream.yaml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install-helpers/install.sh b/scripts/install-helpers/install.sh index 843800e..a039e3a 100755 --- a/scripts/install-helpers/install.sh +++ b/scripts/install-helpers/install.sh @@ -175,7 +175,8 @@ function apply_operator_manifests() { # Function to apply the operator manifests function override_trustee_image() { if [ -n "$TRUSTEE_IMAGE" ]; then - oc patch csv -n trustee-operator-system trustee-operator.v0.1.0 --type=json -p="[ + CSV=$(oc get csv -n trustee-operator-system -o name -l operators.coreos.com/trustee-operator.trustee-operator-system) + oc patch -n trustee-operator-system $CSV --type=json -p="[ { "op": "replace", "path": "/spec/install/spec/deployments/0/spec/template/spec/containers/1/env/1/value", diff --git a/scripts/install-helpers/subs-ga.yaml b/scripts/install-helpers/subs-ga.yaml index b023fff..3623876 100644 --- a/scripts/install-helpers/subs-ga.yaml +++ b/scripts/install-helpers/subs-ga.yaml @@ -10,4 +10,3 @@ spec: name: trustee-operator source: redhat-operators sourceNamespace: openshift-marketplace - startingCSV: trustee-operator.v0.1.0 diff --git a/scripts/install-helpers/subs-upstream.yaml b/scripts/install-helpers/subs-upstream.yaml index 93865a3..8a39262 100644 --- a/scripts/install-helpers/subs-upstream.yaml +++ b/scripts/install-helpers/subs-upstream.yaml @@ -10,4 +10,3 @@ spec: name: trustee-operator source: trustee-upstream-catalog sourceNamespace: openshift-marketplace - startingCSV: trustee-operator.v0.1.0