rancher-partner-charts/charts/kubecost/cost-analyzer/2.2.3/templates/kubecost-priority-class-tem...

16 lines
475 B
YAML

{{- if .Values.priority }}
{{- if .Values.priority.enabled }}
{{- if eq (len .Values.priority.name) 0 }}
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ template "cost-analyzer.fullname" . }}-priority
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
value: {{ .Values.priority.value | default "1000000" }}
globalDefault: false
description: "Priority class for scheduling the cost-analyzer pod"
{{- end }}
{{- end }}
{{- end }}