Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpecCleaner ¶
type SpecCleaner struct {
KnownTypes map[schema.GroupKind]SpecCleanup
}
func New ¶
func New(kts ...map[schema.GroupKind]SpecCleanup) *SpecCleaner
func (*SpecCleaner) Cleanup ¶
func (oc *SpecCleaner) Cleanup(spec, actual *unstructured.Unstructured) (updatedSpec *unstructured.Unstructured, err error)
type SpecCleanup ¶
type SpecCleanup func(spec, actual *unstructured.Unstructured) (updatedSpec *unstructured.Unstructured, err error)
SpecCleanup cleans the fields of the object which should be ignored. Each function is responsible for handling different versions of objects itself.
Click to show internal directories.
Click to hide internal directories.