Default kubelet authenticationTokenWebhook to true for k8s 1.19+

This commit is contained in:
John Gardiner Myers 2020-08-14 11:57:56 -07:00
parent 67e1bf1136
commit e405d24f8c
1 changed files with 4 additions and 0 deletions

View File

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