kubefed: make --dns-provider mandatory

This commit is contained in:
Maru Newby
2017-02-24 21:00:21 -08:00
parent 7f626cf836
commit d1b6192f10
3 changed files with 9 additions and 18 deletions

View File

@@ -35,6 +35,7 @@ source "${KUBE_ROOT}/cluster/common.sh"
source "${KUBE_ROOT}/federation/cluster/common.sh"
DNS_ZONE_NAME="${FEDERATION_DNS_ZONE_NAME:-}"
DNS_PROVIDER="${FEDERATION_DNS_PROVIDER:-google-clouddns}"
FEDERATIONS_DOMAIN_MAP="${FEDERATIONS_DOMAIN_MAP:-}"
# get_version returns the version in KUBERNETES_RELEASE or defaults to the
@@ -82,6 +83,7 @@ function init() {
"${FEDERATION_NAME}" \
--host-cluster-context="${HOST_CLUSTER_CONTEXT}" \
--dns-zone-name="${DNS_ZONE_NAME}" \
--dns-provider="${DNS_PROVIDER}" \
--image="${kube_registry}/hyperkube-amd64:${kube_version}"
}