File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
charts/gitops-runtime/templates/_components/gitops-operator Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ spec:
3939 {{- toYaml .Values.podSecurityContext | nindent 8 }}
4040 {{- end }}
4141 containers :
42- {{- if not .Values.debug.enabled }}
4342 - name : manager
4443 securityContext :
4544 {{- toYaml .Values.securityContext | nindent 12 }}
46- {{- $imageContext := deepCopy .Values.image }}
45+ {{- if .Values.debug.enabled }}
46+ {{- $imageContext := deepCopy .Values.debug.image }}
47+ {{- else }}
48+ {{- $imageContext := deepCopy .Values.image }}
49+ {{- end }}
4750 {{- if not (get $imageContext "tag") }}
4851 {{- $_ := set $imageContext "tag" .Chart.AppVersion }}
4952 {{- end }}
9194 {{- with .Values.extraVolumeMounts }}
9295 {{- toYaml . | nindent 8 }}
9396 {{- end }}
94- {{- end }}
95- {{- if .Values.debug.enabled }}
96- - name : debug
97- {{- $imageContext := deepCopy .Values.debug.image }}
98- image : {{ include "codefresh-gitops-runtime.image.name" (dict "image" $imageContext "context" .) }}
99- {{- end }}
10097 {{- with .Values.nodeSelector | default .Values.global.nodeSelector }}
10198 nodeSelector : {{ toYaml . | nindent 8 }}
10299 {{- end }}
You can’t perform that action at this time.
0 commit comments