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

Commit b3d44fb

Browse files
committed
Revert "fix volume node locator"
This reverts commit 1f18633.
1 parent 1f18633 commit b3d44fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment/kubernetes/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if [ -x /usr/bin/kubectl ] || [ -x /usr/local/bin/kubectl ]; then
1818
exit 0
1919
fi
2020

21-
# list all workers (including untainted master node)
22-
hosts=($(kubectl get node -l vcac-zone!=yes -o jsonpath='{range .items[*]}{"\n"}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}:{range @.spec.taints[*]}{@.key}={@.effect};{end}{end}' | grep : | grep Ready=True | grep -v NoSchedule | cut -f1 -d':'))
21+
# 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':'))
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)