Skip to content

Commit 7bd9f5e

Browse files
committed
start using v1beta4 in v1.35.0+
1 parent dfe71c6 commit 7bd9f5e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/cluster/internal/kubeadm/config.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ func Config(data ConfigData) (config string, err error) {
670670
}
671671

672672
// assume the latest API version, then fallback if the k8s version is too low
673-
templateSource := ConfigTemplateBetaV3
674-
if ver.LessThan(version.MustParseSemantic("v1.23.0")) {
673+
templateSource := ConfigTemplateBetaV4
674+
if ver.LessThan(version.MustParseSemantic("v1.35.0")) {
675+
templateSource = ConfigTemplateBetaV3
676+
} else if ver.LessThan(version.MustParseSemantic("v1.23.0")) {
675677
templateSource = ConfigTemplateBetaV2
676678
}
677679

0 commit comments

Comments
 (0)