Skip to content

Commit

Permalink
fix: add config_changed as refresh event for dex-oidc-config provider (
Browse files Browse the repository at this point in the history
…#214)

This will allow the library to handle relation data during config changed events.
  • Loading branch information
DnPlas authored Jul 26, 2024
1 parent 8912ccb commit 397eaff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def __init__(self, *args):
metrics_port = ServicePort(int(METRICS_PORT), name="metrics-port")

# Instantiate a DexOidcConfigProvider to share this app's issuer_url
self.dex_oidc_config_provider = DexOidcConfigProvider(self, issuer_url=self._issuer_url)
self.dex_oidc_config_provider = DexOidcConfigProvider(
self, issuer_url=self._issuer_url, refresh_events=[self.on.config_changed]
)

self.service_patcher = KubernetesServicePatch(
self,
Expand Down

0 comments on commit 397eaff

Please sign in to comment.