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: {}