-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsecret.yaml
31 lines (31 loc) · 1.2 KB
/
secret.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
31
apiVersion: v1
kind: Secret
metadata:
name: {{ include "openobserve.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "openobserve.labels" . | nindent 4 }}
type: Opaque
stringData:
{{- if not .Values.auth.existingRootUserSecret.name }}
ZO_ROOT_USER_EMAIL: "{{ .Values.auth.ZO_ROOT_USER_EMAIL }}"
ZO_ROOT_USER_PASSWORD: "{{ .Values.auth.ZO_ROOT_USER_PASSWORD }}"
{{- end }}
{{- if not .Values.minio.enabled }}
ZO_S3_ACCESS_KEY: "{{ .Values.auth.ZO_S3_ACCESS_KEY }}"
{{- else }}
ZO_S3_ACCESS_KEY: "{{ .Values.minio.rootUser }}"
{{- end }}
{{- if not .Values.minio.enabled }}
ZO_S3_SECRET_KEY: "{{ .Values.auth.ZO_S3_SECRET_KEY }}"
{{- else }}
ZO_S3_SECRET_KEY: "{{ .Values.minio.rootPassword }}"
{{- end }}
{{- if eq .Values.config.ZO_S3_PROVIDER "azure" }}
{{- if .Values.auth.AZURE_STORAGE_ACCOUNT_KEY }}
AZURE_STORAGE_ACCOUNT_KEY: "{{ .Values.auth.AZURE_STORAGE_ACCOUNT_KEY }}"
AZURE_STORAGE_ACCOUNT_NAME: "{{ .Values.auth.AZURE_STORAGE_ACCOUNT_NAME }}"
{{- else }}
AZURE_STORAGE_ACCOUNT_KEY: "{{ .Values.config.AZURE_STORAGE_ACCOUNT_KEY }}"
AZURE_STORAGE_ACCOUNT_NAME: "{{ .Values.config.AZURE_STORAGE_ACCOUNT_NAME }}"
{{- end }}
{{- end }}