Skip to content

Commit

Permalink
Pin openshift-pipelines version for testing (#345)
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhesh Ghadi <[email protected]>
  • Loading branch information
svghadi authored Sep 8, 2023
1 parent 718c50e commit 787d8c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/setup-operators.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# #!/bin/bash
set -x

PIPELINES_CHANNEL="latest"

# workaround for https://github.com/redhat-developer/kam/issues/344
OPENSHIFT_VERSION=$(oc version | grep 'Server Version' | awk '{print $3}')
if [[ "$OPENSHIFT_VERSION" == "4.12"* || "$OPENSHIFT_VERSION" == "4.13"* ]]; then
PIPELINES_CHANNEL="pipelines-1.10"
fi

echo "Installing OpenShift Pipelines operator"
echo -e "Ensure pipelines subscription exists"
oc get subscription openshift-pipelines-operator-rh -n openshift-operators 2>/dev/null || \
Expand All @@ -11,7 +19,7 @@ metadata:
name: openshift-pipelines-operator-rh
namespace: openshift-operators
spec:
channel: latest
channel: $PIPELINES_CHANNEL
name: openshift-pipelines-operator-rh
source: redhat-operators
sourceNamespace: openshift-marketplace
Expand Down

0 comments on commit 787d8c0

Please sign in to comment.