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

Commit d40d3da

Browse files
committed
fix volume node script
1 parent b3d44fb commit d40d3da

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 -l vcac-zone!=yes -o jsonpath='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}:{range @.spec.taints[*]}{@.key}={@.effect};{end}{end}' | grep Ready=True | grep -v NoSchedule | cut -f1 -d':'))
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' '))
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)