Default kubelet authorization-mode to Webhook for k8s 1.19+

This commit is contained in:
John Gardiner Myers 2020-08-08 21:00:48 -07:00
parent 7070c3c9b2
commit d2e7e2a41d
1 changed files with 4 additions and 0 deletions

View File

@ -513,6 +513,10 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
c.NodeLabels = nil
}
if c.AuthorizationMode == "" && b.Cluster.IsKubernetesGTE("1.19") {
c.AuthorizationMode = "Webhook"
}
return &c, nil
}