fix feature_gates salt plumbing

pull/6/head
Jeff Lowdermilk 2016-08-25 17:34:41 -07:00
parent b44b716965
commit e7c42280f8
2 changed files with 7 additions and 6 deletions

View File

@ -638,6 +638,11 @@ EOF
if [ -n "${ENABLE_CUSTOM_METRICS:-}" ]; then
cat >>$file <<EOF
ENABLE_CUSTOM_METRICS: $(yaml-quote ${ENABLE_CUSTOM_METRICS})
EOF
fi
if [ -n "${FEATURE_GATES:-}" ]; then
cat >>$file <<EOF
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
EOF
fi
if [[ "${master}" == "true" ]]; then
@ -699,11 +704,7 @@ EOF
INITIAL_ETCD_CLUSTER: $(yaml-quote ${INITIAL_ETCD_CLUSTER})
EOF
fi
if [ -n "${FEATURE_GATES:-}" ]; then
cat >>$file <<EOF
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
EOF
fi
else
# Node-only env vars.
cat >>$file <<EOF

View File

@ -960,7 +960,6 @@ EOF
fi
env-to-grains "runtime_config"
env-to-grains "feature_gates"
env-to-grains "kube_user"
}
@ -1004,6 +1003,7 @@ function salt-grains() {
env-to-grains "docker_opts"
env-to-grains "docker_root"
env-to-grains "kubelet_root"
env-to-grains "feature_gates"
}
function configure-salt() {