chart-unifi_network_application: attempt to fix init script
This commit is contained in:
@ -5,6 +5,8 @@ metadata:
|
|||||||
name: {{ include "template.fullname" . }}-mongodb-init-sh
|
name: {{ include "template.fullname" . }}-mongodb-init-sh
|
||||||
data:
|
data:
|
||||||
init-mongo.sh: |
|
init-mongo.sh: |
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
if which mongosh > /dev/null 2>&1; then
|
if which mongosh > /dev/null 2>&1; then
|
||||||
mongo_init_bin='mongosh'
|
mongo_init_bin='mongosh'
|
||||||
else
|
else
|
||||||
|
|||||||
@ -22,6 +22,7 @@ spec:
|
|||||||
- name: {{ include "template.fullname" . }}-mongodb-init-volume
|
- name: {{ include "template.fullname" . }}-mongodb-init-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "template.fullname" . }}-mongodb-init-sh
|
name: {{ include "template.fullname" . }}-mongodb-init-sh
|
||||||
|
defaultMode: 770
|
||||||
- name: {{ include "template.fullname" . }}-mongodb-data-volume
|
- name: {{ include "template.fullname" . }}-mongodb-data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "template.fullname" . }}-{{ default "db-claim" .Values.mongodb.persistence.claimSuffix }}
|
claimName: {{ include "template.fullname" . }}-{{ default "db-claim" .Values.mongodb.persistence.claimSuffix }}
|
||||||
|
|||||||
Reference in New Issue
Block a user