Skip to content

Commit 289e553

Browse files
committed
run_with_olm: delete running deployment
Explicitly to delete any running watcher-operator deployments from openstack-operator here as label selectors can change and installing a service catalog/index like this alongside openstack-operator (what CI appears to do?) is not recommended unless the initialization resource controller in openstack-operator is paused and existing deployments are cleaned properly
1 parent f71e17f commit 289e553

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ watcher: export WATCHER_DECISION_ENGINE_IMAGE=${WATCHER_DECISION_ENGINE_CI_IMAGE
391391
watcher: export WATCHER_APPLIER_IMAGE=${WATCHER_APPLIER_CI_IMAGE}
392392
watcher: export CATALOG_IMG=${CATALOG_IMAGE}
393393
watcher: ## Install watcher operator via olm
394+
# explicitly to delete any running watcher-operator deployments from openstack-operator here as
395+
# label selectors can change and installing a service catalog/index like this alongside
396+
# openstack-operator (what CI appears to do?) is not recommended
397+
oc delete deployment watcher-operator-controller-manager -n openstack-operators --ignore-not-found=true
394398
bash ci/olm.sh
395399
oc apply -f ci/olm.yaml
396400
timeout 300s bash -c "while ! (oc get csv -n openshift-operators -l operators.coreos.com/cluster-observability-operator.openshift-operators -o jsonpath='{.items[*].status.phase}' | grep Succeeded); do sleep 10; done"

0 commit comments

Comments
 (0)