Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.2.0] - 2023-08-11
### Added
- option to run containers with additional command and args.

## [2.1.0] - 2023-07-27
### Added
- replaced strict TCP protocol family in ports specification with variable: protocol which allows to decide which protocol is needed
Expand Down
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.0
version: 2.2.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
12 changes: 12 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ spec:
containers:
- name: {{ .Release.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{- if .Values.image.command }}
command:
{{- with .Values.image.command }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.image.args }}
args:
{{- with .Values.image.args }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.volumes.enabled }}
volumeMounts:
{{- range .Values.volumes.mountPath }}
Expand Down
4 changes: 4 additions & 0 deletions chart/test_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ image:
imagePolicy: enabled
repository: devkrolikowski/swiss-army-knife
tag: 0.3.0 # {"$imagepolicy": "flux-system:helper:tag"}
command:
- "cmd.sh"
args:
- "cmdarg"
resources:
limits:
memory: "1024Mi"
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ image:
imagePolicy: false
repository: ""
tag: ""
command: []
args: []
env: {}
resources:
limits:
Expand Down