Skip to content

Commit ed56488

Browse files
raukadahopenshift-merge-bot[bot]
authored andcommitted
Apply watcher cr in openstack namespace
In unijobs, when we do oc apply <watcher cr name>, It tries to create resources in default namespace leading to following errors: ``` INFO Controllers.Watcher Found zero services for Galera instance openstack, requeueing ``` Galera instance openstack runs in openstack namespace that's why above error is coming. We need to apply watcher cr in openstack namespace so that watcher can use resources from openstack namespace. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
1 parent e10691d commit ed56488

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,12 @@ watcher: ## Install watcher operator via olm
393393
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"
394394
timeout 300s bash -c "while ! (oc get csv -n openstack-operators -l operators.coreos.com/watcher-operator.openstack-operators -o jsonpath='{.items[*].status.phase}' | grep Succeeded); do sleep 1; done"
395395

396+
OPENSTACK_NAMESPACE ?= openstack
397+
396398
.PHONY: watcher_deploy
397399
watcher_deploy: ## Deploy watcher service
398-
oc apply -f ${WATCHER_SAMPLE_CR_PATH}
399-
oc wait watcher watcher --for condition=Ready --timeout=600s
400+
oc apply -f ${WATCHER_SAMPLE_CR_PATH} -n ${OPENSTACK_NAMESPACE}
401+
oc wait watcher watcher --for condition=Ready --timeout=600s -n ${OPENSTACK_NAMESPACE}
400402

401403
.PHONY: watcher_deploy_cleanup
402404
watcher_deploy_cleanup: ## Undeploy watcher service

0 commit comments

Comments
 (0)