File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ resources:
39
39
S3_STORAGE_ACCOUNT: "{{ $obj.linode.accessKeyId | b64enc }}"
40
40
S3_STORAGE_KEY: "{{ $obj.linode.secretAccessKey | b64enc }}"
41
41
{{- end }}
42
+ {{- if ne $v.cluster.provider "custom" }}
42
43
# Application backup resources
43
44
- apiVersion: v1
44
45
kind: PersistentVolumeClaim
@@ -50,6 +51,7 @@ resources:
50
51
resources:
51
52
requests:
52
53
storage: 1Gi
54
+ {{- end }}
53
55
{{- if $giteaBackupConfig.enabled }}
54
56
- apiVersion: v1
55
57
kind: ServiceAccount
Original file line number Diff line number Diff line change @@ -233,8 +233,12 @@ extraVolumeMounts:
233
233
{{- end }}
234
234
extraVolumes:
235
235
- name: backup
236
+ {{- if ne $v.cluster.provider "custom" }}
236
237
persistentVolumeClaim:
237
238
claimName: gitea-backup
239
+ {{- else }}
240
+ emptyDir: {}
241
+ {{- end }}
238
242
{{- if $v._derived.untrustedCA }}
239
243
- name: custom-ca
240
244
secret:
You can’t perform that action at this time.
0 commit comments