Skip to content

Commit

Permalink
Minor fixes to users service deployment flow
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 26, 2024
1 parent ceb9085 commit 79172da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions neon_diana_utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@

from enum import Enum
from pprint import pformat
from typing import Optional, Set, Literal
from typing import Optional, Set
from os import makedirs, listdir
from os.path import expanduser, join, abspath, isfile, isdir, dirname

from click import Choice
from ovos_utils.xdg_utils import xdg_config_home
from ovos_utils.log import LOG

Expand Down Expand Up @@ -480,8 +479,9 @@ def generate_users_service_config() -> dict:
sqlite_config = {}
click.echo("Configuring Users Service")
while not confirmed:
module = click.prompt("Use `mongodb` or `sqlite`?",
type=Literal["mongodb", "sqlite"], default=module)

module = click.prompt("Use `mongodb` or `sqlite`?", default=module,
type=click.Choice(["mongodb", "sqlite"]))
if module == "mongodb":
db_host = click.prompt("MongoDB Host", type=str)
db_port = click.prompt("MongoDB Port", type=int, default=27017)
Expand Down Expand Up @@ -646,7 +646,7 @@ def _get_unconfigured_mq_backend_services(config: dict) -> Set[str]:
Get a list of MQ Backend services that are not configured to run
@param config: dict Configuration (diana.yaml)
"""
config_to_service = {'keys.api_services': 'neon-api-proxy',
config_to_service = {'api_services': 'neon-api-proxy',
'keys.emails': 'neon-email-proxy',
'keys.track_my_brands': 'neon-brands-service',
'LLM_CHAT_GPT': 'neon-llm-chatgpt',
Expand Down
2 changes: 1 addition & 1 deletion neon_diana_utils/templates/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ appVersion: "1.0.1a5"

dependencies:
- name: backend
version: 0.1.27
version: 0.1.28
repository: https://neongeckocom.github.io/neon-diana-utils
2 changes: 2 additions & 0 deletions neon_diana_utils/templates/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ backend:
image: {}
neon-script-parser:
image: {}
neon-users-service:
image: {}
letsencrypt:
server: https://acme-v02.api.letsencrypt.org/directory

0 comments on commit 79172da

Please sign in to comment.