{{- $licenseKey := include "newrelic.licenseKey" . -}}
{{- if $licenseKey }}
apiVersion: v1
kind: Secret
metadata:
  namespace: {{ .Release.Namespace }}
  labels: {{ include "newrelic.labels" . | indent 4 }}
  name: {{ template "newrelic.fullname" . }}-config
type: Opaque
data:
  license: {{ $licenseKey | b64enc }}
{{- end }}
