| #{{ if not .Values.disableConsulConsulAgent }} |
| apiVersion: v1 |
| kind: ConfigMap |
| metadata: |
| name: consul-agent-configmap |
| namespace: {{ .Values.nsPrefix }} |
| data: |
| {{ tpl (.Files.Glob "resources/config/consul-agent-config/*").AsConfig . | indent 2 }} |
| --- |
| apiVersion: v1 |
| kind: ConfigMap |
| metadata: |
| name: consul-agent-scripts-configmap |
| namespace: {{ .Values.nsPrefix }} |
| data: |
| {{ tpl (.Files.Glob "resources/config/consul-agent-config/scripts/*").AsConfig . | indent 2 }} |
| --- |
| apiVersion: v1 |
| kind: Secret |
| metadata: |
| name: consul-agent-certs-secret |
| namespace: {{ .Values.nsPrefix }} |
| data: |
| {{ tpl (.Files.Glob "resources/config/consul-agent-config/certs/*").AsSecrets . | indent 2 }} |
| #{{ end }} |