mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 18:27:49 +00:00
Factor out validate-cluster.sh call from kube-up.sh
Not every cluster can be validated the same way. Factoring out the validate-cluster call into a kube-util.sh function allows customization. This allows to proceed with GoogleCloudPlatform/kubernetes#10049 before the mid/long-term unified cluster validation in GoogleCloudPlatform/kubernetes#11908 is implemented. Otherwise, the later blocks the former.
This commit is contained in:
@@ -39,6 +39,13 @@ function verify-prereqs {
|
||||
echo "TODO: verify-prereqs" 1>&2
|
||||
}
|
||||
|
||||
# Validate a kubernetes cluster
|
||||
function validate-cluster {
|
||||
# by default call the generic validate-cluster.sh script, customizable by
|
||||
# any cluster provider if this does not fit.
|
||||
"${KUBE_ROOT}/cluster/validate-cluster.sh"
|
||||
}
|
||||
|
||||
# Instantiate a kubernetes cluster
|
||||
function kube-up {
|
||||
echo "TODO: kube-up" 1>&2
|
||||
|
Reference in New Issue
Block a user