From 12a9d898da5469af83b7bdfe889226986bf5769f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 28 Mar 2023 17:59:43 +0200 Subject: [PATCH] Config generation --- customers/base/nextcloud-deployment.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/customers/base/nextcloud-deployment.yml b/customers/base/nextcloud-deployment.yml index a04b0a1..411d8af 100644 --- a/customers/base/nextcloud-deployment.yml +++ b/customers/base/nextcloud-deployment.yml @@ -28,6 +28,9 @@ spec: - name: server-storage mountPath: /var/www/html subPath: server-data + - name: nextcloud-config + mountPath: /var/www/html/config + subPath: config.php env: - name: GSS_MASTER_URL value: "https://drive.test.sunet.se" @@ -121,6 +124,29 @@ spec: key: "redis_password" - name: SITE_NAME value: "customer.drive.test.sunet.se" + initContainers: + - image: docker.sunet.se/sunet/docker-jinja:latest + name: init-config + volumeMounts: + - name: nextcloud-config-template + mountPath: /tmp/config.php.template + subPath: config.php + - name: nextcloud-config + mountPath: /var/www/html/config + subPath: config.php + env: + - name: ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: proxysql-secret + key: "proxysql_admin_password" + volumes: + - name: nextcloud-config-template + configMap: + name: nextcloud-configmap + items: + - key: "config.php" + path: "config.php" resources: {} strategy: {} status: {}