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

23 lines
738 B
YAML

{{- 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 }}
{{ 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 }}
{{- end }}