Input type for matchLabels function.
Create a default set of labels for a resource. The returned set satisfy the recommendations from https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
Determine if labels match selector. If the selector contains no label selector, it is considered a match. If the the matchLabels contain no properties, it is considered matching. If the matchExpressions array is empty, it is considered matching.
Kubernetes object spec
Kubernetes label selector
Return true
if it is a match, false
otherwise
Provide label selector string suitable for passing to a Kubernetes
API call for the provided req
object.
A Kubernetes request object containing at least the "name" and "workspaceId" properties
Kubernetes label selector string
Returns the subset of the default set of labels for that should be used in a matchLabels to match a resource.
A Kubernetes request object containing at least the "name" and "workspaceId" properties
Kubernetes object metadata labels object
Remove objectionable characters from a Kubernetes label value. The validation regular expression for a label value is /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.
The label value
A valid label value based on the input
Generated using TypeDoc
Input type for the labels function.