X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fcommon%2Fcommon%2Ftemplates%2F_mariadb.tpl;fp=kubernetes%2Fcommon%2Fcommon%2Ftemplates%2F_mariadb.tpl;h=ff3f7f88c32f81ef6684c6cd3ff61fd3f6d5a4e6;hb=b1a0103760fdee36c958210c73a1d774658238dc;hp=c90b86c3a41391cf2075d50d6d42a0efbdbef7a1;hpb=2ad6c16c56c038178c8001a242e8c3243e21e9ba;p=oom.git diff --git a/kubernetes/common/common/templates/_mariadb.tpl b/kubernetes/common/common/templates/_mariadb.tpl index c90b86c3a4..ff3f7f88c3 100644 --- a/kubernetes/common/common/templates/_mariadb.tpl +++ b/kubernetes/common/common/templates/_mariadb.tpl @@ -281,6 +281,9 @@ spec: image: {{ include "repositoryGenerator.githubContainerRegistry" . }}/{{ $dot.Values.mariadbOperator.galera.initImage }}:{{ $dot.Values.mariadbOperator.galera.initVersion }} imagePullPolicy: IfNotPresent volumeClaimTemplate: + {{- if .Values.mariadbOperator.storageClassName }} + storageClassName: {{ .Values.mariadbOperator.storageClassName }} + {{- end }} resources: requests: storage: 50Mi