{{- define "preprocessor.storage" }} type: {{ .type }} kwargs: {{- if eq .type "swift" }} username: {{ .username }} password: {{ .password }} tenant_name: {{ .tenant_name }} tenant_id: {{ .tenant_id }} region_name: {{ .region_name }} auth_url: {{ .auth_url }} auth_version: {{ .auth_version }} user_domain_name: {{ .user_domain_name }} {{- else if eq .type "s3" }} bucket: {{ .bucket }} endpoint_url: {{ .endpoint_url }} access_key_id: {{ .access_key_id }} secret_access_key: {{ .secret_access_key }} region: {{ .region }} {{- end }} {{- end -}} source: {{ template "preprocessor.storage" .Values.config.objectStorage.download | indent 2 }} target: {{ template "preprocessor.storage" .Values.config.objectStorage.data | indent 2 }} {{ toYaml .Values.config.preprocessor | indent 2 }}