From 397eaffe32c3e9434116461376c3186b8ebd3acc Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Fri, 26 Jul 2024 12:02:58 +0200 Subject: [PATCH] fix: add config_changed as refresh event for dex-oidc-config provider (#214) This will allow the library to handle relation data during config changed events. --- src/charm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index 51394c09..de19b716 100755 --- a/src/charm.py +++ b/src/charm.py @@ -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,