diff --git a/.github/actions/kamel-cleanup/uninstall-global-operator.sh b/.github/actions/kamel-cleanup/uninstall-global-operator.sh index cd11ebb44b..3d30ec10b6 100755 --- a/.github/actions/kamel-cleanup/uninstall-global-operator.sh +++ b/.github/actions/kamel-cleanup/uninstall-global-operator.sh @@ -91,7 +91,7 @@ if [ "${has_olm}" == "true" ]; then xargs -I '{}' kubectl delete csv '{}' -n ${GLOBAL_OPERATOR_NAMESPACE} &> /dev/null else kubectl get deploy -n ${GLOBAL_OPERATOR_NAMESPACE} | \ - grep camel-k | awk '{print $1}' | \ + grep camel-k-operator | awk '{print $1}' | \ xargs -I '{}' kubectl delete deploy '{}' -n ${GLOBAL_OPERATOR_NAMESPACE} &> /dev/null fi @@ -102,7 +102,7 @@ sleep 3 # timeout=180 i=1 -command="kubectl get pods -n ${GLOBAL_OPERATOR_NAMESPACE} 2> /dev/null | grep camel-k &> /dev/null" +command="kubectl get pods -n ${GLOBAL_OPERATOR_NAMESPACE} 2> /dev/null | grep camel-k-operator &> /dev/null" while eval "${command}" do diff --git a/.github/actions/kamel-preflight-test/preflight-test.sh b/.github/actions/kamel-preflight-test/preflight-test.sh index a49f08f071..3389db22b9 100755 --- a/.github/actions/kamel-preflight-test/preflight-test.sh +++ b/.github/actions/kamel-preflight-test/preflight-test.sh @@ -40,7 +40,7 @@ waitForOperator() { # local timeout=360 local i=1 - local command="kubectl get pods -n ${NAMESPACE} 2> /dev/null | grep camel-k | grep Running &> /dev/null" + local command="kubectl get pods -n ${NAMESPACE} 2> /dev/null | grep camel-k-operator | grep Running &> /dev/null" until eval "${command}" do @@ -225,7 +225,7 @@ waitForOperator echo "Finding the operator pod identifier" for i in {1..5} do - camel_operator=$(kubectl get pods -n ${NAMESPACE} | grep camel-k | grep Running | awk '{print $1}') + camel_operator=$(kubectl get pods -n ${NAMESPACE} | grep camel-k-operator | grep Running | awk '{print $1}') if [ -n "${camel_operator}" ]; then break fi