From 5a9f8920657904e9c3b621512eaea5d88c2aadeb Mon Sep 17 00:00:00 2001 From: vprashar2929 Date: Sun, 27 Oct 2024 23:30:33 +0530 Subject: [PATCH] fix: specify olm version This commit updates the `cluster.sh` to explicitly use a fixed OLM version, resolving issue where the `operator-sdk` defaults to the latest OLM version. The latest OLM version `v0.29.0` has an issue affecting pod deployments on KinD clusters causing failures Signed-off-by: vprashar2929 --- hack/cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/cluster.sh b/hack/cluster.sh index a6886ffb..5cfc2b50 100755 --- a/hack/cluster.sh +++ b/hack/cluster.sh @@ -25,6 +25,7 @@ declare -r CLUSTER_PROVIDER=${CLUSTER_PROVIDER:-kind} declare -r GRAFANA_ENABLE=${GRAFANA_ENABLE:-true} declare -r KIND_WORKER_NODES=${KIND_WORKER_NODES:-2} declare -r CERTMANAGER_VERSION=${CERT_MANAGER_VERSION:-1.15.0} +declare -r OLM_VERSION=${OLM_VERSION:-v0.28.0} # constants PROJECT_ROOT="$(git rev-parse --show-toplevel)" @@ -77,7 +78,7 @@ cluster_prereqs() { return 0 } info "setup OLM" - operator-sdk olm install --verbose --timeout 5m + operator-sdk olm install --version "$OLM_VERSION" --verbose --timeout 5m info "Ensure openshift namespace for dashboard exists" run kubectl create namespace openshift-config-managed