Skip to content

Commit 62e715d

Browse files
authored
Fix deployment command and arg handling
1 parent 624b7cc commit 62e715d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

incubator/monochart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
description: A declarative helm chart for deploying common types of services on Kubernetes
33
name: monochart
4-
version: 0.12.0
5-
appVersion: 0.12.0
4+
version: 0.13.0
5+
appVersion: 0.13.0
66
home: https://github.com/cloudposse/charts/tree/master/incubator/monochart
77
icon: https://raw.githubusercontent.com/cloudposse/charts/master/incubator/monochart/logo.png
88
maintainers:

incubator/monochart/templates/deployment.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ spec:
4949
image: {{ required "image.repository is required!" .Values.image.repository }}:{{ required "image.tag is required!" .Values.image.tag }}
5050
imagePullPolicy: {{ .Values.image.pullPolicy }}
5151
{{ include "monochart.env" . | indent 8 }}
52-
{{- if .Values.deployment.pod.command }}
53-
command: {{ toYaml .Values.deployment.pod.command }}
54-
{{- end }}
55-
{{- if .Values.deployment.pod.args }}
56-
args: {{ toYaml .Values.deployment.pod.args }}
57-
{{- end }}
52+
{{- with .Values.deployment.pod.command }}
53+
command:
54+
{{ toYaml . | indent 10 }}
55+
{{- end }}
56+
{{- with .Values.deployment.pod.args }}
57+
args:
58+
{{ toYaml . | indent 10 }}
59+
{{- end }}
5860
{{- with .Values.deployment.pod.securityContext }}
5961
securityContext:
6062
{{ toYaml . | indent 10 }}

0 commit comments

Comments
 (0)