Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidateEnabledAPIFields = config.ValidateEnabledAPIFields
Deprecated: Use github.com/tektoncd/pipeline/pkg/apis/config.ValidateEnabledAPIFields instead
Functions ¶
func DeserializeFromMetadata ¶ added in v0.39.0
func DeserializeFromMetadata(meta *metav1.ObjectMeta, to interface{}, key string) error
DeserializeFromMetadata takes the value of the input key from the metadata's annotations, deserializes it into "to", and removes the key from the metadata's annotations. Returns nil if the key is not present in the annotations.
func SerializeToMetadata ¶ added in v0.39.0
func SerializeToMetadata(meta *metav1.ObjectMeta, field interface{}, key string) error
SerializeToMetadata serializes the input field and adds it as an annotation to the metadata under the input key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.