dont create clusterrole and serviceaccount for image-cleaner if it is disabled
@@ -42,6 +42,7 @@ metadata:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: binderhub
+{{ if .Values.imageCleaner.enabled -}}
---
# image-cleaner role
# needs to cordon nodes during image cleaning
@@ -87,3 +88,4 @@ metadata:
release: {{ .Release.Name }}
name: {{ .Release.Name }}-image-cleaner
{{- end }}
+{{- end }}
