Skip to content

[Multi_K8s-Plugin] Fix DetermineStrategy to be multi-target aware#6672

Merged
khanhtc1202 merged 3 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-determine-strategy-multi-target
Apr 17, 2026
Merged

[Multi_K8s-Plugin] Fix DetermineStrategy to be multi-target aware#6672
khanhtc1202 merged 3 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/fix-determine-strategy-multi-target

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

What this PR does:
Makes DetermineStrategy and DetermineVersions in the kubernetes_multicluster plugin aware of per-cluster manifest overrides (multiTargets). Previously both functions passed an empty KubernetesMultiTarget{} when loading manifests, so per-target manifest paths were silently ignored when deciding whether a deployment required progressive delivery.

Why we need it:
When a user configures different manifest paths per cluster (e.g. ./cluster-us and ./cluster-eu), a change only to one cluster's deployment.yaml would not trigger PipelineSync — the strategy check was loading from the app-level manifest path and missing the per-target change entirely. This could cause a workload update to be deployed via QuickSync, bypassing canary and baseline stages completely.

Which issue(s) this PR fixes:

Fixes #6446

Does this PR introduce a user-facing change?:

  • How are users affected by this change: DetermineStrategy now correctly triggers PipelineSync when a workload change is made to any configured multiTarget, even if the app-level manifests are unchanged.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

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

@khanhtc1202 @Warashi This is ready for review.

Copy link
Copy Markdown
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@khanhtc1202 khanhtc1202 merged commit 81f17a4 into pipe-cd:master Apr 17, 2026
45 checks passed
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

2 participants