Skip to content

Commit

Permalink
Merge pull request #2168 from slashpai/fix_local_run
Browse files Browse the repository at this point in the history
MON-3511: hack/local-cmo.sh: pass desired version in cmo run command
  • Loading branch information
openshift-merge-bot[bot] committed Nov 24, 2023
2 parents f0b9123 + 10cdde5 commit 1af6396
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/local-cmo.sh
Expand Up @@ -201,6 +201,9 @@ main() {
local operator_config=manifests/0000_50_cluster-monitoring-operator_04-config.yaml
local telemetry_conf=/tmp/telemetry-config.yaml

local desired_version
desired_version=$(kubectl get clusterversion version -o jsonpath='{ .status.desired.version }')

gojsontoyaml -yamltojson <$operator_config |
jq -r '.data["metrics.yaml"]' >$telemetry_conf

Expand All @@ -218,6 +221,7 @@ main() {

run go run ./cmd/operator/... "${images[@]}" \
-assets assets/ \
-release-version="$desired_version" \
-telemetry-config $telemetry_conf \
-kubeconfig="$kubeconfig" \
-namespace=openshift-monitoring \
Expand Down

0 comments on commit 1af6396

Please sign in to comment.