Documentation
¶
Index ¶
- func CertificateOnlyValidForDomains(cert *x509.Certificate, commonName string, dnsNames ...string) bool
- func HasIngresses(d discovery.DiscoveryInterface, GroupVersion string) bool
- func NewCertManagerBasicCertificate(name, secretName, issuerName string, issuerKind string, ...) *v1.Certificatedeprecated
- func NewCertManagerBasicCertificateRequest(name, issuerName string, issuerKind string, duration *metav1.Duration, ...) (*v1.CertificateRequest, crypto.Signer, error)deprecated
- func NewCertManagerVaultCertificate(name, secretName, issuerName string, issuerKind string, ...) *v1.Certificate
- func NewGateway(gatewayName, ns, secretName string, annotations map[string]string, ...) *gwapiv1beta1.Gateway
- func NewIngress(name, secretName string, annotations map[string]string, dnsNames ...string) *networkingv1.Ingress
- func NewV1Beta1Ingress(name, secretName string, annotations map[string]string, dnsNames ...string) *networkingv1beta1.Ingress
- func RandomSubdomain(domain string) string
- func RandomSubdomainLength(domain string, length int) string
- func WaitForCRDToNotExist(client apiextensionsv1.CustomResourceDefinitionInterface, name string) error
- func WaitForClusterIssuerCondition(client clientset.ClusterIssuerInterface, name string, ...) error
- func WaitForIssuerCondition(client clientset.IssuerInterface, name string, condition v1.IssuerCondition) error
- func WaitForIssuerStatusFunc(client clientset.IssuerInterface, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateOnlyValidForDomains ¶
func CertificateOnlyValidForDomains(cert *x509.Certificate, commonName string, dnsNames ...string) bool
func HasIngresses ¶ added in v1.8.0
func HasIngresses(d discovery.DiscoveryInterface, GroupVersion string) bool
HasIngresses lets you know if an API exists in the discovery API calling this function always performs a request to the API server.
func NewCertManagerBasicCertificate
deprecated
func NewCertManagerBasicCertificateRequest
deprecated
added in
v1.8.0
func NewCertManagerBasicCertificateRequest(name, issuerName string, issuerKind string, duration *metav1.Duration, dnsNames []string, ips []net.IP, uris []string, keyAlgorithm x509.PublicKeyAlgorithm) (*v1.CertificateRequest, crypto.Signer, error)
Deprecated: use test/unit/gen/CertificateRequest in future
func NewGateway ¶ added in v1.8.0
func NewGateway(gatewayName, ns, secretName string, annotations map[string]string, dnsNames ...string) *gwapiv1beta1.Gateway
NewGateway creates a new test Gateway. There is no Gateway controller watching the 'foo' gateway class, so this Gateway will not be used to actually route traffic, but can be used to test cert-manager controllers that sync Gateways, such as gateway-shim.
func NewIngress ¶
func NewV1Beta1Ingress ¶ added in v1.8.0
func RandomSubdomain ¶ added in v1.8.0
RandomSubdomain returns a new subdomain domain of the domain suffix. e.g. abcd.example.com.
func RandomSubdomainLength ¶ added in v1.8.0
RandomSubdomainLength returns a new subdomain domain of the domain suffix, where the subdomain has `length` number of characters. e.g. abcdefghij.example.com.
func WaitForCRDToNotExist ¶
func WaitForCRDToNotExist(client apiextensionsv1.CustomResourceDefinitionInterface, name string) error
WaitForCRDToNotExist waits for the CRD with the given name to no longer exist.
func WaitForClusterIssuerCondition ¶
func WaitForClusterIssuerCondition(client clientset.ClusterIssuerInterface, name string, condition v1.IssuerCondition) error
WaitForClusterIssuerCondition waits for the status of the named issuer to contain a condition whose type and status matches the supplied one.
func WaitForIssuerCondition ¶
func WaitForIssuerCondition(client clientset.IssuerInterface, name string, condition v1.IssuerCondition) error
WaitForIssuerCondition waits for the status of the named issuer to contain a condition whose type and status matches the supplied one.
func WaitForIssuerStatusFunc ¶
Types ¶
This section is empty.