fix: Add 'resources' to commit-server

Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Marco Maurer 2025-02-04 00:49:17 +01:00
parent bc32442f6e
commit 5e76665ffc
No known key found for this signature in database

View file

@ -132,6 +132,8 @@ spec:
failureThreshold: {{ .Values.commitServer.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.commitServer.readinessProbe.failureThreshold }}
timeoutSeconds: {{ .Values.commitServer.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.commitServer.readinessProbe.timeoutSeconds }}
{{- end }} {{- end }}
resources:
{{- toYaml .Values.commitServer.resources | nindent 10 }}
{{- with .Values.commitServer.containerSecurityContext }} {{- with .Values.commitServer.containerSecurityContext }}
securityContext: securityContext:
{{- toYaml . | nindent 10 }} {{- toYaml . | nindent 10 }}
@ -160,15 +162,12 @@ spec:
- /var/run/argocd/argocd-cmp-server - /var/run/argocd/argocd-cmp-server
image: {{ default .Values.global.image.repository .Values.commitServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.commitServer.image.tag }} image: {{ default .Values.global.image.repository .Values.commitServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.commitServer.image.tag }}
name: copyutil name: copyutil
resources:
{{- toYaml .Values.commitServer.resources | nindent 10 }}
{{- with .Values.commitServer.containerSecurityContext }}
securityContext: securityContext:
runAsNonRoot: true {{- toYaml . | nindent 10 }}
readOnlyRootFilesystem: true {{- end }}
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
volumeMounts: volumeMounts:
- mountPath: /var/run/argocd - mountPath: /var/run/argocd
name: var-files name: var-files