Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1494 from BenTheElder/fix-cfg
Browse files Browse the repository at this point in the history
fix config featuregate handling
  • Loading branch information
k8s-ci-robot authored Apr 17, 2020
2 parents f277913 + 4cc250d commit 909e6f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ func Config(data ConfigData) (config string, err error) {
return "", err
}

// ensure featureGates is non-nil, as we may add entries
if data.FeatureGates == nil {
data.FeatureGates = make(map[string]bool)
}

// assume the latest API version, then fallback if the k8s version is too low
templateSource := ConfigTemplateBetaV2
if ver.LessThan(version.MustParseSemantic("v1.12.0")) {
Expand Down

0 comments on commit 909e6f7

Please sign in to comment.