mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Replace kubecfg with kubectl in setup scripts
Replaces two instances of kubecfg with kubectl in cluster startup and validation scripts.
This commit is contained in:
parent
5038fc0ffa
commit
9ac9c69534
@ -140,7 +140,7 @@ function verify-cluster {
|
|||||||
local count="0"
|
local count="0"
|
||||||
until [[ "$count" == "1" ]]; do
|
until [[ "$count" == "1" ]]; do
|
||||||
local minions
|
local minions
|
||||||
minions=$("${KUBE_ROOT}/cluster/kubecfg.sh" -template '{{range.items}}{{.id}}:{{end}}' list minions)
|
minions=$("${KUBE_ROOT}/cluster/kubectl.sh" get minions -o template -t '{{range.items}}{{.id}}:{{end}}')
|
||||||
count=$(echo $minions | grep -c "${MINION_IPS[i]}") || {
|
count=$(echo $minions | grep -c "${MINION_IPS[i]}") || {
|
||||||
printf "."
|
printf "."
|
||||||
sleep 2
|
sleep 2
|
||||||
|
@ -35,7 +35,7 @@ detect-minions > /dev/null
|
|||||||
MINIONS_FILE=/tmp/minions
|
MINIONS_FILE=/tmp/minions
|
||||||
attempt=0
|
attempt=0
|
||||||
while true; do
|
while true; do
|
||||||
"${KUBE_ROOT}/cluster/kubecfg.sh" -template $'{{range.items}}{{.id}}\n{{end}}' list minions > "${MINIONS_FILE}"
|
"${KUBE_ROOT}/cluster/kubectl.sh" get minions -o template -t $'{{range.items}}{{.id}}\n{{end}}' > "${MINIONS_FILE}"
|
||||||
found=$(grep -c . "${MINIONS_FILE}")
|
found=$(grep -c . "${MINIONS_FILE}")
|
||||||
if [[ ${found} == "${NUM_MINIONS}" ]]; then
|
if [[ ${found} == "${NUM_MINIONS}" ]]; then
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user