mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
kubeadm: print the CA of kubeconfig files in "check expiration"
Apply a small fix to ensure the kubeconfig files that kubeadm manages have a CA when printed in the table of the "check expiration" command. "CAName" is the field used for that. In practice kubeconfig files can contain multiple credentials from different CAs, but this is not supported by kubeadm and there is a single cluster CA that signs the single client cert/key in kubeadm managed kubeconfigs.
This commit is contained in:
parent
6603cf6357
commit
c78afc695b
@ -166,6 +166,7 @@ func NewManager(cfg *kubeadmapi.ClusterConfiguration, kubernetesDir string) (*Ma
|
||||
LongName: kubeConfig.longName,
|
||||
FileName: kubeConfig.fileName,
|
||||
CABaseName: kubeadmconstants.CACertAndKeyBaseName, // all certificates in kubeConfig files are signed by the Kubernetes CA
|
||||
CAName: kubeadmconstants.CACertAndKeyBaseName,
|
||||
readwriter: kubeConfigReadWriter,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user