package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
AssertCertificateHasClientAuthUsage is a utility function for kubeadm testing that asserts if a given certificate has the expected ExtKeyUsageClientAuth.
AssertCertificateHasCommonName is a utility function for kubeadm testing that asserts if a given certificate has the expected SubjectCommonName.
AssertCertificateHasDNSNames is a utility function for kubeadm testing that asserts if a given certificate has the expected DNSNames.
AssertCertificateHasIPAddresses is a utility function for kubeadm testing that asserts if a given certificate has the expected IPAddresses.
AssertCertificateHasNotAfter is a utility function for kubeadm testing that asserts if a given certificate has the expected NotAfter.
AssertCertificateHasNotBefore is a utility function for kubeadm testing that asserts if a given certificate has the expected NotBefore.
AssertCertificateHasOrganizations is a utility function for kubeadm testing that asserts if a given certificate has and only has the expected Subject.Organization.
AssertCertificateHasServerAuthUsage is a utility function for kubeadm testing that asserts if a given certificate has the expected ExtKeyUsageServerAuth.
AssertCertificateIsSignedByCa is a utility function for kubeadm testing that asserts if a given certificate is signed by the expected CA.
CreateCACert creates a generic CA cert.
CreateTestCert makes a generic certificate with the given CA and alternative names.
GetSparseCertTestCases produces a series of cert configurations and their intended outcomes.
SetupCertificateAuthority is a utility function for kubeadm testing that creates a CertificateAuthority cert/key pair.
SetupIntermediateCertificateAuthority is a utility function for kubeadm testing that creates a Intermediate CertificateAuthority cert/key pair.
WritePKIFiles writes the given files out to the given directory.
# Structs
CertTestCase is a configuration of certificates and whether it's expected to work.
# Type aliases
PKIFiles are a list of files that should be created for a test case.