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

Restart dex-auth pod on oidc-client relation changes #170

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

knkski
Copy link
Contributor

@knkski knkski commented Jan 27, 2020

Previously, any changes in config to oidc-gatekeeper weren't getting updated for dex-auth.

@@ -19,7 +19,9 @@ def charm_ready():
layer.status.active("")


@when_any("layer.docker-resource.oci-image.changed", "config.changed")
@when_any(
"layer.docker-resource.oci-image.changed", "config.changed", "endpoint.oidc-client.changed"
Copy link
Contributor

Choose a reason for hiding this comment

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

The config.changed flag gets cleared automatically for legacy reasons, but I don't think that's necessarily true of the other two. Have you confirmed that this doesn't lead to a "restart on every update-status hook" issue?

Previously, any changes in config to oidc-gatekeeper weren't getting
updated for dex-auth.
Copy link
Contributor

@johnsca johnsca left a comment

Choose a reason for hiding this comment

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

LGTM

@knkski knkski merged commit 7d5a697 into master Jan 31, 2020
@knkski knkski deleted the dex-relation-handling branch January 31, 2020 17:12
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.

None yet

2 participants