From b090993205be197bcb7e5ae2983f7154a5d13825 Mon Sep 17 00:00:00 2001 From: Michele Fenech Adami Date: Wed, 22 Feb 2023 12:36:01 +0100 Subject: [PATCH] Added PriorityClass field --- charts/flowable/templates/rest.yaml | 3 +++ charts/flowable/templates/ui.yaml | 3 +++ charts/flowable/values.yaml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/charts/flowable/templates/rest.yaml b/charts/flowable/templates/rest.yaml index 652ef0e..67e285f 100644 --- a/charts/flowable/templates/rest.yaml +++ b/charts/flowable/templates/rest.yaml @@ -17,6 +17,9 @@ spec: app.kubernetes.io/name: {{ .Release.Name }}-{{ include "flowable.template" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: + {{- if .Values.rest.priorityClassName }} + priorityClassName: {{ .Values.rest.priorityClassName }} + {{- end }} initContainers: {{- if .Values.postgres.enabled }} - name: check-db-ready diff --git a/charts/flowable/templates/ui.yaml b/charts/flowable/templates/ui.yaml index ec84be5..3c9b1ad 100644 --- a/charts/flowable/templates/ui.yaml +++ b/charts/flowable/templates/ui.yaml @@ -17,6 +17,9 @@ spec: app.kubernetes.io/name: {{ .Release.Name }}-{{ include "flowable.template" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: + {{- if .Values.ui.priorityClassName }} + priorityClassName: {{ .Values.ui.priorityClassName }} + {{- end }} initContainers: {{- if .Values.postgres.enabled }} - name: check-db-ready diff --git a/charts/flowable/values.yaml b/charts/flowable/values.yaml index 78aa6e8..8e698bb 100644 --- a/charts/flowable/values.yaml +++ b/charts/flowable/values.yaml @@ -38,6 +38,7 @@ ui: repository: flowable/flowable-ui tag: 6.7.2 pullPolicy: Always + priorityClassName: ~ resources: requests: cpu: "100m" @@ -70,6 +71,7 @@ rest: repository: flowable/flowable-rest tag: 6.7.2 pullPolicy: Always + priorityClassName: ~ resources: requests: cpu: "100m"