mirror of https://github.com/k3s-io/k3s
Merge pull request #51160 from yujuhong/alpha-feature-env
Automatic merge from submit-queue (batch tested with PRs 51108, 51035, 50539, 51160, 50947) Set GCE_ALPHA_FEATURES environment variable in gce.conf This allows us to gate alpha features in the pkg/cloudprovider/providers/gce.pull/6/head
commit
8bfde3a03f
|
@ -264,6 +264,12 @@ EOF
|
|||
use_cloud_config="true"
|
||||
cat <<EOF >>/etc/gce.conf
|
||||
multizone = ${MULTIZONE}
|
||||
EOF
|
||||
fi
|
||||
if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
|
||||
use_cloud_config="true"
|
||||
cat <<EOF >>/etc/gce.conf
|
||||
alpha-features = ${GCE_ALPHA_FEATURES}
|
||||
EOF
|
||||
fi
|
||||
if [[ "${use_cloud_config}" != "true" ]]; then
|
||||
|
|
|
@ -425,6 +425,12 @@ EOF
|
|||
use_cloud_config="true"
|
||||
cat <<EOF >>/etc/gce.conf
|
||||
multizone = ${MULTIZONE}
|
||||
EOF
|
||||
fi
|
||||
if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
|
||||
use_cloud_config="true"
|
||||
cat <<EOF >>/etc/gce.conf
|
||||
alpha-features = ${GCE_ALPHA_FEATURES}
|
||||
EOF
|
||||
fi
|
||||
if [[ "${use_cloud_config}" != "true" ]]; then
|
||||
|
|
Loading…
Reference in New Issue