Skip to content

Commit

Permalink
fix feature_gates salt plumbing
Browse files Browse the repository at this point in the history
  • Loading branch information
j3ffml committed Aug 26, 2016
1 parent b44b716 commit e7c4228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions cluster/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ EOF
fi

env-to-grains "runtime_config"
env-to-grains "feature_gates"
env-to-grains "kube_user"
}

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit e7c4228

Please sign in to comment.