- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SetupCertificateAuthority (0.4 sec)
-
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
} func TestCreateKubeConfigFileIfNotExists(t *testing.T) { // Creates a CAs caCert, caKey := certstestutil.SetupCertificateAuthority(t) anotherCaCert, anotherCaKey := certstestutil.SetupCertificateAuthority(t) notAfter, _ := time.Parse(time.RFC3339, "2026-01-02T15:04:05Z") // build kubeconfigs (to be used to test kubeconfigs equality/not equality)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 39.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/certs/util.go
"time" certutil "k8s.io/client-go/util/cert" "k8s.io/client-go/util/keyutil" "k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil" ) // SetupCertificateAuthority is a utility function for kubeadm testing that creates a // CertificateAuthority cert/key pair func SetupCertificateAuthority(t *testing.T) (*x509.Certificate, crypto.Signer) { caCert, caKey, err := pkiutil.NewCertificateAuthority(&pkiutil.CertConfig{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 9.1K bytes - Viewed (0) -
cmd/kubeadm/test/util.go
// The function returns the path of the created pki. func SetupPkiDirWithCertificateAuthority(t *testing.T, tmpdir string) string { caCert, caKey := certtestutil.SetupCertificateAuthority(t) certDir := filepath.Join(tmpdir, "pki") if err := pkiutil.WriteCertAndKey(certDir, kubeadmconstants.CACertAndKeyBaseName, caCert, caKey); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 3.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
if !os.IsNotExist(err) { t.Error("expected backup etcd dir to not exist") } } }) } } func TestRenewCertsByComponent(t *testing.T) { caCert, caKey := certstestutil.SetupCertificateAuthority(t) tests := []struct { name string component string externalCA bool externalFrontProxyCA bool skipCreateEtcdCA bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0)