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 ¶
View Source
var ErrDiffFound = fmt.Errorf("Differences found.")
Functions ¶
This section is empty.
Types ¶
type ApplyCmd ¶
type ApplyCmd struct { ClientPool dynamic.ClientPool Discovery discovery.DiscoveryInterface DefaultNamespace 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 metadata.AbsPath) error
type DeleteCmd ¶
type DeleteCmd struct { ClientPool dynamic.ClientPool Discovery discovery.DiscoveryInterface DefaultNamespace string GracePeriod int64 }
DeleteCmd represents the delete subcommand
func (DeleteCmd) Run ¶
func (c DeleteCmd) Run(apiObjects []*unstructured.Unstructured) error
type DiffCmd ¶
type DiffCmd struct { ClientPool dynamic.ClientPool Discovery discovery.DiscoveryInterface DefaultNamespace string DiffStrategy string }
DiffCmd represents the diff subcommand
func (DiffCmd) Run ¶
func (c DiffCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error
type EnvAddCmd ¶
type EnvAddCmd struct {
// contains filtered or unexported fields
}
func NewEnvAddCmd ¶
type EnvListCmd ¶
type EnvListCmd struct {
// contains filtered or unexported fields
}
func NewEnvListCmd ¶
func NewEnvListCmd(manager metadata.Manager) (*EnvListCmd, error)
type EnvSetCmd ¶
type EnvSetCmd struct {
// contains filtered or unexported fields
}
func NewEnvSetCmd ¶
type ShowCmd ¶
type ShowCmd struct {
Format string
}
ShowCmd represents the show subcommand
func (ShowCmd) Run ¶
func (c ShowCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error
type ValidateCmd ¶
type ValidateCmd struct {
Discovery discovery.DiscoveryInterface
}
ValidateCmd represents the validate subcommand
func (ValidateCmd) Run ¶
func (c ValidateCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error
Click to show internal directories.
Click to hide internal directories.