From 1513d0e41a1195b694ce0b2e5308d2645a072e4b Mon Sep 17 00:00:00 2001 From: Luca Bello <36242061+lucabello@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:07:54 +0100 Subject: [PATCH] fix ServicePort definition (#70) --- src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charm.py b/src/charm.py index 67fd4a75..2d5b96b8 100755 --- a/src/charm.py +++ b/src/charm.py @@ -76,8 +76,8 @@ def __init__(self, *args): self.service_patch = KubernetesServicePatch( self, [ - ServicePort(self._http_listen_port, f"{self.app.name}-http-listen-port"), - ServicePort(self._grpc_listen_port, f"{self.app.name}-grpc-listen-port"), + ServicePort(self._http_listen_port, name=f"{self.app.name}-http-listen-port"), + ServicePort(self._grpc_listen_port, name=f"{self.app.name}-grpc-listen-port"), ], )