[POLICY] Use global storage templates for PVC 29/99329/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 9 Dec 2019 10:46:42 +0000 (11:46 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 9 Dec 2019 10:46:42 +0000 (11:46 +0100)
commit899370565bd26ab2d268c9acd53c4e6a59e198ec
tree373569be1cb5d81b3c378e3303c539cf666bd70a
parent72c71c0b832a169c03bcdbaa5997956e30f62c7c
[POLICY] 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: Iabd5d12196459bb1fce9021857aeab57a757ee12
Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
kubernetes/policy/charts/drools/charts/nexus/templates/pv.yaml
kubernetes/policy/charts/drools/charts/nexus/templates/pvc.yaml