Skip to content

Commit

Permalink
fix collabora online variable missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Dec 15, 2024
1 parent 2d8d8c3 commit 7fa572d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "smol_k8s_lab"
version = "5.20.3"
version = "5.20.4"
description = "CLI and TUI to quickly install slimmer Kubernetes distros and then manage apps declaratively using Argo CD"
authors = ["Jesse Hitch <[email protected]>",
"Max Roby <[email protected]>"]
Expand Down
15 changes: 8 additions & 7 deletions smol_k8s_lab/k8s_apps/social/nextcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,19 @@ def configure_nextcloud(argocd: ArgoCD,
# backups are their own config.yaml section
backup_vals = process_backup_vals(cfg.get('backups', {}), 'nextcloud', argocd)

# grab all possile init values
init_values = init.get('values', None)

# collabora config values
collabora_user = init_values.get('collabora_user', None)
collabora_pass = extract_secret(init_values.get('collabora_password',
create_password))

# if the user has chosen to use smol-k8s-lab initialization
if not app_installed and init_enabled:
nextcloud_namespace = cfg['argo']['namespace']
argocd.k8s.create_namespace(nextcloud_namespace)


# grab all possile init values
init_values = init.get('values', None)
if init_values:
admin_user = init_values.get('admin_user', 'admin')

Expand All @@ -95,10 +100,6 @@ def configure_nextcloud(argocd: ArgoCD,
mail_user = init_values.get('smtp_user', None)
mail_pass = extract_secret(init_values.get('smtp_password', ""))

# collabora config values
collabora_user = init_values.get('collabora_user', None)
collabora_pass = extract_secret(init_values.get('collabora_password',
create_password))
else:
log.warn("Strange, there's no nextcloud init values...")

Expand Down

0 comments on commit 7fa572d

Please sign in to comment.