- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeTestKubeconfig (0.23 sec)
-
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
t.Fatalf("couldn't write out certificate %s to %s", name, dir) } return cert } // writeTestKubeconfig is a utility for creating a test kubeconfig with an embedded certificate func writeTestKubeconfig(t *testing.T, dir, name string, caCert *x509.Certificate, caKey crypto.Signer, notBefore, notAfter time.Time) *x509.Certificate { cfg := &pkiutil.CertConfig{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/manager_test.go
}, { name: "Certificate renewal for a certificate embedded in a kubeconfig file", certName: "admin.conf", createCertFunc: func() *x509.Certificate { return writeTestKubeconfig(t, dir, "admin.conf", testCACert, testCAKey, notBefore, notAfter) }, expectedOrganization: testCertOrganization, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 13.9K bytes - Viewed (0)