Skip to content

fix: skip non-active gateway helm repos in _add_helm_repos()#1438

Open
Jwrede wants to merge 1 commit into
llm-d:mainfrom
Jwrede:fix/skip-inactive-gateway-helm-repos
Open

fix: skip non-active gateway helm repos in _add_helm_repos()#1438
Jwrede wants to merge 1 commit into
llm-d:mainfrom
Jwrede:fix/skip-inactive-gateway-helm-repos

Conversation

@Jwrede
Copy link
Copy Markdown

@Jwrede Jwrede commented May 31, 2026

Summary

_add_helm_repos() iterates over all helmRepositories entries without checking gateway.className, so the Istio Helm repo is always added even when the active gateway is agentgateway (or any other non-Istio gateway).

This adds a gateway-class filter for known gateway-specific repo keys (istio, agentgateway), matching the pattern already used by _install_gateway_provider() which correctly gates on gateway.className.

Fixes #1394

Changes

  • Add _GATEWAY_REPO_KEYS class-level constant with the set of gateway-specific repo keys
  • Read gateway.className from plan_config at the start of _add_helm_repos()
  • Skip any repo whose key is in _GATEWAY_REPO_KEYS but does not match the active gateway class
  • Log a message when a repo is skipped so operators can see the filtering in action

Test plan

  • Run llmdbenchmark standup with gateway.className: agentgateway and verify Istio repo is not added
  • Run with gateway.className: istio and verify Istio repo is added normally
  • Run with gateway.className: epponly and verify both gateway repos are skipped

_add_helm_repos() iterated over all helmRepositories entries without
checking gateway.className, so the Istio repo was always added even
when the active gateway was agentgateway. Gate gateway-specific repo
keys (istio, agentgateway) on the active className, matching the
pattern already used by _install_gateway_provider().

Fixes llm-d#1394

Signed-off-by: Jonathan Wrede <wrede.jonathan00@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: skip non-active gateway helm repos in _add_helm_repos()

1 participant