Skip to content

[Multi_K8s-Plugin] Traffic Routing Log Updates#6648

Merged
Warashi merged 2 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/traffic-routing-route-log
Apr 5, 2026
Merged

[Multi_K8s-Plugin] Traffic Routing Log Updates#6648
Warashi merged 2 commits intopipe-cd:masterfrom
mohammedfirdouss:feat/traffic-routing-route-log

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

@mohammedfirdouss mohammedfirdouss commented Apr 5, 2026

What this PR does: Adds per-route log lines to the K8S_TRAFFIC_ROUTING stage for Istio traffic routing, in both the kubernetes and kubernetes_multicluster plugins.

When editableRoutes is configured, each route now logs whether it was updated or skipped:

  • Skipped: Skipping route "admin-route" (not in editableRoutes)
  • Updated: Updated route "primary-route": primary=80%, canary=10%, baseline=10%

Why we need it: Previously there was no way to verify editableRoutes behaviour from the PipeCD UI — you had to run kubectl get virtualservice manually to confirm which routes were modified. This makes the stage log the source of truth.

Which issue(s) this PR fixes: #6446

Does this PR introduce a user-facing change?:

  • How are users affected by this change: The K8S_TRAFFIC_ROUTING stage log now shows per-route update/skip messages when using Istio routing.
  • Is this breaking change: No.
  • How to migrate (if breaking change): N/A

…OUTING stage

Add per-route log lines to K8S_TRAFFIC_ROUTING so the PipeCD UI shows
which VirtualService routes were updated and which were skipped due to
editableRoutes filtering.

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss mohammedfirdouss force-pushed the feat/traffic-routing-route-log branch from 4f712dd to 890a891 Compare April 5, 2026 14:42
@mohammedfirdouss mohammedfirdouss changed the title feat(kubernetes_multicluster): log per-route updates in K8S_TRAFFIC_ROUTING stage [Multi_K8s-Plugin] Traffic Routing Log Updates Apr 5, 2026
@mohammedfirdouss
Copy link
Copy Markdown
Contributor Author

mohammedfirdouss commented Apr 5, 2026

With editableRoutes: [primary-route]admin-route was skipped, primary-route got the weight update. Proof: mohammedfirdouss/pipecd-test-app@a7ee074

@Warashi

Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

Nice improvement!
We can improve the same thing in the k8s plugin, so please fix it too?

@mohammedfirdouss
Copy link
Copy Markdown
Contributor Author

Nice improvement! We can improve the same thing in the k8s plugin, so please fix it too?

Alright no problem, will do so.

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

All good with single and multi cluster update @Warashi

Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM.

@Warashi Warashi merged commit 6e2287e into pipe-cd:master Apr 5, 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.

2 participants