mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
Promote RotateKubeletClientCertificate to GA
This commit is contained in:
@@ -806,7 +806,7 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies, featureGate f
|
||||
// buildKubeletClientConfig constructs the appropriate client config for the kubelet depending on whether
|
||||
// bootstrapping is enabled or client certificate rotation is enabled.
|
||||
func buildKubeletClientConfig(s *options.KubeletServer, nodeName types.NodeName) (*restclient.Config, func(), error) {
|
||||
if s.RotateCertificates && utilfeature.DefaultFeatureGate.Enabled(features.RotateKubeletClientCertificate) {
|
||||
if s.RotateCertificates {
|
||||
// Rules for client rotation and the handling of kube config files:
|
||||
//
|
||||
// 1. If the client provides only a kubeconfig file, we must use that as the initial client
|
||||
|
Reference in New Issue
Block a user