X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2FpersistentVolume.yaml;fp=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2FpersistentVolume.yaml;h=01bc7b33748e6737bf1647308087905a44dc2d6f;hb=0311df550cc4531d55a34376a3c4f5836a48fd0c;hp=cb63ba9d6c983f6a71a9d5549510f3cc2eeaa792;hpb=76eae6abc4d7b37d7e1852bb5f6e15ac2f081eb1;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml index cb63ba9d..01bc7b33 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/persistentVolume.yaml @@ -1,4 +1,14 @@ -# Remove this persistent volume when cloud storage is available +{{- if not .Values.dashboard.storageclass }} + +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: storageclass-{{ include "common.name.dashboard" . }} +provisioner: kubernetes.io/no-provisioner +volumeBindingMode: WaitForFirstConsumer + +--- + apiVersion: v1 kind: PersistentVolume metadata: @@ -16,7 +26,9 @@ spec: required: nodeSelectorTerms: - matchExpressions: - - key: dashboard-node + - key: local-storage operator: In values: - enable +{{- end -}} +