Skip to content

Commit d4480c9

Browse files
committed
Support setting 'priorityClassName'.
Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
1 parent e45cf58 commit d4480c9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

chart/flux/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ The following tables lists the configurable parameters of the Flux chart and the
265265
| `memcached.securityContext` | [See values.yaml](/chart/flux/values.yaml#L176-L179) | Container security context for memcached
266266
| `memcached.nodeSelector` | `{}` | Node Selector properties for the memcached deployment
267267
| `memcached.tolerations` | `[]` | Tolerations properties for the memcached deployment
268+
| `memcached.priorityClassName` | `""` | The name of the priority class to assign to the memcached pod.
268269
| `kube.config` | [See values.yaml](/chart/flux/values.yaml#L200-L212) | Override for kubectl default config in the Flux pod(s).
269270
| `priorityClassName` | `""` | Set priority class for Flux
270271
| `prometheus.enabled` | `false` | If enabled, adds prometheus annotations to Flux and helmOperator pod(s)

chart/flux/templates/memcached.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
app: {{ template "flux.name" . }}-memcached
2727
release: {{ .Release.Name }}
2828
spec:
29+
{{- if .Values.memcached.priorityClassName }}
30+
priorityClassName: {{ .Values.memcached.priorityClassName }}
31+
{{- end }}
2932
{{- if .Values.memcached.pullSecret }}
3033
imagePullSecrets:
3134
- name: {{ .Values.memcached.pullSecret }}

chart/flux/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ memcached:
210210
# requests:
211211
# cpu: 50m
212212
# memory: 512Mi
213+
priorityClassName: ""
213214

214215
ssh:
215216
# Overrides for git over SSH. If you use your own git server, you

0 commit comments

Comments
 (0)