From acef4fd52a8c7ce69168e371a1d9cde23bac484f Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Sun, 8 Apr 2018 11:20:08 -0700 Subject: [PATCH] gce: enable all apis when AllAlpha=true --- cluster/gce/config-default.sh | 4 ++++ cluster/gce/config-test.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index 5700ccf32a0..ebc1bb9699d 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -227,6 +227,10 @@ fi # Optional: customize runtime config RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}" +if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then + RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}" +fi + # Optional: set feature gates FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}" diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index 6d66b320d46..a622f151048 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -109,6 +109,10 @@ NODE_IP_RANGE="$(get-node-ip-range)" RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}" +if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then + RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}" +fi + # Optional: set feature gates FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}"