X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fvid%2Ftemplates%2Fvid-pv-pvc.yaml;h=0d2205be0becb6df5260ca4daa41803e69ee3e73;hb=e04b2feb855e5ab20e28c867d2bd7f89f6b8c425;hp=71c5d733dcaea4a731c0f49618eca2e2191bd4d1;hpb=fd73969db3548d7288e7bc6e136723364d6e4aa4;p=oom.git diff --git a/kubernetes/vid/templates/vid-pv-pvc.yaml b/kubernetes/vid/templates/vid-pv-pvc.yaml index 71c5d733dc..0d2205be0b 100644 --- a/kubernetes/vid/templates/vid-pv-pvc.yaml +++ b/kubernetes/vid/templates/vid-pv-pvc.yaml @@ -1,10 +1,25 @@ +# 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.disableVidVidMariadb }} apiVersion: v1 kind: PersistentVolume metadata: - name: vid-db - namespace: "{{ .Values.nsPrefix }}-vid" + name: "{{ .Values.nsPrefix }}-vid" + namespace: "{{ .Values.nsPrefix }}" labels: - name: vid-db + name: "{{ .Values.nsPrefix }}-vid" spec: capacity: storage: 2Gi @@ -12,13 +27,13 @@ spec: - ReadWriteMany persistentVolumeReclaimPolicy: Retain hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/mariadb/data + path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/vid/mariadb/data --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: vid-db - namespace: "{{ .Values.nsPrefix }}-vid" + namespace: "{{ .Values.nsPrefix }}" spec: accessModes: - ReadWriteMany @@ -27,4 +42,5 @@ spec: storage: 2Gi selector: matchLabels: - name: vid-db + name: "{{ .Values.nsPrefix }}-vid" +#{{ end }}