add v1beta2 condition
parent
0ce6a0303a
commit
3bedd60e1c
|
@ -105,6 +105,10 @@ func GenerateKubeadmYAML(k8s config.KubernetesConfig, r cruntime.Manager) ([]byt
|
|||
if version.GTE(semver.MustParse("1.14.0-alpha.0")) {
|
||||
configTmpl = template.KubeAdmConfigTmplV1Beta1
|
||||
}
|
||||
// v1beta2 isn't required until v1.18.
|
||||
if version.GTE(semver.MustParse("1.18.0-alpha.0")) {
|
||||
configTmpl = template.KubeAdmConfigTmplV1Beta2
|
||||
}
|
||||
if err := configTmpl.Execute(&b, opts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue