cleanup

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 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 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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