From 49afc1ae9cb31499d5b9d2d47a6480d3272188a2 Mon Sep 17 00:00:00 2001 From: Benjamin Schimke Date: Tue, 26 Nov 2024 20:23:54 +0100 Subject: [PATCH] Fix dns config name (#189) --- charms/worker/k8s/src/charm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charms/worker/k8s/src/charm.py b/charms/worker/k8s/src/charm.py index b57299a4..03a78b7b 100755 --- a/charms/worker/k8s/src/charm.py +++ b/charms/worker/k8s/src/charm.py @@ -434,15 +434,15 @@ def _assemble_cluster_config(self) -> UserFacingClusterConfig: # https://github.com/canonical/k8s-operator/pull/169/files#r1847378214 ) - dns_config = DNSConfig( + dns = DNSConfig( enabled=self.config.get("dns-enabled"), ) if cfg := self.config.get("dns-cluster-domain"): - dns_config.cluster_domain = str(cfg) + dns.cluster_domain = str(cfg) if cfg := self.config.get("dns-service-ip"): - dns_config.service_ip = str(cfg) + dns.service_ip = str(cfg) if cfg := self.config.get("dns-upstream-nameservers"): - dns_config.upstream_nameservers = str(cfg).split() + dns.upstream_nameservers = str(cfg).split() gateway = GatewayConfig(enabled=self.config.get("gateway-enabled")) @@ -476,7 +476,7 @@ def _assemble_cluster_config(self) -> UserFacingClusterConfig: return UserFacingClusterConfig( annotations=self._get_valid_annotations(), cloud_provider=cloud_provider, - dns_config=dns_config, + dns=dns, gateway=gateway, ingress=ingress, local_storage=local_storage,