Skip to content

Commit 80ebd93

Browse files
merllCasLubbers
andauthored
fix: use emptydir for Gitea backup volume on custom provider (#1898)
Co-authored-by: CasLubbers <[email protected]>
1 parent f180cc9 commit 80ebd93

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

values/gitea/gitea-raw.gotmpl

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ resources:
3939
S3_STORAGE_ACCOUNT: "{{ $obj.linode.accessKeyId | b64enc }}"
4040
S3_STORAGE_KEY: "{{ $obj.linode.secretAccessKey | b64enc }}"
4141
{{- end }}
42+
{{- if ne $v.cluster.provider "custom" }}
4243
# Application backup resources
4344
- apiVersion: v1
4445
kind: PersistentVolumeClaim
@@ -50,6 +51,7 @@ resources:
5051
resources:
5152
requests:
5253
storage: 1Gi
54+
{{- end }}
5355
{{- if $giteaBackupConfig.enabled }}
5456
- apiVersion: v1
5557
kind: ServiceAccount

values/gitea/gitea.gotmpl

+4
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,12 @@ extraVolumeMounts:
233233
{{- end }}
234234
extraVolumes:
235235
- name: backup
236+
{{- if ne $v.cluster.provider "custom" }}
236237
persistentVolumeClaim:
237238
claimName: gitea-backup
239+
{{- else }}
240+
emptyDir: {}
241+
{{- end }}
238242
{{- if $v._derived.untrustedCA }}
239243
- name: custom-ca
240244
secret:

0 commit comments

Comments
 (0)