# helm_charts_priorityclass-default.yaml
{{- if .Values.priorityClassDefault.enabled }}
apiVersion: scheduling.k8s.io/{{ template "PriorityClass.apiVersion" . }}
kind: PriorityClass
metadata:
  name: {{ .Values.priorityClassDefault.name }}
  labels:
    app.kubernetes.io/name: {{ include "cluster-overprovisioner.name" . }}
    helm.sh/chart: {{ include "cluster-overprovisioner.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
value: {{ .Values.priorityClassDefault.value }}
globalDefault: true
description: "Default priority class for all pods"
{{- end }}