25 lines
718 B
YAML
25 lines
718 B
YAML
{{- if .Values.server.snapshotAgent.enabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "consul.fullname" . }}-snapshot-agent-config
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ template "consul.name" . }}
|
|
chart: {{ template "consul.chart" . }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
component: server
|
|
data:
|
|
snapshot-login.json: |
|
|
{
|
|
"snapshot_agent": {
|
|
"login": {
|
|
"auth_method": "{{ template "consul.fullname" . }}-k8s-component-auth-method",
|
|
"bearer_token_file": "/var/run/secrets/kubernetes.io/serviceaccount/token",
|
|
"meta": {"component": "snapshot-agent"}
|
|
}
|
|
}
|
|
}
|
|
{{- end }}
|