Skip to content

Commit

Permalink
Fix default configuration
Browse files Browse the repository at this point in the history
Fix typos from #56
  • Loading branch information
NeonDaniel committed Dec 28, 2023
1 parent b245749 commit 3a52bd0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions neon_diana_utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ def configure_backend(username: str = None,
helm_values['backend']['diana-mq'][service]['replicaCount'] = 0
for service in disabled_http_services:
LOG.debug(f"Disable {service}")
helm_values['backend']['diana-http'].setdefault(service, dict())
helm_values['backend']['diana-http'][service]['replicaCount'] = 0
for service in helm_values['backend']['diana-mq']:
helm_values['backend']['diana-mq'][service]['image']['tag'] = \
Expand Down Expand Up @@ -644,6 +645,7 @@ def configure_neon_core(mq_user: str = None,
return

# Prompt for IRIS Web UI configuration
# TODO: Optional
confirmed = False
iris_domain = "iris.diana.k8s" # TODO: Read from backend config
while not confirmed:
Expand Down Expand Up @@ -769,7 +771,7 @@ def configure_klat_chat(external_url: str = None,

forward_www = False
if subdomain != "www":
forward_www = click.prompt(f"Route www.{domain} traffic to Klat?")
forward_www = click.confirm(f"Route www.{domain} traffic to Klat?")

# Get Libretranslate HTTP API URL
libretranslate_url = "https://libretranslate.2022.us"
Expand Down Expand Up @@ -866,10 +868,10 @@ def configure_klat_chat(external_url: str = None,
'servicePort': 8010}
]
if forward_www:
helm_values['klat']['ingress']['rules'].append({
helm_values['klat']['ingress']['rules'].append(
{'host': 'www', 'serviceName': 'klat-chat-client',
'servicePort': 8001}
})
)
with open(join(output_path, "klat-chat", "values.yaml"), 'w') as f:
yaml.safe_dump(helm_values, f)
else:
Expand Down

0 comments on commit 3a52bd0

Please sign in to comment.