Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct {
MetadataCopyFields []string
}
Basic is a simple transformer. It removes volatile fields from the metadata and removes the status, if any. It serializes to YAML.
func NewBasic ¶
NewBasic constructs a new basic transformer. If used without any arguments, it is initialized with the default set of metadata fields to persist. It is recommended to use it this way. If the argument list is not empty, it will be used as the list of metadata fields to persist instead. The default list is ignored in that case. By default, the following fields are retained: name, generateName, namespace, generation, uid, labels, ownerReferences
func (*Basic) Transform ¶
func (b *Basic) Transform(obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
Click to show internal directories.
Click to hide internal directories.