Skip to content

fix: handle multiple istio-ingress-route relations - #214

Merged
NohaIhab merged 4 commits into
mainfrom
kf-8750-handle-multiple-istio-ingress-route-relations
Jun 23, 2026
Merged

NohaIhab merged 4 commits into
mainfrom
kf-8750-handle-multiple-istio-ingress-route-relations

Conversation

@NohaIhab

Copy link
Copy Markdown
Contributor

Part of canonical/bundle-kubeflow#1446

Use model.relations[...] instead of model.get_relation(...) when checking ingress relations, so the charm no longer raises TooManyRelatedAppsError when more than one istio-ingress-route relation is present.

Add unit tests covering multiple istio-ingress-route relations and verifying each relation receives a valid HTTPRoute config.

Note: this PR was created with the help of AI

NohaIhab added 2 commits June 18, 2026 21:03
Use model.relations[...] (a list) instead of model.get_relation(...) when
checking ambient vs. sidecar ingress, so envoy no longer raises
TooManyRelatedAppsError when more than one istio-ingress-route relation is
present.

Add unit and integration coverage for multiple ambient ingress relations
and widen the metallb CIDR so the integration tests can deploy a second
Istio ingress gateway.
Assert every istio-ingress-route relation receives a valid HTTPRoute config.
@ckfbot ckfbot added the backport track/2.4 Backport to track/2.4 label Jun 19, 2026
@ckfbot

ckfbot commented Jun 19, 2026

Copy link
Copy Markdown

🤖 Backport labels populated

Labels to this pull request were added automatically by the populate-labels.yaml action.

When the PR is merged, backport PRs according to the labels will be automatically created. To skip the backport creation, remove any unneeded labels before merging the PR.

@MattiaSarti MattiaSarti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

todo: shall we also add the same comment to `` before line 55 in src/components/istio_ambient_requirer_component.py, as done for the other pull requests?

                # submit_config publishes this same config to every istio-ingress-route
                # relation, so all related ingress providers are (re)configured at once.
                self.ingress.submit_config(self._istio_ingress_route_config)

Comment thread tests/integration/test_charm_ambient.py Outdated
@NohaIhab
NohaIhab requested a review from MattiaSarti June 22, 2026 12:25
@NohaIhab
NohaIhab merged commit c88457d into main Jun 23, 2026
12 checks passed
@NohaIhab
NohaIhab deleted the kf-8750-handle-multiple-istio-ingress-route-relations branch June 23, 2026 07:31
@ckfbot

ckfbot commented Jun 23, 2026

Copy link
Copy Markdown

Successfully created backport PR for track/2.4:

NohaIhab added a commit that referenced this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport track/2.4 Backport to track/2.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants