Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsValidKey = regexp.MustCompile(`^([a-zA-Z](([-a-zA-Z0-9.]{0,251})[a-zA-Z0-9])?\/)?[a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?$`).MatchString
IsValidKey checks key against regex. First part for prefix segment (DNS1123Label) of an annotation followed by a slash, second part for name segment of an annotation see https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.