Skip to content

Commit

Permalink
[kong] fix deployment wait-for-db logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Raines authored and rainest committed Feb 22, 2021
1 parent 980556b commit d6385c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@ spec:
- name: {{ . }}
{{- end }}
{{- end }}
{{- if not (eq .Values.env.database "off") }}
{{- if .Values.deployment.kong.enabled }}
{{- if (and (eq .Values.env.database "postgres") .Values.waitImage.enabled) }}
{{- if (and (not (eq .Values.env.database "off")) .Values.waitImage.enabled) }}
initContainers:
{{- include "kong.wait-for-db" . | nindent 6 }}
{{- end }}
{{ end }}
{{ end }}
containers:
{{- if .Values.ingressController.enabled }}
{{- include "kong.controller-container" . | nindent 6 }}
Expand Down

0 comments on commit d6385c9

Please sign in to comment.