Skip to content

Commit

Permalink
fix(github actions): Made some checks on pod names more specific to a…
Browse files Browse the repository at this point in the history
…voit fals positives.
  • Loading branch information
valdar committed Jan 30, 2024
1 parent b115f1d commit 42a8569
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/kamel-cleanup/uninstall-global-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/kamel-preflight-test/preflight-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 42a8569

Please sign in to comment.