add plugins install ConfigMap

This commit is contained in:
vfebvre 2023-09-11 13:34:18 +02:00
parent 215bdce51d
commit a2482e4830
3 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,8 @@ resources:
- ./resources/nextcloud-serviceaccount.yaml
- ./resources/ingress.yaml
- ./resources/ConfigMap-ldap-script.yaml
- ./resources/ConfigMap-plugins.yaml
#- ./resources/secret.yaml

View File

@ -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

View File

@ -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