{{- if .Values.opa -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ template "opa.fullname" . }}-config
  labels:
{{ include "opa.labels.standard" . | indent 4 }}
type: Opaque
data:
  config.yaml: {{ toYaml .Values.opa | b64enc }}
{{- end -}}