Skip to content

Commit

Permalink
charts: add support for selector in Loki pvc
Browse files Browse the repository at this point in the history
This is needed as Loki chart only allow to
target a PV with its storageclass name and
we now use a single storageclass for all addons.

This change needs to be ported upstream so
we can still upgrade Loki chart.

Refs: #2742
  • Loading branch information
alexandre-allard authored and ChengYanJin committed Sep 3, 2020
1 parent f7f9c17 commit f31721a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/loki/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,9 @@ spec:
requests:
storage: {{ .Values.persistence.size | quote }}
storageClassName: {{ .Values.persistence.storageClassName }}
{{- if .Values.persistence.selector }}
selector:
{{- toYaml .Values.persistence.selector | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit f31721a

Please sign in to comment.