mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
commit
cad1b4dbac
@ -184,7 +184,7 @@ func LoadCertificateAuthority(pkiDir string, baseName string) (*x509.Certificate
|
|||||||
|
|
||||||
// writeCertificateAuthorithyFilesIfNotExist write a new certificate Authority to the given path.
|
// writeCertificateAuthorithyFilesIfNotExist write a new certificate Authority to the given path.
|
||||||
// If there already is a certificate file at the given path; kubeadm tries to load it and check if the values in the
|
// If there already is a certificate file at the given path; kubeadm tries to load it and check if the values in the
|
||||||
// existing and the eexpected certificate equals. If they do; kubeadm will just skip writing the file as it's up-to-date,
|
// existing and the expected certificate equals. If they do; kubeadm will just skip writing the file as it's up-to-date,
|
||||||
// otherwise this function returns an error.
|
// otherwise this function returns an error.
|
||||||
func writeCertificateAuthorithyFilesIfNotExist(pkiDir string, baseName string, caCert *x509.Certificate, caKey *rsa.PrivateKey) error {
|
func writeCertificateAuthorithyFilesIfNotExist(pkiDir string, baseName string, caCert *x509.Certificate, caKey *rsa.PrivateKey) error {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user