diff --git a/src/charm.py b/src/charm.py index 52d9039..f141a2f 100755 --- a/src/charm.py +++ b/src/charm.py @@ -102,9 +102,7 @@ def __init__(self, *args): admin_port = ServicePort(int(self.model.config["admin-port"]), name="admin") http_port = ServicePort(int(self.model.config["http-port"]), name="http") - self.service_patcher = KubernetesServicePatch( - self, [admin_port, http_port], service_name=f"{self.model.app.name}" - ) + self.service_patcher = KubernetesServicePatch(self, [admin_port, http_port]) self.prometheus_provider = MetricsEndpointProvider( charm=self, diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index 780efab..1a64c7e 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -19,7 +19,7 @@ def harness(mocked_kubernetes_service_patch): def mocked_kubernetes_service_patch(mocker): """Mocks the KubernetesServicePatch for the charm.""" mocked_kubernetes_service_patch = mocker.patch( - "charm.KubernetesServicePatch", lambda x, y, service_name: None + "charm.KubernetesServicePatch", lambda x, y: None ) yield mocked_kubernetes_service_patch