Skip to content

[Multi_K8s-Plugin] Fix Rollback Variant Cleanup #6660

Open
mohammedfirdouss wants to merge 1 commit intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-multi-rollback-variant-cleanup
Open

[Multi_K8s-Plugin] Fix Rollback Variant Cleanup #6660
mohammedfirdouss wants to merge 1 commit intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-multi-rollback-variant-cleanup

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

What this PR does:
Enhances the K8S_MULTI_ROLLBACK stage in the kubernetes_multicluster plugin to delete leftover CANARY and BASELINE variant resources after restoring the previous deployment manifests.

Why we need it:
When a pipeline fails mid-way (e.g., after K8S_CANARY_ROLLOUT but before K8S_CANARY_CLEAN), the rollback stage was triggered but left orphaned canary/baseline pods running in the cluster indefinitely. This fix ensures the cluster is fully cleaned up on rollback.

Which issue(s) this PR fixes:

Fixes #6446

Does this PR introduce a user-facing change?:

  • How are users affected by this change: Rollback now removes canary and baseline variant resources automatically, no manual cleanup needed after a failed pipeline deployment.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

…variants

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss
Copy link
Copy Markdown
Contributor Author

@khanhtc1202 @Warashi Please take a look when less busy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LFX Mentorship T-1 2026] Kubernetes Multi-Cluster Plugin #6446

1 participant