Skip to content

Commit

Permalink
Fix kustomize-apply script
Browse files Browse the repository at this point in the history
  • Loading branch information
roivaz committed May 6, 2024
1 parent bde4398 commit 4e4c00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/apply-kustomize.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -eu
set -eux

function generate_resources() {
local KPATH=${1}
Expand Down Expand Up @@ -40,7 +40,7 @@ function wait_for() {
local NAME=${ITEM#*/}
local NS=${ITEM%/*}
echo; echo "#################### > Waiting for ${KIND} ${NAME} in namespace ${NS}"
local SELECTOR=$(kubectl -n ${NS} describe ${KIND} ${NAME} | awk '/Selector/{print $2}')
local SELECTOR=$(kubectl -n ${NS} describe ${KIND} ${NAME} | awk '/^Selector:/{print $2}')
kubectl -n ${NS} get pods -l ${SELECTOR} --no-headers -o name | xargs kubectl -n ${NS} wait --for condition=ready
done
fi
Expand Down

0 comments on commit 4e4c00b

Please sign in to comment.