Skip to content

Commit

Permalink
fix: specify olm version
Browse files Browse the repository at this point in the history
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 <vibhu.sharma2929@gmail.com>
  • Loading branch information
vprashar2929 committed Oct 27, 2024
1 parent 33af5c3 commit 5a9f892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5a9f892

Please sign in to comment.