Skip to content

Commit 9aa436b

Browse files
committed
feat(kuma-cp): add priorityClassName to Helm Chart
Add the option to specify a priority class for kuma-cp Signed-off-by: jmromanos <[email protected]>
1 parent b7131bb commit 9aa436b

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

app/kumactl/cmd/install/testdata/install-control-plane.dump-values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ controlPlane:
119119
# This is rendered as a template, so you can use variables to generate match labels.
120120
topologySpreadConstraints:
121121

122+
# -- Priority Class Name of the Kuma Control Plane
123+
priorityClassName: ""
124+
122125
# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
123126
injectorFailurePolicy: Fail
124127

deployments/charts/kuma/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ A Helm chart for the Kuma Control Plane
4040
| controlPlane.podDisruptionBudget.maxUnavailable | int | `1` | The maximum number of unavailable pods allowed by the budget |
4141
| controlPlane.affinity | object | `{"podAntiAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"labelSelector":{"matchExpressions":[{"key":"app.kubernetes.io/name","operator":"In","values":["{{ include \"kuma.name\" . }}"]},{"key":"app.kubernetes.io/instance","operator":"In","values":["{{ .Release.Name }}"]},{"key":"app","operator":"In","values":["{{ include \"kuma.name\" . }}-control-plane"]}]},"topologyKey":"kubernetes.io/hostname"},"weight":100}]}}` | Affinity placement rule for the Kuma Control Plane pods. This is rendered as a template, so you can reference other helm variables or includes. |
4242
| controlPlane.topologySpreadConstraints | string | `nil` | Topology spread constraints rule for the Kuma Control Plane pods. This is rendered as a template, so you can use variables to generate match labels. |
43+
| controlPlane.priorityClassName | string | `""` | Priority Class Name of the Kuma Control Plane |
4344
| controlPlane.injectorFailurePolicy | string | `"Fail"` | Failure policy of the mutating webhook implemented by the Kuma Injector component |
4445
| controlPlane.service.apiServer.http.nodePort | int | `30681` | Port on which Http api server Service is exposed on Node for service of type NodePort |
4546
| controlPlane.service.apiServer.https.nodePort | int | `30682` | Port on which Https api server Service is exposed on Node for service of type NodePort |

deployments/charts/kuma/templates/cp-deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ spec:
9797
{{- with .Values.controlPlane.topologySpreadConstraints }}
9898
topologySpreadConstraints: {{ tpl (toYaml . | nindent 8) $ }}
9999
{{- end }}
100+
{{- with .Values.controlPlane.priorityClassName }}
101+
priorityClassName: {{ . }}
102+
{{- end }}
100103
securityContext:
101104
{{- toYaml .Values.controlPlane.podSecurityContext | trim | nindent 8 }}
102105
serviceAccountName: {{ include "kuma.name" . }}-control-plane

deployments/charts/kuma/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ controlPlane:
119119
# This is rendered as a template, so you can use variables to generate match labels.
120120
topologySpreadConstraints:
121121

122+
# -- Priority Class Name of the Kuma Control Plane
123+
priorityClassName: ""
124+
122125
# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
123126
injectorFailurePolicy: Fail
124127

docs/generated/raw/helm-values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ controlPlane:
119119
# This is rendered as a template, so you can use variables to generate match labels.
120120
topologySpreadConstraints:
121121

122+
# -- Priority Class Name of the Kuma Control Plane
123+
priorityClassName: ""
124+
122125
# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
123126
injectorFailurePolicy: Fail
124127

0 commit comments

Comments
 (0)