diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 38973910a..818ac88b9 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -271,6 +271,11 @@ storage might be desired by the user. {{- if .Values.server.dataStorage.storageClass }} storageClassName: {{ .Values.server.dataStorage.storageClass }} {{- end }} + {{- with .Values.server.dataStorage.selectorLabels }} + selector: + matchLabels: +{{ toYaml . | indent 12 }} + {{- end }} {{ end }} {{- if eq (.Values.server.auditStorage.enabled | toString) "true" }} - metadata: @@ -285,6 +290,11 @@ storage might be desired by the user. {{- if .Values.server.auditStorage.storageClass }} storageClassName: {{ .Values.server.auditStorage.storageClass }} {{- end }} + {{- with .Values.server.auditStorage.selectorLabels }} + selector: + matchLabels: +{{ toYaml . | indent 12 }} + {{- end }} {{ end }} {{ end }} {{- end -}} diff --git a/values.yaml b/values.yaml index da3fff3cd..6a5c3d8ef 100644 --- a/values.yaml +++ b/values.yaml @@ -652,6 +652,8 @@ server: # Name of the storage class to use. If null it will use the # configured default Storage Class. storageClass: null + # Labels for PV selector + selectorLabels: {} # Access Mode of the storage device being used for the PVC accessMode: ReadWriteOnce # Annotations to apply to the PVC @@ -671,6 +673,8 @@ server: # Name of the storage class to use. If null it will use the # configured default Storage Class. storageClass: null + # Labels for PV selector + selectorLabels: {} # Access Mode of the storage device being used for the PVC accessMode: ReadWriteOnce # Annotations to apply to the PVC