{{- if (.Values.scanner.trivy.ignorePolicy) }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "harbor-scanner-trivy.fullname" . }}-ignorepolicy
  labels:
{{ include "harbor-scanner-trivy.labels" . | indent 4 }}
data:
  policy.rego: |
    {{ .Values.scanner.trivy.ignorePolicy | nindent 4 }}
{{- end }}
