validation

package
v1.28.10 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCertificateRequestName

func ValidateCertificateRequestName(name string, prefix bool) []string

We don't care what you call your certificate requests.

func ValidateCertificateSigningRequestApprovalUpdate added in v1.19.0

func ValidateCertificateSigningRequestApprovalUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList

func ValidateCertificateSigningRequestCreate added in v1.19.0

func ValidateCertificateSigningRequestCreate(csr *certificates.CertificateSigningRequest) field.ErrorList

func ValidateCertificateSigningRequestStatusUpdate added in v1.19.0

func ValidateCertificateSigningRequestStatusUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList

func ValidateCertificateSigningRequestUpdate

func ValidateCertificateSigningRequestUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList

func ValidateClusterTrustBundle added in v1.27.0

func ValidateClusterTrustBundle(bundle *certificates.ClusterTrustBundle, opts ValidateClusterTrustBundleOptions) field.ErrorList

ValidateClusterTrustBundle runs all validation checks on bundle.

func ValidateClusterTrustBundleUpdate added in v1.27.0

func ValidateClusterTrustBundleUpdate(newBundle, oldBundle *certificates.ClusterTrustBundle) field.ErrorList

ValidateClusterTrustBundleUpdate runs all update validation checks on an update.

func ValidateSignerName added in v1.27.0

func ValidateSignerName(fldPath *field.Path, signerName string) field.ErrorList

ensure signerName is of the form domain.com/something and up to 571 characters. This length and format is specified to accommodate signerNames like: <fqdn>/<resource-namespace>.<resource-name>. The max length of a FQDN is 253 characters (DNS1123Subdomain max length) The max length of a namespace name is 63 characters (DNS1123Label max length) The max length of a resource name is 253 characters (DNS1123Subdomain max length) We then add an additional 2 characters to account for the one '.' and one '/'.

Types

type ValidateClusterTrustBundleOptions added in v1.27.0

type ValidateClusterTrustBundleOptions struct {
	SuppressBundleParsing bool
}

Jump to

Keyboard shortcuts

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