Skip to content

Commit

Permalink
Fix cron command and arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 9, 2024
1 parent 86601b5 commit e5b1275
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.2
appVersion: 0.0.2
version: 0.0.3
appVersion: 0.0.3
maintainers:
- name: WyriHaximus
email: helm@ceesjankiewiet.nl
Expand Down
4 changes: 2 additions & 2 deletions charts/mammatus/templates/_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ containers:
command:
- php
- /opt/app/vendor/bin/{{ .command | default "mamatus"}}
{{- range .arguments }}
{{- range .arguments }}
- "{{ . | replace "\\" "\\\\" }}"
{{- end }}
{{- end }}
{{- include "mammatus.env" . | nindent 4 }}
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion charts/mammatus/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
template:
spec:
restartPolicy: Never
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" .arguments) | nindent 10 }}
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" (list .class) "command" "mammatus-cron") | nindent 10 }}
{{- end }}

0 comments on commit e5b1275

Please sign in to comment.