From 420c7339467549e9658a27e6544b8624c86ea6cd Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Mon, 21 Aug 2023 16:31:10 +0200 Subject: [PATCH] fix svc.cluster.local --- oc/od/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oc/od/settings.py b/oc/od/settings.py index d7b4d38..3eef63f 100755 --- a/oc/od/settings.py +++ b/oc/od/settings.py @@ -170,8 +170,12 @@ def init_config_stack(): global namespace global desktopdescription - kubernetes_default_domain = gconfig.get('stack.kubernetesdefaultdomain', 'abcdesktop.svc.cluster.local') - namespace = gconfig.get('namespace', 'abcdesktop') + namespace = gconfig.get('namespace', 'abcdesktop') + kubernetesdefaultsvcclusterlocal = gconfig.get('kubernetesdefaultsvcclusterlocal', 'svc.cluster.local') + logger.debug( f"kubernetes default domain svc.cluster.local={kubernetesdefaultsvcclusterlocal}" ) + # kubernetes_default_domain should be by default abcdesktop.svc.cluster.local + kubernetes_default_domain = f"{namespace}.{kubernetesdefaultsvcclusterlocal}" + logger.debug( f"abcdesktop domain={kubernetes_default_domain}" ) desktopdescription = gconfig.get( 'desktop.description', { 'internalipaddr': None, 'externalipaddr': None} ) def init_jira():