Documentation
¶
Overview ¶
Package labels contains adapter label validation functions from Kubernetes.
We want to avoid dependency of machinery on Kubernetes packages.
Index ¶
- Constants
- func Validate(labels map[string]string) error
- func ValidateAnnotations(annotations map[string]string) error
- func ValidateDNS1123Subdomain(value string) error
- func ValidateLabelValue(value string) error
- func ValidateQualifiedName(value string) error
- func ValidateTaints(taints map[string]string) error
Constants ¶
const TotalAnnotationSizeLimitB int64 = 256 * (1 << 10) // 256 kB
TotalAnnotationSizeLimitB is the maximum size of all annotations in bytes.
Variables ¶
This section is empty.
Functions ¶
func ValidateAnnotations ¶ added in v1.8.0
ValidateAnnotations validates that a set of annotations are correctly defined.
func ValidateDNS1123Subdomain ¶
ValidateDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
func ValidateLabelValue ¶
ValidateLabelValue tests whether the value passed is a valid label value.
If the value is not valid, a list of error strings is returned. Otherwise an empty list (or nil) is returned.
func ValidateQualifiedName ¶
ValidateQualifiedName tests whether the value passed is what Kubernetes calls a "qualified name".
This is a format used in various places throughout the system. If the value is not valid, a list of error strings is returned. Otherwise an empty list (or nil) is returned.
func ValidateTaints ¶ added in v1.6.0
ValidateTaints validates that a set of taints is correctly defined.
Types ¶
This section is empty.