From a2482e4830cbab0c17c206085cf6a4367ba810f7 Mon Sep 17 00:00:00 2001 From: vfebvre Date: Mon, 11 Sep 2023 13:34:18 +0200 Subject: [PATCH] add plugins install ConfigMap --- base/resources/nextcloud/kustomization.yaml | 2 ++ base/resources/nextcloud/resources/deployment.yaml | 9 ++++++++- overlays/dev/patches/deployment.yaml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/base/resources/nextcloud/kustomization.yaml b/base/resources/nextcloud/kustomization.yaml index 492d3ea..113c14e 100644 --- a/base/resources/nextcloud/kustomization.yaml +++ b/base/resources/nextcloud/kustomization.yaml @@ -18,6 +18,8 @@ resources: - ./resources/nextcloud-serviceaccount.yaml - ./resources/ingress.yaml - ./resources/ConfigMap-ldap-script.yaml +- ./resources/ConfigMap-plugins.yaml + #- ./resources/secret.yaml diff --git a/base/resources/nextcloud/resources/deployment.yaml b/base/resources/nextcloud/resources/deployment.yaml index 60b6dfa..33499d1 100644 --- a/base/resources/nextcloud/resources/deployment.yaml +++ b/base/resources/nextcloud/resources/deployment.yaml @@ -27,7 +27,7 @@ spec: lifecycle: postStart: exec: - command: ["/bin/sh", "-c", "cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/ks.crt && update-ca-certificates && /etc/script/poststart-ldap.sh && touch /etc/script/try01.txt"] + command: ["/bin/sh", "-c", "cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/ks.crt && update-ca-certificates && /etc/script/poststart-ldap.sh && /etc/script/poststart-plugins.sh && touch /etc/script/try01.txt"] # envFrom: # - configMapRef: # name: nextcloud-env @@ -154,6 +154,9 @@ spec: - mountPath: /etc/script/poststart-ldap.sh name: script-config-ldap subPath: poststart-ldap.sh + - mountPath: /etc/script/poststart-plugins.sh + name: script-config-plugins + subPath: poststart-plugins.sh - mountPath: /etc/script/custom-script.sh name: update-config-script subPath: custom-script.sh @@ -182,6 +185,10 @@ spec: configMap: name: script-config-ldap defaultMode: 0744 + - name: script-config-plugins + configMap: + name: script-config-plugins + defaultMode: 0744 # MOUNT-TRY-multi-instance # - name: nextcloud-config-volume # permet de monter le fichier de configuration dans diff --git a/overlays/dev/patches/deployment.yaml b/overlays/dev/patches/deployment.yaml index 13b0222..c126d1c 100644 --- a/overlays/dev/patches/deployment.yaml +++ b/overlays/dev/patches/deployment.yaml @@ -27,7 +27,7 @@ spec: lifecycle: postStart: exec: - command: ["/bin/sh", "-c", "cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/ks.crt && update-ca-certificates && /etc/script/poststart-ldap.sh && touch /etc/script/try01.txt"] + command: ["/bin/sh", "-c", "cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/ks.crt && update-ca-certificates && /etc/script/poststart-ldap.sh && /etc/script/poststart-plugins.sh && touch /etc/script/try01.txt"] # envFrom: # - configMapRef: # name: nextcloud-env