rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/templates/openshift-logging-secret.yaml

23 lines
738 B
YAML
Raw Normal View History

2024-04-16 17:54:14 +00:00
{{- if not .Values.stackstate.manageOwnSecrets }}
{{- if .Values.openShiftLogging.installSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "stackstate-k8s-agent.fullname" . }}-logging-secret
namespace: openshift-logging
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
2024-04-16 17:54:14 +00:00
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
annotations:
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
type: Opaque
data:
username: {{ "apikey" | b64enc | quote }}
{{- if .Values.global.receiverApiKey }}
password: {{ .Values.global.receiverApiKey | b64enc | quote }}
{{- else }}
password: {{ .Values.stackstate.apiKey | b64enc | quote }}
{{- end }}
{{- end }}
2024-04-16 17:54:14 +00:00
{{- end }}