add an extra if

This commit is contained in:
Stavros kois
2022-10-04 15:04:33 +03:00
parent 774df645b2
commit 8542e1f02d

View File

@@ -63,7 +63,7 @@ before chart installation.
key: ping
{{- end }}
{{- if .Values.solr.enabled }}
- name: "SOLR_HOST"
- name: SOLR_HOST
valueFrom:
secretKeyRef:
name: solrcreds
@@ -72,6 +72,7 @@ before chart installation.
value: "{{ .Values.solr.solrCores }}"
- name: SOLR_ENABLE_AUTHENTICATION
value: "{{ .Values.solr.solrEnableAuthentication }}"
{{- if eq .Values.solr.solrEnableAuthentication "yes" }}
- name: SOLR_ADMIN_USERNAME
value: "{{ .Values.solr.solrUsername }}"
- name: SOLR_ADMIN_PASSWORD
@@ -80,6 +81,7 @@ before chart installation.
name: solrcreds
key: solr-password
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-c"