Skip to content

Commit

Permalink
Merge pull request #6 from MammatusPHP/add-priority-class
Browse files Browse the repository at this point in the history
Add priority class
  • Loading branch information
WyriHaximus authored Jun 9, 2024
2 parents c7cb7f2 + 26f4260 commit a0cfb29
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/mammatus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: mammatus
description: MammatusPHP Chart
type: application
version: 0.0.3
appVersion: 0.0.3
version: 0.0.4
appVersion: 0.0.4
maintainers:
- name: WyriHaximus
email: helm@ceesjankiewiet.nl
Expand Down
3 changes: 3 additions & 0 deletions charts/mammatus/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
backoffLimit: 0
template:
spec:
{{- with $.Values.priorityClassName }}
priorityClassName: "{{ . }}"
{{- end }}
restartPolicy: Never
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" (list .class) "command" "mammatus-cron") | nindent 10 }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/mammatus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ spec:
app.kubernetes.io/name: {{ include "mammatus.name" $ }}
app.kubernetes.io/instance: {{ .name }}
spec:
{{- with $.Values.priorityClassName }}
priorityClassName: "{{ . }}"
{{- end }}
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" .arguments) | nindent 6 }}
{{- end }}
6 changes: 4 additions & 2 deletions charts/mammatus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ deployments: []
# - name: some_worker
# command: mammatus-queue
# arguments:
# - Some\Class\FQCN
# - Some\OtherClass\FQCN
# - name: some_service
# command: mammatus-vhost
# arguments:
# - Some\Class\FQCN
# - Some\AnotherOtherClass\FQCN
# post: 666

env: {}
Expand All @@ -28,6 +28,8 @@ resources:
cpu: 100m
memmory: 256Mi

priorityClassName: ""

volumes: {}
# name:
# volumeMountOptions: {}
Expand Down

0 comments on commit a0cfb29

Please sign in to comment.