From 123ac5729bcb5cfbdc2a17c767edf0c499a8a8cd Mon Sep 17 00:00:00 2001 From: sebdet Date: Thu, 7 Nov 2019 17:27:46 +0100 Subject: Move OOM code Move OOM clamp code to its own repository Issue-ID: CLAMP-548 Change-Id: Ibf61f82a7ed3f7f778882c5ecf24da946ca92751 Signed-off-by: sebdet --- charts/clamp-dash-es/templates/pv.yaml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 charts/clamp-dash-es/templates/pv.yaml (limited to 'charts/clamp-dash-es/templates/pv.yaml') diff --git a/charts/clamp-dash-es/templates/pv.yaml b/charts/clamp-dash-es/templates/pv.yaml new file mode 100644 index 0000000..fd21cdf --- /dev/null +++ b/charts/clamp-dash-es/templates/pv.yaml @@ -0,0 +1,36 @@ +{{/* +# Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. +# +# 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 and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +kind: PersistentVolume +apiVersion: v1 +metadata: + name: {{ include "common.fullname" . }} + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" + name: {{ include "common.fullname" . }} +spec: + capacity: + storage: {{ .Values.persistence.size}} + accessModes: + - {{ .Values.persistence.accessMode }} + persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} + hostPath: + path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }} +{{- end -}} -- cgit 1.2.3-korg