[APPC] Use global storage templates for PVC 63/98963/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Nov 2019 08:19:40 +0000 (09:19 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Nov 2019 08:26:32 +0000 (09:26 +0100)
commit5f46e6edb8331594eeb4ef88eaca3654232fb8dd
tree29a2e675cfdaca499b5a7be2b9eac23c01e4519d
parent9b0adea0769b026875ee312d223960c559c700bb
[APPC] 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: I04757c8fffc4987c4d49da9f474f3e20367de214
Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
kubernetes/appc/charts/appc-ansible-server/templates/pv.yaml
kubernetes/appc/charts/appc-ansible-server/templates/statefulset.yaml
kubernetes/appc/templates/pv.yaml
kubernetes/appc/templates/statefulset.yaml