aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2018-12-23 15:16:19 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-23 15:16:19 +0000
commit7b5466dbb6b76c39b7648b1014bc9ab9fe624ae1 (patch)
tree6ef84ee61a421f66bb965f7dfa214c75a0b901c0 /kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml
parent84c242e22e45c8bf63c0bcde68e56fa6c4a2344d (diff)
parent60f72472a038a0bcb7440f6ff028a422de20edc3 (diff)
Merge "Reconfigure nodeport usage"
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml')
-rw-r--r--kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml b/kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml
index 37ed28ee9d..961b6bba63 100644
--- a/kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml
+++ b/kubernetes/multicloud/charts/multicloud-prometheus/templates/pv.yaml
@@ -14,6 +14,8 @@
# limitations under the License.
*/}}
+{{- if .Values.global.prometheus.enabled -}}
+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
kind: PersistentVolume
apiVersion: v1
@@ -34,4 +36,6 @@ spec:
persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
hostPath:
path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
+{{- end -}}
+
{{- end -}} \ No newline at end of file