From 886a15f3957c626247eb04488fbc6378d59a8a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 26 Jul 2023 18:44:46 +0200 Subject: [PATCH] fix --- apps/nextcloud/configs.tf | 1 + apps/nextcloud/index.yaml | 148 +++++++++++++++++++------------------- 2 files changed, 75 insertions(+), 74 deletions(-) diff --git a/apps/nextcloud/configs.tf b/apps/nextcloud/configs.tf index 3b023f0..67ab5e0 100644 --- a/apps/nextcloud/configs.tf +++ b/apps/nextcloud/configs.tf @@ -3,6 +3,7 @@ locals { #!/bin/bash cp /etc/local-ca/ca.crt /usr/local/share/ca-certificates/ /usr/sbin/update-ca-certificates + chown www-data ./config || : exec /bin/sh /entrypoint.sh "$@" EOF script-head = <<-EOF diff --git a/apps/nextcloud/index.yaml b/apps/nextcloud/index.yaml index 190d829..372d99a 100644 --- a/apps/nextcloud/index.yaml +++ b/apps/nextcloud/index.yaml @@ -6,6 +6,40 @@ metadata: name: nextcloud description: null options: + storage: + default: + accessMode: ReadWriteOnce + size: 10Gi + examples: + - accessMode: ReadWriteOnce + size: 10Gi + properties: + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany + type: string + size: + default: 10Gi + type: string + type: object + sub-domain: + default: cloud + examples: + - cloud + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string + openid-name: + default: vynil + examples: + - vynil + type: string apps: default: calendar: false @@ -46,26 +80,6 @@ options: default: false type: boolean type: object - hpa: - default: - avg-cpu: 50 - max-replicas: 5 - min-replicas: 1 - examples: - - avg-cpu: 50 - max-replicas: 5 - min-replicas: 1 - properties: - avg-cpu: - default: 50 - type: integer - max-replicas: - default: 5 - type: integer - min-replicas: - default: 1 - type: integer - type: object images: default: exporter: @@ -169,11 +183,6 @@ options: type: string type: object type: object - domain-name: - default: your_company.com - examples: - - your_company.com - type: string redis: default: exporter: @@ -207,60 +216,11 @@ options: default: 2Gi type: string type: object - storage: - default: - accessMode: ReadWriteOnce - size: 10Gi - examples: - - accessMode: ReadWriteOnce - size: 10Gi - properties: - accessMode: - default: ReadWriteOnce - enum: - - ReadWriteOnce - - ReadOnlyMany - - ReadWriteMany - type: string - size: - default: 10Gi - type: string - type: object - sub-domain: - default: cloud - examples: - - cloud - type: string - domain: - default: your-company - examples: - - your-company - type: string issuer: default: letsencrypt-prod examples: - letsencrypt-prod type: string - openid-name: - default: vynil - examples: - - vynil - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - admin: - default: - name: nextcloud_admin - examples: - - name: nextcloud_admin - properties: - name: - default: nextcloud_admin - type: string - type: object postgres: default: replicas: 1 @@ -281,6 +241,46 @@ options: default: '14' type: string type: object + hpa: + default: + avg-cpu: 50 + max-replicas: 5 + min-replicas: 1 + examples: + - avg-cpu: 50 + max-replicas: 5 + min-replicas: 1 + properties: + avg-cpu: + default: 50 + type: integer + max-replicas: + default: 5 + type: integer + min-replicas: + default: 1 + type: integer + type: object + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + domain: + default: your-company + examples: + - your-company + type: string + admin: + default: + name: nextcloud_admin + examples: + - name: nextcloud_admin + properties: + name: + default: nextcloud_admin + type: string + type: object dependencies: [] providers: kubernetes: true