util

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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.5.1

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 NewCertManagerBasicCertificate(name, secretName, issuerName string, issuerKind string, duration, renewBefore *metav1.Duration, dnsNames ...string) *v1.Certificate

Deprecated: use test/unit/gen/Certificate in future

func NewCertManagerBasicCertificateRequest deprecated added in v0.9.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 NewCertManagerVaultCertificate

func NewCertManagerVaultCertificate(name, secretName, issuerName string, issuerKind string, duration, renewBefore *metav1.Duration) *v1.Certificate

func NewGateway added in v1.5.1

func NewGateway(gatewayName, ns, secretName string, annotations map[string]string, dnsNames ...string) (*gwapiv1alpha1.Gateway, *gwapiv1alpha1.HTTPRoute)

func NewIngress

func NewIngress(name, secretName string, annotations map[string]string, dnsNames ...string) *networkingv1.Ingress

func NewV1Beta1Ingress added in v1.5.1

func NewV1Beta1Ingress(name, secretName string, annotations map[string]string, dnsNames ...string) *networkingv1beta1.Ingress

func RandomSubdomain added in v1.5.1

func RandomSubdomain(domain string) string

RandomSubdomain returns a new subdomain domain of the domain suffix. e.g. abcd.example.com.

func RandomSubdomainLength added in v1.5.1

func RandomSubdomainLength(domain string, length int) string

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

func WaitForIssuerStatusFunc(client clientset.IssuerInterface, name string, fn func(*v1.Issuer) (bool, error)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL