The kpt live destroy command currently doesn't have parity with the kpt live apply command. In particular two pieces stand out:
- It doesn't allow the
--prune-propagation-policy and --prune-timeout flags that allow users to specify whether we should wait for resources to be deleted, and if so, for how long.
- The
Applier.Run function returns an init event on the channel with information about which resources will be applied/pruned. This is used by the table UI to be able to create the list of resources and their state before any changes are made. The Deployer should use a similar solution.
The
kpt live destroycommand currently doesn't have parity with thekpt live applycommand. In particular two pieces stand out:--prune-propagation-policyand--prune-timeoutflags that allow users to specify whether we should wait for resources to be deleted, and if so, for how long.Applier.Runfunction returns aninitevent on the channel with information about which resources will be applied/pruned. This is used by thetableUI to be able to create the list of resources and their state before any changes are made. TheDeployershould use a similar solution.