Skip to content

Commit a0cfb29

Browse files
authored
Merge pull request #6 from MammatusPHP/add-priority-class
Add priority class
2 parents c7cb7f2 + 26f4260 commit a0cfb29

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

charts/mammatus/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: mammatus
33
description: MammatusPHP Chart
44
type: application
5-
version: 0.0.3
6-
appVersion: 0.0.3
5+
version: 0.0.4
6+
appVersion: 0.0.4
77
maintainers:
88
- name: WyriHaximus
99

charts/mammatus/templates/cronjobs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
backoffLimit: 0
2222
template:
2323
spec:
24+
{{- with $.Values.priorityClassName }}
25+
priorityClassName: "{{ . }}"
26+
{{- end }}
2427
restartPolicy: Never
2528
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" (list .class) "command" "mammatus-cron") | nindent 10 }}
2629
{{- end }}

charts/mammatus/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ spec:
1818
app.kubernetes.io/name: {{ include "mammatus.name" $ }}
1919
app.kubernetes.io/instance: {{ .name }}
2020
spec:
21+
{{- with $.Values.priorityClassName }}
22+
priorityClassName: "{{ . }}"
23+
{{- end }}
2124
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" .arguments) | nindent 6 }}
2225
{{- end }}

charts/mammatus/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ deployments: []
66
# - name: some_worker
77
# command: mammatus-queue
88
# arguments:
9-
# - Some\Class\FQCN
9+
# - Some\OtherClass\FQCN
1010
# - name: some_service
1111
# command: mammatus-vhost
1212
# arguments:
13-
# - Some\Class\FQCN
13+
# - Some\AnotherOtherClass\FQCN
1414
# post: 666
1515

1616
env: {}
@@ -28,6 +28,8 @@ resources:
2828
cpu: 100m
2929
memmory: 256Mi
3030

31+
priorityClassName: ""
32+
3133
volumes: {}
3234
# name:
3335
# volumeMountOptions: {}

0 commit comments

Comments
 (0)