apiVersion: v1
kind: Secret
metadata:
  name: {{ template "logdna.name" . }}
  namespace: {{ .Release.Namespace }}
  labels:
    app.kubernetes.io/name: {{ template "logdna.name" . }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/version: {{ .Chart.AppVersion }}
    helm.sh/chart: {{ template "logdna.chart" . }}
type: Opaque
data:
  logdna-agent-key: {{ default "" .Values.logdna.key | b64enc | quote }}
