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.
Click to show internal directories.
Click to hide internal directories.