Skip to content

Commit d6e604c

Browse files
configurable empty dir size
1 parent 9e9b44d commit d6e604c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

charts/kuberpult/templates/cd-service.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ spec:
5050
labels:
5151
app: kuberpult-cd-service
5252
{{- if .Values.datadogTracing.enabled }}
53-
tags.datadoghq.com/env: {{ .Values.datadogTracing.environment }}
5453
tags.datadoghq.com/service: kuberpult-cd-service
5554
tags.datadoghq.com/version: {{ $.Chart.AppVersion }}
5655
{{- end }}
@@ -143,7 +142,7 @@ spec:
143142
memory: "{{ .Values.cd.resources.requests.memory }}"
144143
env:
145144
- name: KUBERPULT_GIT_URL
146-
value: {{ required ".Values.git.url is required" .Values.git.url | quote }}
145+
value: {{ .Values.git.url | quote }}
147146
- name: KUBERPULT_GIT_BRANCH
148147
value: {{ .Values.git.branch | quote }}
149148
- name: KUBERPULT_VERSION
@@ -322,7 +321,7 @@ spec:
322321
# EmptyDir has the nice advantage, that it triggers a restart of the pod and creates a new volume when the current one is full
323322
# Because of an issue in gitlib2, this actually happens.
324323
emptyDir:
325-
sizeLimit: 30Gi
324+
sizeLimit: {{ .Values.git.emptyDirSize }}
326325
- name: ssh
327326
secret:
328327
secretName: kuberpult-ssh

charts/kuberpult/templates/manifest-repo-export-service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ spec:
264264
# EmptyDir has the nice advantage, that it triggers a restart of the pod and creates a new volume when the current one is full
265265
# Because of an issue in gitlib2, this actually happens.
266266
emptyDir:
267-
sizeLimit: 30Gi
267+
sizeLimit: {{ .Values.git.emptyDirSize }}
268268
- name: ssh
269269
secret:
270270
secretName: kuberpult-ssh

charts/kuberpult/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ git:
7373
# Recommendation: Only activate this option, if frequent database backups are made and if the git repo takes up too many resources.
7474
minimizeExportedData: false
7575

76+
# The size of the volume that stores the local data for the git repository
77+
emptyDirSize: 30Gi
78+
7679
hub: europe-west3-docker.pkg.dev/fdc-public-docker-registry/kuberpult
7780
kubernetesEngine: "GKE"
7881

0 commit comments

Comments
 (0)