Skip to content

Commit

Permalink
updating init containers (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
logoutdhaval authored Aug 9, 2024
1 parent 9a5395c commit 4359554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm/fineract/templates/fineract-server-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ spec:
tier: backend
spec:
initContainers:
- name: init-mydb
image: busybox:1.28
command: ['sh', '-c', 'echo -e "Checking for the availability of MYSQL server deployment"; while ! nc -z "{{ .Values.fineract.spec.template.spec.containers.env.FINERACT_DEFAULT_TENANTDB_HOSTNAME }}" "{{ .Values.fineract.spec.template.spec.containers.env.FINERACT_DEFAULT_TENANTDB_PORT }}"; do sleep 1; printf "-"; done; echo -e " >> MYSQL server has started";']
{{- with .Values.fineract.extraInitContainers }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
containers:
- name: fineract-server
image: "{{ .Values.fineract.image }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/fineract/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ fineract:
DFSPIDS: ""
SPRING_PROFILES_ACTIVE: "bb"
image: "docker.io/openmf/fineract:1.9.0"
extraInitContainers:
- name: init-mydb
image: busybox:1.28
command: [ 'sh', '-c', 'echo -e "Checking for the availability of MYSQL server deployment"; while ! nc -z "{{ .Values.fineract.spec.template.spec.containers.env.FINERACT_DEFAULT_TENANTDB_HOSTNAME }}" "{{ .Values.fineract.spec.template.spec.containers.env.FINERACT_DEFAULT_TENANTDB_PORT }}"; do sleep 1; printf "-"; done; echo -e " >> MYSQL server has started";' ]
spec:
template:
spec:
Expand Down

0 comments on commit 4359554

Please sign in to comment.