[PORTAL] Use global storage templates for PVC 24/99324/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 9 Dec 2019 10:17:00 +0000 (11:17 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 9 Dec 2019 10:17:00 +0000 (11:17 +0100)
commit2a15323766f8f6d8ea32ff730672ff7acee11116
treef8bcb260e8eb8f8c5a355855a9b6491140400e38
parent72c71c0b832a169c03bcdbaa5997956e30f62c7c
[PORTAL] Use global storage templates for PVC

OOM has now templates in order to create the needed PVC, using:

* a PV with a specific class when using a common nfs mount path between
nodes (sames as today use) --> is the default behavior today
* or a storage class if we want to use dynamic PV.
  On this case, we use (in order of priority):
  - persistence.storageClassOverride if set on the chart
  - global.persistence.storageClass if set globally
  - persistence.storageClass if set on the chart

Change-Id: I28b4ac5f612de75918973148865cf82f7a7de5e8
Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
kubernetes/portal/charts/portal-cassandra/templates/pv.yaml
kubernetes/portal/charts/portal-cassandra/templates/pvc.yaml
kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
kubernetes/portal/charts/portal-mariadb/templates/pvc.yaml