k8sutil

package
v0.0.0-...-87b999f Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// AnnotationGcTag annotation that triggers
	// garbage collection. Objects with value equal to
	// command-line flag that are *not* in config will be deleted.
	AnnotationGcTag = "kubecfg.ksonnet.io/garbage-collect-tag"

	// AnnotationGcStrategy controls gc logic.  Current values:
	// `auto` (default if absent) - do garbage collection
	// `ignore` - never garbage collect this object
	AnnotationGcStrategy = "kubecfg.ksonnet.io/garbage-collect-strategy"

	// GcStrategyAuto is the default automatic gc logic
	GcStrategyAuto = "auto"
	// GcStrategyIgnore means this object should be ignored by garbage collection
	GcStrategyIgnore = "ignore"
)

Variables

This section is empty.

Functions

func FlattenToV1

func FlattenToV1(objs []runtime.Object) ([]*unstructured.Unstructured, error)

FlattenToV1 expands any List-type objects into their members, and coerces everything to v1.Unstructured.

Types

type ApplyCmd

type ApplyCmd struct {
	ClientConfig *client.Config
	Env          string
	Create       bool
	GcTag        string
	SkipGc       bool
	DryRun       bool
}

ApplyCmd represents the apply subcommand

func (ApplyCmd) Run

func (c ApplyCmd) Run(apiObjects []*unstructured.Unstructured, wd string) error

Run applies the components to the designated environment cluster.

type DeleteCmd

type DeleteCmd struct {
	ClientConfig *client.Config
	Env          string
	GracePeriod  int64
}

DeleteCmd represents the delete subcommand

func (DeleteCmd) Run

func (c DeleteCmd) Run(apiObjects []*unstructured.Unstructured) error

Jump to

Keyboard shortcuts

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