-
Notifications
You must be signed in to change notification settings - Fork 151
/
secret-splunk.yaml
30 lines (30 loc) · 1.15 KB
/
secret-splunk.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{- if .Values.secret.create -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "splunk-otel-collector.secret" . }}
namespace: {{ template "splunk-otel-collector.namespace" . }}
labels:
{{- include "splunk-otel-collector.commonLabels" . | nindent 4 }}
app: {{ template "splunk-otel-collector.name" . }}
chart: {{ template "splunk-otel-collector.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
type: Opaque
data:
{{- if (eq (include "splunk-otel-collector.splunkO11yEnabled" .) "true") }}
splunk_observability_access_token: {{ include "splunk-otel-collector.o11yAccessToken" . | b64enc }}
{{- end }}
{{- if (eq (include "splunk-otel-collector.splunkPlatformEnabled" .) "true") }}
splunk_platform_hec_token: {{ .Values.splunkPlatform.token | b64enc }}
{{- end }}
{{- with .Values.splunkPlatform.clientCert }}
splunk_platform_hec_client_cert: {{ . | b64enc }}
{{- end }}
{{- with .Values.splunkPlatform.clientKey }}
splunk_platform_hec_client_key: {{ . | b64enc }}
{{- end }}
{{- with .Values.splunkPlatform.caFile }}
splunk_platform_hec_ca_file: {{ . | b64enc }}
{{- end }}
{{- end -}}