X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fmso%2Ftemplates%2Fmso-pv-pvc.yaml;h=1ee4ab088b4c08859025833dfb1e04dcf989c9ee;hb=1e5ca467cadaa2d398d448c414075089a3998b7b;hp=c1959808419aaa8fc11f1b9cf48c229f3832e3e2;hpb=66a9a5c4a387974e81b210fc9fa0024239582027;p=oom.git diff --git a/kubernetes/mso/templates/mso-pv-pvc.yaml b/kubernetes/mso/templates/mso-pv-pvc.yaml index c195980841..1ee4ab088b 100644 --- a/kubernetes/mso/templates/mso-pv-pvc.yaml +++ b/kubernetes/mso/templates/mso-pv-pvc.yaml @@ -1,10 +1,27 @@ +{{/* +# Copyright © 2017 Amdocs, Bell Canada +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/}} + +#{{ if not .Values.disableMsoMariadb }} apiVersion: v1 kind: PersistentVolume metadata: - name: mso-db - namespace: "{{ .Values.nsPrefix }}-mso" + name: "{{ .Values.nsPrefix }}-mso" + namespace: "{{ .Values.nsPrefix }}" labels: - name: mso-db + name: "{{ .Values.nsPrefix }}-mso" spec: capacity: storage: 2Gi @@ -12,13 +29,13 @@ spec: - ReadWriteMany persistentVolumeReclaimPolicy: Retain hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/data + path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/mso/mariadb/data --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: mso-db - namespace: "{{ .Values.nsPrefix }}-mso" + namespace: "{{ .Values.nsPrefix }}" spec: accessModes: - ReadWriteMany @@ -27,4 +44,5 @@ spec: storage: 2Gi selector: matchLabels: - name: mso-db + name: "{{ .Values.nsPrefix }}-mso" +#{{ end }}