{{- if .Values.artifactory.priorityClass.create }}
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
  name: {{ default (include "artifactory-ha.fullname" .) .Values.artifactory.priorityClass.name }}
value: {{ .Values.artifactory.priorityClass.value }}
globalDefault: false
description: "Artifactory priority class"
{{- end }}
