Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.8.0
type Options struct { // DryRunStrategy defines whether objects should actually be pruned or if // we should just print what would happen without actually doing it. DryRunStrategy common.DryRunStrategy PropagationPolicy metav1.DeletionPropagation }
Options defines a set of parameters that can be used to tune the behavior of the pruner.
type PruneOptions ¶
type PruneOptions struct { InvClient inventory.InventoryClient // contains filtered or unexported fields }
PruneOptions encapsulates the necessary information to implement the prune functionality.
func NewPruneOptions ¶
func NewPruneOptions(currentUids sets.String) *PruneOptions
NewPruneOptions returns a struct (PruneOptions) encapsulating the necessary information to run the prune. Returns an error if an error occurs gathering this information.
func (*PruneOptions) Initialize ¶
func (po *PruneOptions) Initialize(factory util.Factory, invClient inventory.InventoryClient) error
func (*PruneOptions) Prune ¶
func (po *PruneOptions) Prune(localInfos []*resource.Info, eventChannel chan<- event.Event, o Options) error
Prune deletes the set of resources which were previously applied (retrieved from previous inventory objects) but omitted in the current apply. Prune also delete all previous inventory objects. Returns an error if there was a problem.
Click to show internal directories.
Click to hide internal directories.