Skip to content

Commit c7cb7f2

Browse files
authored
Merge pull request #5 from MammatusPHP/fix-subchart-issues-part-2
Fix cron command and arguments
2 parents 961b3e6 + e5b1275 commit c7cb7f2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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.2
6-
appVersion: 0.0.2
5+
version: 0.0.3
6+
appVersion: 0.0.3
77
maintainers:
88
- name: WyriHaximus
99

charts/mammatus/templates/_pod.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ containers:
77
command:
88
- php
99
- /opt/app/vendor/bin/{{ .command | default "mamatus"}}
10-
{{- range .arguments }}
10+
{{- range .arguments }}
1111
- "{{ . | replace "\\" "\\\\" }}"
12-
{{- end }}
12+
{{- end }}
1313
{{- include "mammatus.env" . | nindent 4 }}
1414
resources:
1515
limits:

charts/mammatus/templates/cronjobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ spec:
2222
template:
2323
spec:
2424
restartPolicy: Never
25-
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" .arguments) | nindent 10 }}
25+
{{- include "mammatus.pod" (dict "Chart" $.Chart "Values" $.Values "name" .name "arguments" (list .class) "command" "mammatus-cron") | nindent 10 }}
2626
{{- end }}

0 commit comments

Comments
 (0)