diff options
author | Alexis de Talhouƫt <alexis.de_talhouet@bell.ca> | 2018-03-13 15:06:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-13 15:06:07 +0000 |
commit | b555747b03de9ae00a0ebec96614a9d6ba92ae9e (patch) | |
tree | 0bd202605aa7bff3146bbe9f40f9da9d26f60a99 /kubernetes/so | |
parent | 78dfe70911a4da15280adb9cc8a583fb1e09331d (diff) | |
parent | 7bd243e8765d7c5badc72c486c02ff92bc7f73fc (diff) |
Merge "adding a selector in so/mariadb/pvc"
Diffstat (limited to 'kubernetes/so')
-rw-r--r-- | kubernetes/so/charts/mariadb/templates/pv.yaml | 3 | ||||
-rw-r--r-- | kubernetes/so/charts/mariadb/templates/pvc.yaml | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/kubernetes/so/charts/mariadb/templates/pv.yaml b/kubernetes/so/charts/mariadb/templates/pv.yaml index 27343e3528..31230a9ed7 100644 --- a/kubernetes/so/charts/mariadb/templates/pv.yaml +++ b/kubernetes/so/charts/mariadb/templates/pv.yaml @@ -9,6 +9,7 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + name: {{ include "common.fullname" . }} spec: capacity: storage: {{ .Values.persistence.size}} @@ -17,4 +18,4 @@ spec: persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} hostPath: path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }} -{{- end -}}
\ No newline at end of file +{{- end -}} diff --git a/kubernetes/so/charts/mariadb/templates/pvc.yaml b/kubernetes/so/charts/mariadb/templates/pvc.yaml index faff46ca3e..b0cd3bf238 100644 --- a/kubernetes/so/charts/mariadb/templates/pvc.yaml +++ b/kubernetes/so/charts/mariadb/templates/pvc.yaml @@ -14,6 +14,9 @@ metadata: {{ toYaml .Values.persistence.annotations | indent 4 }} {{- end }} spec: + selector: + matchLabels: + name: {{ include "common.fullname" . }} accessModes: - {{ .Values.persistence.accessMode }} resources: |