{{- if and .Values.persistence.enabled .Values.retention.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: git-pages-retention labels: {{- include "git-pages.componentLabels" . | nindent 4 }} data: retention.json: | {{- .Values.retention.rules | toJson | nindent 4 }} retention-cleanup.sh: | {{- .Files.Get "files/retention-cleanup.sh" | nindent 4 }} retention-run.sh: | {{- .Files.Get "files/retention-run.sh" | nindent 4 }} {{- end }}