mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
[stable/zfs]: add custom priorityclass template for zfs charts (#363)
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
c399c1b522
commit
7256a6d65c
4 changed files with 49 additions and 1 deletions
|
|
@ -114,3 +114,25 @@ Create labels for openebs zfs-localpv node daemon
|
|||
{{ include "zfslocalpv.zfsNode.matchLabels" . }}
|
||||
{{ include "zfslocalpv.zfsNode.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi node plugin
|
||||
*/}}
|
||||
{{- define "zfslocalpv.zfsNode.priorityClassName" -}}
|
||||
{{- if .Values.zfsNode.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.zfsNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.zfsNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi controller plugin
|
||||
*/}}
|
||||
{{- define "zfslocalpv.zfsController.priorityClassName" -}}
|
||||
{{- if .Values.zfsController.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.zfsController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.zfsController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue