Skip to content
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

fix: check routes before popping values #424

Merged
merged 2 commits into from
May 29, 2024
Merged

fix: check routes before popping values #424

merged 2 commits into from
May 29, 2024

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented May 29, 2024

This commit ensures the istio-pilot charm checks that the ingress routes dictionary it uses for reconciling VirtualServices from requirers is not empty and the relation data for the departing application is there before attempting to pop values during a RelationBroken event.

Fixes #423

Testing

  1. Follow the steps to reproduce in KeyError during RelationBrokenEvent puts istio-pilot in unrecoverable state #423 to ensure the issue is happening
  2. Remove the charm and re-deploy it from this PR
  3. Try the steps in KeyError during RelationBrokenEvent puts istio-pilot in unrecoverable state #423 again and make sure there is no error

@DnPlas DnPlas requested a review from a team as a code owner May 29, 2024 09:16
This commit ensures the istio-pilot charm checks that the ingress routes dictionary
it uses for reconciling VirtualServices from requirers is not empty before attempting
to pop values during a RelationBroken event.

Fixes #423
@DnPlas DnPlas enabled auto-merge (squash) May 29, 2024 11:32
@DnPlas DnPlas changed the title fix: check routes is not empty before popping values fix: check routes before popping values May 29, 2024
@DnPlas DnPlas merged commit 92dc75d into track/1.17 May 29, 2024
19 checks passed
@DnPlas DnPlas deleted the KF-5751-fix-423 branch May 29, 2024 13:34
DnPlas added a commit that referenced this pull request May 29, 2024
This commit ensures the istio-pilot charm checks that the ingress routes dictionary it uses for reconciling VirtualServices from requirers is not empty and the relation data for the departing application is there before attempting to pop values during a RelationBroken event.

Fixes #423
DnPlas added a commit that referenced this pull request May 29, 2024
This commit ensures the istio-pilot charm checks that the ingress routes dictionary it uses for reconciling VirtualServices from requirers is not empty and the relation data for the departing application is there before attempting to pop values during a RelationBroken event.

Fixes #423
DnPlas added a commit that referenced this pull request May 30, 2024
This PR cherry-picks all the work done for enabling TLS ingress gateway using juju secrets.

* docs: add instructions for TLS with secrets (#421)
* refactor: use secret config instead of action for configuring TLS ingress gateway (#401)
* fix: check routes is not empty before popping values (#424)

Fixes #398
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