[stable/velero] add priority class helper (#18684)

* add priority class helper

Signed-off-by: Brant Taylor <brant.taylor@lifeway.com>

* add priority class helper

Signed-off-by: Brant Taylor <brant.taylor@lifeway.com>

* bump chart

Signed-off-by: Brant Taylor <brant.taylor@lifeway.com>

* bump chart version

Signed-off-by: Brant Taylor <brant.taylor@lifeway.com>
This commit is contained in:
branttaylor
2019-11-22 18:37:50 -08:00
committed by Kubernetes Prow Robot
parent 71d3a6b700
commit 7b0750d0a8
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.1.0
description: A Helm chart for velero
name: velero
version: 2.3.2
version: 2.3.3
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
+22
View File
@@ -52,3 +52,25 @@ Create the name for the credentials secret.
{{- include "velero.fullname" . -}}
{{- end -}}
{{- end -}}
{{/*
Create the Velero priority class name.
*/}}
{{- define "velero.priorityClassName" -}}
{{- if .Values.priorityClassName -}}
{{- .Values.priorityClassName -}}
{{- else -}}
{{- include "velero.fullname" . -}}
{{- end -}}
{{- end -}}
{{/*
Create the Restic priority class name.
*/}}
{{- define "velero.restic.priorityClassName" -}}
{{- if .Values.restic.priorityClassName -}}
{{- .Values.restic.priorityClassName -}}
{{- else -}}
{{- include "velero.fullname" . -}}
{{- end -}}
{{- end -}}