cleaner

package
v0.0.0-...-bea9776 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonDefaults = &Common{
	SkipNamespaceRE: "kube-.*|.*(-system|monitoring|logging|ingress)",
	SkipLabels:      []string{"created_by"},
	TagTTL:          "24h",
}

CommonDefaults has opinionated default values for Common

Functions

This section is empty.

Types

type Common

type Common struct {
	DryRun          bool
	Namespace       string
	SkipNamespaceRE string
	SkipLabels      []string
	TagTTL          string
	// contains filtered or unexported fields
}

Common represents flags set from cmd/, conversion of these into more convenient type(s), and runtime clientset

func (*Common) Init

func (c *Common) Init(clientset kubernetes.Interface)

Init initializes Common obj with ready-to-use values, must be called by callers before Run()

func (Common) Run

func (c Common) Run() (int, int, int)

Run is main entry point for this package, will loop over all namespaces skip those matching SkipLabels or SkipNamespaceRE, then call update<Type>() on each

Jump to

Keyboard shortcuts

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