# helm_charts_api-token-secret.yaml
{{- if .Values.wavefront.token }}
apiVersion: v1
kind: Secret
metadata:
  labels:
    app.kubernetes.io/name : {{ template "wavefront.fullname" . }}
    helm.sh/chart: {{ template "wavefront.chart" . }}
    app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
    app.kubernetes.io.instance: {{ .Release.Name | quote }}
    app.kubernetes.io/component: collector
  name: {{ template "wavefront.fullname" . }}
type: Opaque
data:
  api-token: {{ .Values.wavefront.token | b64enc | quote }}
{{- end }}