Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInt32Pointer ¶
func GetInt64ptr ¶
func GetStringPointer ¶
func MergeMetadata ¶
func MergeMetadata(new *metav1.ObjectMeta, old metav1.ObjectMeta)
mergeMetadata takes labels and annotations from the old resource and merges them into the new resource. If a key is present in both resources, the new resource wins. It also copies the ResourceVersion from the old resource to the new resource to prevent update conflicts.
func MergeSlices ¶
Types ¶
type Annotations ¶
func NewAnnotations ¶
func NewAnnotations(annotations ...Annotations) Annotations
func (Annotations) Add ¶
func (a Annotations) Add(key, value string)
func (Annotations) AddAnnotation ¶
func (a Annotations) AddAnnotation(annotation Annotations)
Click to show internal directories.
Click to hide internal directories.