- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for PathsForCertAndKey (0.34 sec)
-
cmd/kubeadm/app/phases/certs/renewal/readwriter.go
baseName: baseName, certificateDir: certificateDir, } } // Exists checks if a certificate exist func (rw *pkiCertificateReadWriter) Exists() (bool, error) { certificatePath, _ := pkiutil.PathsForCertAndKey(rw.certificateDir, rw.baseName) return fileExists(certificatePath) } func fileExists(filename string) (bool, error) { info, err := os.Stat(filename) if err != nil { if os.IsNotExist(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 01 03:09:53 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
} // Make sure that CA key is not present during Read() as it is not needed. // This covers testing when the CA is external and not present on the host. _, caKeyPath := pkiutil.PathsForCertAndKey(dirPKI, caName) os.Remove(caKeyPath) // Reads back the new certificate embedded in a kubeconfig writer readCert, err = kubeconfigReadWriter.Read() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0)