rancher-partner-charts/charts/datadog/datadog-operator/templates/secret_api_key.yaml

14 lines
410 B
YAML

{{- if and .Values.apiKey (not .Values.apiKeyExistingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "datadog-operator.apiKeySecretName" . }}
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ include "datadog-operator.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
type: Opaque
data:
api-key: {{ .Values.apiKey | b64enc | quote }}
{{- end }}