Skip to content

Commit

Permalink
Merge pull request #9757 from johngmyers/kubelet-tokenreview
Browse files Browse the repository at this point in the history
Default kubelet authenticationTokenWebhook to true for k8s 1.19+
  • Loading branch information
k8s-ci-robot authored Aug 15, 2020
2 parents afd3857 + e405d24 commit 8162134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodeup/pkg/model/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8162134

Please sign in to comment.