Skip to content

Commit

Permalink
fix(kubernetes): prune opt-in
Browse files Browse the repository at this point in the history
making it opt out can result in dangerous moments when the local sources are not
recent enough.

As this could kill entire clusters, we are going to make it opt in
  • Loading branch information
sh0rez committed Jan 6, 2020
1 parent bcc8991 commit 068ede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tk/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type workflowFlagVars struct {
func workflowFlags(fs *pflag.FlagSet) *workflowFlagVars {
v := workflowFlagVars{}
fs.StringSliceVarP(&v.targets, "target", "t", nil, "only use the specified objects (Format: <type>/<name>)")
fs.BoolVarP(&v.prune.Prune, "prune", "p", true, "automatically remove objects from the cluster that are not present in Jsonnet anymore")
fs.BoolVarP(&v.prune.Prune, "prune", "p", false, "automatically remove objects from the cluster that are not present in Jsonnet anymore")
fs.BoolVar(&v.prune.AllKinds, "prune-all-kinds", false, "prune all object kinds, not just the most common ones (much slower)")
return &v
}
Expand Down

0 comments on commit 068ede9

Please sign in to comment.