Severity of a configuration result.
Add an annotation to a KubernetesObject's metadata. Overwrites the previously existing annotation if it exists. Return the resulting object.
The object to add the annotation to.
The annotation to set.
The value to set the annotation to.
Add a label to a KubernetesObject's metadata. Overwrites the previously existing label if it exists. Return the resulting object.
The object to add the label to.
The label to set.
The value to set the label to.
A general result.
Typically, the function should the more specific configFileResult or kubernetesObjectResult functions.
Get the value of the object's annotation, or undefined if it is not set.
The object to get the annotation from.
The annotation to get.
Get the value of the object's label, or undefined if it is not set.
The object to get the label from.
The label to get.
Type guard for KubernetesObject.
A unique key for a Kubernetes object defined as tuple of (apiVersion, kind, namespace, name).
A result relating to a Kubernetes object.
Remove an annotation from a KubernetesObject's metadata. If the resulting metadata.annotations is empty, removes it. Return the resulting object.
The object to remove the annotation from.
The annotation to remove.
Remove a label from a KubernetesObject's metadata. If the resulting metadata.labels is empty, removes it. Return the resulting object.
The object to remove the label from.
The label to remove.
This is the main entrypoint for running a kpt function.
This method does not throw any errors and can be invoked at the top-level without getting an unhandled promise rejection error.
Generated using TypeDoc
Any plain old JSON value according to ECMA-404.