Skip to content

fix(argo-cd): do not derive HTTPRoute hostnames from ListenerSet - #4183

Open
rgarcia89 wants to merge 4 commits into
argoproj:mainfrom
rgarcia89:fix/argo-cd-httproute-listenerset-hostnames
Open

rgarcia89 wants to merge 4 commits into
argoproj:mainfrom
rgarcia89:fix/argo-cd-httproute-listenerset-hostnames

Conversation

@rgarcia89

Copy link
Copy Markdown

HTTPRoute hostnames are optional and are inherited from the attached listener. Deriving them from global.domain broke routes when custom listeners were used (non-overlapping hostname) or global.domain was empty. Also omit the auto-derived sectionName when custom listeners are provided.

Applies to both the server and applicationSet HTTPRoutes. Before this change, enabling listenerset with an empty httproute.hostnames rendered hostnames: [<global.domain>], even when listenerset.listeners defined a different hostname, or [""] when global.domain was empty. Now hostnames is only rendered when set explicitly. I also corrected the ListenerSet comments in values.yaml from v1alpha2 to Gateway API v1.5+, to match the README and the templates.

Added ci/listenerset-httproute-custom-listeners-values.yaml to cover custom listeners together with an HTTPRoute.

Checklist:

  • I have added a change fragment with the right bump according to versioning
  • I have updated the documentation according to documentation
  • The change fragment describes all the changes in this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • I have created a separate pull request for each chart according to pull requests
  • My build is green (troubleshooting builds).

rgarcia89 and others added 2 commits October 30, 2026 15:37
HTTPRoute hostnames are optional and are inherited from the attached
listener. Deriving them from global.domain broke routes when custom
listeners were used (non-overlapping hostname) or global.domain was empty.
Also omit the auto-derived sectionName when custom listeners are provided.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>

@tico24 tico24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The red chart-test isn't from this PR: every argo-cd PR fails at the kind image preload until #4178 merges. Your next push after that will pick up the fix.

…stenerName

Address review feedback: only drop the auto-derived sectionName when none of
the custom listeners is named listenerName, and bump the change to minor
since wildcard listeners now match all their hosts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>
@rgarcia89

Copy link
Copy Markdown
Author

@tico24 I have implemented the requested changes. Will push again once #4178 has been merged

This branch has not been deployed

No deployments
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