Skip to content

Conversation

wtripp180901
Copy link

No description provided.

Comment on lines +185 to +187
{{- if .Values.controller.persistence.storageClass }}
storageClassName: {{ .Values.controller.persistence.storageClass | quote }}
{{- endif }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this is a slightly cleaner way to do conditional templating in Helm:

Suggested change
{{- if .Values.controller.persistence.storageClass }}
storageClassName: {{ .Values.controller.persistence.storageClass | quote }}
{{- endif }}
{{- with .Values.controller.persistence.storageClass }}
storageClassName: {{ . | quote }}
{{- end }}

@sd109
Copy link
Member

sd109 commented Jul 29, 2025

@wtripp180901 should we propose this upstream to the Slinky repo instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants