mirror of https://github.com/kubernetes/kops.git
Default kubelet authenticationTokenWebhook to true for k8s 1.19+
This commit is contained in:
parent
67e1bf1136
commit
e405d24f8c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue