Skip to content

Commit 4924f76

Browse files
authored
Merge pull request #162 from markandersontrocme/add-priorityclass
feat: allow setting PriorityClassName on KCP components
2 parents a2c8b5c + 19d4e92 commit 4924f76

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

charts/kcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: kcp
33
description: A prototype of a multi-tenant Kubernetes control plane for workloads on many clusters
44

55
# version information
6-
version: 0.12.0
6+
version: 0.12.1
77
appVersion: "0.28.0"
88

99
# optional metadata

charts/kcp/templates/etcd-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
imagePullSecrets:
5353
{{- include "kcp.imagePullSecrets" . | trim | nindent 8 }}
5454
{{- end }}
55+
{{- with .Values.etcd.priorityClassName }}
56+
priorityClassName: {{ . }}
57+
{{- end }}
5558
containers:
5659
- name: etcd
5760
image: {{ .Values.etcd.image }}:{{ .Values.etcd.tag }}

charts/kcp/templates/front-proxy-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ spec:
7373
imagePullSecrets:
7474
{{- include "kcp.imagePullSecrets" . | trim | nindent 8 }}
7575
{{- end }}
76+
{{- with .Values.kcpFrontProxy.priorityClassName }}
77+
priorityClassName: {{ . }}
78+
{{- end }}
7679
containers:
7780
- name: kcp-front-proxy
7881
image: "{{ .Values.kcpFrontProxy.image }}:{{- include "frontproxy.version" . }}"

charts/kcp/templates/server-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ spec:
110110
imagePullSecrets:
111111
{{- include "kcp.imagePullSecrets" . | trim | nindent 8 }}
112112
{{- end }}
113+
{{- with .Values.kcp.priorityClassName }}
114+
priorityClassName: {{ . }}
115+
{{- end }}
113116
containers:
114117
- name: kcp
115118
image: {{ .Values.kcp.image }}:{{- include "kcp.version" . }}

charts/kcp/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ etcd:
4848
# value: "true"
4949
# effect: "NoSchedule"
5050

51+
# When configured, this will set the priority class for etcd pods.
52+
priorityClassName: ""
53+
5154
affinity:
5255
podAntiAffinity:
5356
preferredDuringSchedulingIgnoredDuringExecution:
@@ -152,6 +155,9 @@ kcp:
152155
# value: "true"
153156
# effect: "NoSchedule"
154157

158+
# When configured, this will set the priority class for kcp server pods.
159+
priorityClassName: ""
160+
155161
affinity:
156162
podAntiAffinity:
157163
preferredDuringSchedulingIgnoredDuringExecution:
@@ -288,6 +294,9 @@ kcpFrontProxy:
288294
# value: "true"
289295
# effect: "NoSchedule"
290296

297+
# When configured, this will set the priority class for kcp-front-proxy pods.
298+
priorityClassName: ""
299+
291300
affinity:
292301
podAntiAffinity:
293302
preferredDuringSchedulingIgnoredDuringExecution:

0 commit comments

Comments
 (0)