-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Here in pvc.yaml spec.accessMode is set to {{ default .Values.persistence.accessMode "ReadWriteOnce" }} .
Accordingly to the Helm doc for the default func, the needed correct forms are:
- {{ default "ReadWriteOnce" .Values.persistence.accessMode }}
- {{ .Values.persistence.accessMode | default "ReadWriteOnce" }}
The current value is incorrect because even if I specify
persistence:
enabled: true
path: /storage/inbucket
size: 1059Mi
className: manual-nfs
accessMode: ReadWriteManythe outcome still will be:
+ spec:
+ accessModes:
+ - ReadWriteOncebecause it always evaluetes "ReadWriteOnce" as a given value, not a default one.
Also it would be great to add a possibility to specify "selectors" for PVs to match like:
selector:
matchExpressions:
- key: type
operator: In
values: [ "foo" ]
- key: app
operator: In
values: [ "bar" ]Documentations for PVC selectors https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
Metadata
Metadata
Assignees
Labels
No labels