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

18 lines
519 B
YAML

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