Skip to content

[Multi_K8s-Plugin] Primary Rollout #6591

Draft
mohammedfirdouss wants to merge 8 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/k8s-multi-primary-rollout
Draft

[Multi_K8s-Plugin] Primary Rollout #6591
mohammedfirdouss wants to merge 8 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/k8s-multi-primary-rollout

Conversation

@mohammedfirdouss
Copy link
Contributor

What this PR does
Implements K8S_PRIMARY_ROLLOUT for the kubernetes_multicluster plugin. After a canary is validated, this stage promotes the new version as PRIMARY across all targeted clusters in parallel. It supports addVariantLabelToSelector (inject variant label into workload selectors), createService (generate a PRIMARY-varianta Service), and prune (delete stale primary resources no longer in Git).

Why we need it
This is the promotion step in the canary pipeline lifecycle — K8S_CANARY_ROLLOUT and WAIT_APPROVAL are validation gates, but K8S_PRIMARY_ROLLOUT is what actually delivers the new version to end-users across all clusters.

Which issue(s) this PR fixes
Fixes #

Does this PR introduce a user-facing change

  • How are users affected — Users can now add K8S_PRIMARY_ROLLOUT to their pipeline to promote a validated canary to primary across multiple clusters
  • Is this breaking change — No
  • How to migrate — N/A

⚠️ Depends on #6589 (K8S_CANARY_CLEAN) — diff includes canary clean commits until #6589 merges. Once it does, this branch will be rebased and only the 3 primary rollout commits will remain.

mohammedfirdouss and others added 8 commits March 14, 2026 08:23
Signed-off-by: Mohammed Firdous <mohammedfirdousaraoye@gmail.com>
Signed-off-by: Mohammed Firdous <mohammedfirdousaraoye@gmail.com>
…ions

Signed-off-by: Mohammed Firdous <mohammedfirdousaraoye@gmail.com>
…multi-cluster deployments

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss mohammedfirdouss changed the title [Multi_K8s-Plugin] Multi Primary Rollout [Multi_K8s-Plugin] Primary Rollout Mar 14, 2026
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.

1 participant