Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PVC selector labels #782

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 -}}
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down