Skip to content

Commit

Permalink
fix svc.cluster.local
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Aug 21, 2023
1 parent ac1b54f commit 420c733
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions oc/od/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 420c733

Please sign in to comment.