Skip to content

Commit a3632b1

Browse files
authored
Merge pull request #5 from HomeDevopsLab/container-command
Container command
2 parents a87ddab + b921a41 commit a3632b1

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.2.0] - 2023-08-11
4+
### Added
5+
- option to run containers with additional command and args.
6+
37
## [2.1.0] - 2023-07-27
48
### Added
59
- replaced strict TCP protocol family in ports specification with variable: protocol which allows to decide which protocol is needed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.1.0
18+
version: 2.2.0
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.

chart/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ spec:
1818
containers:
1919
- name: {{ .Release.Name }}
2020
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
21+
{{- if .Values.image.command }}
22+
command:
23+
{{- with .Values.image.command }}
24+
{{- toYaml . | nindent 12 }}
25+
{{- end }}
26+
{{- end }}
27+
{{- if .Values.image.args }}
28+
args:
29+
{{- with .Values.image.args }}
30+
{{- toYaml . | nindent 12 }}
31+
{{- end }}
32+
{{- end }}
2133
{{- if .Values.volumes.enabled }}
2234
volumeMounts:
2335
{{- range .Values.volumes.mountPath }}

chart/test_values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ image:
33
imagePolicy: enabled
44
repository: devkrolikowski/swiss-army-knife
55
tag: 0.3.0 # {"$imagepolicy": "flux-system:helper:tag"}
6+
command:
7+
- "cmd.sh"
8+
args:
9+
- "cmdarg"
610
resources:
711
limits:
812
memory: "1024Mi"

chart/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ image:
77
imagePolicy: false
88
repository: ""
99
tag: ""
10+
command: []
11+
args: []
1012
env: {}
1113
resources:
1214
limits:

0 commit comments

Comments
 (0)