[DO-1377] add configMap
This commit is contained in:
22
templates/configmap.yaml
Normal file
22
templates/configmap.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
{{ if .Values.configMap.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
app: "{{ template "openresty.fullname" . }}"
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
{{- with .Values.configMap.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
name: "{{ .Release.Name }}-config"
|
||||
data:
|
||||
{{- with .Values.configMap.apiConfig }}
|
||||
api-gw.conf: {{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.configMap.luaScript }}
|
||||
script.lua: {{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user