{{- $component := "analyzer" -}}
kind: ConfigMap
apiVersion: v1
metadata:
  name: {{ template "anchore-engine.analyzer.fullname" . }}
  labels:
    app: {{ template "anchore-engine.fullname" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    component: {{ $component }}
    {{- with .Values.anchoreGlobal.labels }}
    {{ toYaml . | nindent 4 }}
    {{- end }}
data:
  analyzer_config.yaml: |
    {{- with .Values.anchoreAnalyzer.configFile }}
    {{- toYaml . | nindent 4 }}
    {{- end }}