From 70544be778c5983d7203bfd8dc5eb63ff10db9c5 Mon Sep 17 00:00:00 2001 From: Nikos Date: Tue, 25 Apr 2023 15:33:32 +0300 Subject: [PATCH] Target named port We can't use the named port because we have named the ports on the Service and not on the Pod --- src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charm.py b/src/charm.py index f70fa06e..d3ad1d6e 100755 --- a/src/charm.py +++ b/src/charm.py @@ -543,8 +543,8 @@ def _apply_network_policies(self, event: HookEvent) -> None: try: self.network_policy_handler.apply_ingress_policies( [ - ("public", [self.public_ingress.relation]), - ("admin", [self.admin_ingress.relation]), + (KRATOS_PUBLIC_PORT, [self.public_ingress.relation]), + (KRATOS_ADMIN_PORT, [self.admin_ingress.relation]), (38812, []), (38813, []), ]