Skip to content

adapt traffic command to the possibility of missing non-segment routegroup/ingress #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

linki
Copy link
Member

@linki linki commented Jul 21, 2025

Follow up on zalando-incubator/kubernetes-on-aws#9677

When public domains are filtered out on Stacks, like in the PR above, it can happen that individual Stacks don't have any RouteGroup or Ingress (besides the traffic segment). This trips up the traffic switch command as it waits for both the legacy ingress/routegroups as well as the traffic segments to become ready. The former doesn't exist so it never happens and hangs.

This change makes stackset-controller consider the RouteGroup "ready" when it wouldn't have any hostnames matching any cluster domains anyway. The respective code for not creating the RouteGroup/Ingress in this case is here.

Traffic switching these days works entirely via the Traffic Segment RouteGroup/Ingresses, so maybe the old ones shouldn't be considered at all anymore. This is one step in this direction where it ignores them if it doesn't create them in the first place.

@linki linki added the bugfix label Jul 21, 2025
@demonCoder95
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants