From 20b203d93931636101f22e11acb04220fb0e75e1 Mon Sep 17 00:00:00 2001 From: Luca Bello <36242061+lucabello@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:07:42 +0100 Subject: [PATCH] fix ServicePort definition (#111) --- src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charm.py b/src/charm.py index 471e44c7..e2c47315 100755 --- a/src/charm.py +++ b/src/charm.py @@ -127,8 +127,8 @@ def __init__(self, *args): self.service_patcher = KubernetesServicePatch( self, [ - ServicePort(self._ports.api, f"{self.app.name}"), - ServicePort(self._ports.ha, f"{self.app.name}-ha"), + ServicePort(self._ports.api, name=f"{self.app.name}"), + ServicePort(self._ports.ha, name=f"{self.app.name}-ha"), ], ) self.resources_patch = KubernetesComputeResourcesPatch(