Open ffjlabo opened 2 months ago
[Root cause] Resources in the old namespace cannot be deleted because the namespace is not included in the conditions for searching the deletion target resources.
Inside PipeCD, resources are identified by four types: apiVersion, kind, namespace, and name. However, based on the live state and the manifest on git, in the pruning phase, the deletion target seems to be searched for only three things except for the namespace.
NOTE:
PRIMARY_ROLLOUT
we allow users to remove/prune the resource from the previous/old namespaceK8S_SYNC
(QUICK_SYNC prune true)=> If there is no specific reason, we should keep the spec/behavior of this prune feature the same for both PRIMARY_ROLLOUT and K8S_SYNC stage
What happened:
When changing the namespace, the workload remains in the old namespace.
before
after
What you expected to happen:
It would be nice to delete the old resource successfully.
How to reproduce it:
Environment:
piped
version:control-plane
version: