File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
charts/gitops-runtime/templates/_components/gitops-operator Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -79,14 +79,22 @@ securityContext:
7979 capabilities:
8080 drop:
8181 - "ALL"
82- command: []
82+ command:
83+ - /manager
8384extraArgs: []
8485nodeSelector: { }
8586tolerations: []
8687extraVolumes: []
8788extraVolumeMounts: []
8889affinity: { }
8990
91+ debug:
92+ enabled: true
93+ image:
94+ registry: registry.k8s.io
95+ repository: pause
96+ tag: 3.10
97+
9098resources:
9199 limits: { }
92100 requests:
Original file line number Diff line number Diff line change 3333 {{- end }}
3434 serviceAccountName : {{ include "gitops-operator.serviceAccountName" . }}
3535 securityContext :
36+ {{- if .Values.debug.enabled }}
37+ runAsNonRoot : false
38+ {{- else }}
3639 {{- toYaml .Values.podSecurityContext | nindent 8 }}
40+ {{- end }}
3741 containers :
42+ {{- if not .Values.debug.enabled }}
3843 - name : manager
3944 securityContext :
4045 {{- toYaml .Values.securityContext | nindent 12 }}
4550 image : {{ include "codefresh-gitops-runtime.image.name" (dict "image" $imageContext "context" .) }}
4651 env : {{- include "codefresh-gitops-runtime.env-vars" (dict "Values" $mergedValues "context" .) | nindent 8 }}
4752 imagePullPolicy : {{ .Values.image.pullPolicy }}
48- {{- if .Values.command }}
4953 command :
54+ {{- if .Values.command }}
5055 {{- .Values.command | toYaml | nindent 8 }}
51- {{- else }}
52- command :
53- - /manager
5456 {{- end }}
5557 {{- with .Values.extraArgs }}
5658 args :
8991 {{- with .Values.extraVolumeMounts }}
9092 {{- toYaml . | nindent 8 }}
9193 {{- 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 }}
92100 {{- with .Values.nodeSelector | default .Values.global.nodeSelector }}
93101 nodeSelector : {{ toYaml . | nindent 8 }}
94102 {{- end }}
You can’t perform that action at this time.
0 commit comments