Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit af7541f

Browse files
authored
Update build.sh
1 parent d40d3da commit af7541f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment/kubernetes/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ -x /usr/bin/kubectl ] || [ -x /usr/local/bin/kubectl ]; then
1919
fi
2020

2121
# list all workers
22-
hosts=($(kubectl get node -o custom-columns=NAME:metadata.name,STATUS:status.conditions[-1].type,TAINT:spec.taints | grep " Ready " | grep -v "NoSchedule" | cut -f1 -d' '))
22+
hosts=($(kubectl get node -l vcac-zone!=yes -o custom-columns=NAME:metadata.name,STATUS:status.conditions[-1].type,TAINT:spec.taints | grep " Ready " | grep -v "NoSchedule" | cut -f1 -d' '))
2323
if test ${#hosts[@]} -eq 0; then
2424
printf "\nFailed to locate worker node(s) for shared storage\n\n"
2525
exit -1

0 commit comments

Comments
 (0)