Turn off default kubectl prune

This commit is contained in:
Sean Sullivan 2020-02-26 14:09:52 -08:00
parent cd52f41e8f
commit 88eb44789a
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ func (a *Applier) Initialize(cmd *cobra.Command, paths []string) error {
return errors.WrapPrefix(err, "error setting up ApplyOptions", 1) return errors.WrapPrefix(err, "error setting up ApplyOptions", 1)
} }
a.ApplyOptions.PreProcessorFn = prune.PrependGroupingObject(a.ApplyOptions) a.ApplyOptions.PreProcessorFn = prune.PrependGroupingObject(a.ApplyOptions)
a.ApplyOptions.PostProcessorFn = nil // Turn off the default kubectl pruning
err = a.PruneOptions.Initialize(a.factory, a.ApplyOptions.Namespace) err = a.PruneOptions.Initialize(a.factory, a.ApplyOptions.Namespace)
if err != nil { if err != nil {
return errors.WrapPrefix(err, "error setting up PruneOptions", 1) return errors.WrapPrefix(err, "error setting up PruneOptions", 1)