mirror of https://github.com/fluxcd/cli-utils.git
Turn off default kubectl prune
This commit is contained in:
parent
cd52f41e8f
commit
88eb44789a
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue