Merge pull request #4 from Intreecom/feature/cmd-for-deployment

feature: capability to add a `cmd` in main deployment created by chart
This commit is contained in:
Dev Jadeja
2025-01-16 17:30:25 +05:30
committed by GitHub

View File

@ -35,6 +35,9 @@ spec:
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- if .Values.command }}
cmd: {{ .Values.command }}
{{- end}}
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- name: http - name: http