mirror of https://github.com/kubernetes/kops.git
Support additional feature flags specified via --env=KOPS_FEATURE_FLAGS=foo
This commit is contained in:
parent
39537d7190
commit
cf12fe4efd
|
@ -138,7 +138,14 @@ func (d *deployer) featureFlags() string {
|
|||
"+SpecOverrideFlag",
|
||||
"+AlphaAllowGCE",
|
||||
}
|
||||
return strings.Join(ff, ",")
|
||||
val := strings.Join(ff, ",")
|
||||
for _, env := range d.Env {
|
||||
e := strings.Split(env, "=")
|
||||
if e[0] == "KOPS_FEATURE_FLAGS" && len(e) > 1 {
|
||||
val = fmt.Sprintf("%v,", e[1])
|
||||
}
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
// defaultClusterName returns a kops cluster name to use when ClusterName is not set
|
||||
|
|
Loading…
Reference in New Issue