transformers

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func NewBasic(metadataFields ...string) *Basic

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL