Skip to content

Commit

Permalink
Add ES_SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
jslay-excella committed Aug 22, 2022
1 parent 5fe2824 commit a978be4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/cfgov/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Postgres Environment Vars
Elasticsearch Environment Vars
*/}}
{{- define "cfgov.elasticsearchEnv" -}}
- name: ES_SCHEMA
value: "{{ default "http" .Values.elasticsearch.httpPort }}
- name: ES_HOST
{{- if .Values.elasticsearch.enabled }}
{{- if eq .Values.elasticsearch.nodeGroup "master" }}
Expand All @@ -125,6 +127,8 @@ Elasticsearch Environment Vars
Opensearch Environment Vars
*/}}
{{- define "cfgov.opensearchEnv" -}}
- name: ES_SCHEMA
value: "{{ default "https" .Values.opensearch.protocol }}"
- name: ES_HOST
{{- if .Values.opensearch.nameOverride }}
value: "{{ .Values.opensearch.nameOverride }}-master"
Expand All @@ -133,6 +137,8 @@ Opensearch Environment Vars
{{- else }}
value: opensearch-cluster-master
{{- end }}
- name: ES_PORT
value: {{ .Values.opensearch.httpPort }}
{{- end }}

{{/*
Expand Down

0 comments on commit a978be4

Please sign in to comment.