mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Fix couple of minor issues in federation deployment scripts
This commit is contained in:
@@ -52,7 +52,7 @@ function federation_cluster_contexts() {
|
|||||||
federation_contexts=()
|
federation_contexts=()
|
||||||
for context in ${contexts}; do
|
for context in ${contexts}; do
|
||||||
# Skip federation context
|
# Skip federation context
|
||||||
if [[ "${context}" == "${FEDERATION_NAME}" ]]; then
|
if [[ "${context}" == "${FEDERATION_KUBE_CONTEXT}" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# Skip contexts not beginning with "federation"
|
# Skip contexts not beginning with "federation"
|
||||||
@@ -61,7 +61,7 @@ function federation_cluster_contexts() {
|
|||||||
fi
|
fi
|
||||||
federation_contexts+=("${context}")
|
federation_contexts+=("${context}")
|
||||||
done
|
done
|
||||||
echo ${federation_contexts[@]}
|
echo ${federation_contexts[@]:-}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user