File tree 11 files changed +46
-91
lines changed
11 files changed +46
-91
lines changed Original file line number Diff line number Diff line change @@ -786,12 +786,6 @@ environments:
786
786
obj :
787
787
provider :
788
788
type : disabled
789
- buckets :
790
- loki : loki
791
- cnpg : cnpg
792
- velero : velero
793
- harbor : harbor
794
- tempo : tempo
795
789
platformBackups :
796
790
database :
797
791
harbor :
@@ -800,9 +794,6 @@ environments:
800
794
enabled : false
801
795
keycloak :
802
796
enabled : false
803
- persistentVolumes :
804
- gitea :
805
- enabled : false
806
797
cluster :
807
798
provider : linode
808
799
name : apl
Original file line number Diff line number Diff line change 45
45
keys : somesecretvalue
46
46
tenantId : somesecretvalue
47
47
obj :
48
- buckets :
49
- cnpg : my-clusterid-cnpg
50
- harbor : my-clusterid-harbor
51
- loki : my-clusterid-loki
52
- tempo : my-clusterid-tempo
53
- velero : my-clusterid-velero
54
48
provider :
55
49
linode :
56
50
accessKeyId : someaccessKeyId
57
51
region : nl-ams-1
52
+ buckets :
53
+ cnpg : my-clusterid-cnpg
54
+ harbor : my-clusterid-harbor
55
+ loki : my-clusterid-loki
56
+ tempo : my-clusterid-tempo
57
+ velero : my-clusterid-velero
58
58
type : linode
59
59
oidc :
60
60
adminGroupID : someAdminGroupID
@@ -88,9 +88,6 @@ platformBackups:
88
88
enabled : true
89
89
retentionPolicy : 7d
90
90
schedule : 0 0 0 * * *
91
- persistentVolumes :
92
- gitea :
93
- enabled : false
94
91
smtp :
95
92
96
93
Original file line number Diff line number Diff line change @@ -286,6 +286,8 @@ changes:
286
286
- version : 28
287
287
deletions :
288
288
- ' apps.cnpg.storage'
289
+ - ' obj.buckets'
290
+ - ' platformBackups.persistentVolumes.gitea'
289
291
- ' alerts.drone'
290
292
- ' otomi.isHomeMonitored'
291
293
- ' home'
Original file line number Diff line number Diff line change @@ -2894,22 +2894,11 @@ properties:
2894
2894
description : Linode API Token
2895
2895
$ref : ' #/definitions/wordCharacterPattern'
2896
2896
x-secret : ' '
2897
- gitea :
2898
- title : Gitea
2899
- properties :
2900
- enabled :
2901
- type : boolean
2902
- default : false
2903
- ttl :
2904
- $ref : ' #/definitions/backupTtl'
2905
- schedule :
2906
- $ref : ' #/definitions/backupSchedule'
2907
2897
obj :
2908
2898
properties :
2909
2899
provider :
2910
2900
properties :
2911
2901
linode :
2912
- additionalProperties : false
2913
2902
properties :
2914
2903
region :
2915
2904
description : The region of the bucket
@@ -2923,6 +2912,28 @@ properties:
2923
2912
description : The secret of the access key
2924
2913
$ref : ' #/definitions/wordCharacterPattern'
2925
2914
x-secret : ' '
2915
+ buckets :
2916
+ properties :
2917
+ loki :
2918
+ type : string
2919
+ $ref : ' #/definitions/wordCharacterPattern'
2920
+ default : loki
2921
+ cnpg :
2922
+ type : string
2923
+ $ref : ' #/definitions/wordCharacterPattern'
2924
+ default : cnpg
2925
+ velero :
2926
+ type : string
2927
+ $ref : ' #/definitions/wordCharacterPattern'
2928
+ default : velero
2929
+ harbor :
2930
+ type : string
2931
+ $ref : ' #/definitions/wordCharacterPattern'
2932
+ default : harbor
2933
+ tempo :
2934
+ type : string
2935
+ $ref : ' #/definitions/wordCharacterPattern'
2936
+ default : tempo
2926
2937
required :
2927
2938
- region
2928
2939
- accessKeyId
@@ -2934,28 +2945,6 @@ properties:
2934
2945
- linode
2935
2946
- disabled
2936
2947
default : disabled
2937
- buckets :
2938
- properties :
2939
- loki :
2940
- type : string
2941
- $ref : ' #/definitions/wordCharacterPattern'
2942
- default : loki
2943
- cnpg :
2944
- type : string
2945
- $ref : ' #/definitions/wordCharacterPattern'
2946
- default : cnpg
2947
- velero :
2948
- type : string
2949
- $ref : ' #/definitions/wordCharacterPattern'
2950
- default : velero
2951
- harbor :
2952
- type : string
2953
- $ref : ' #/definitions/wordCharacterPattern'
2954
- default : harbor
2955
- tempo :
2956
- type : string
2957
- $ref : ' #/definitions/wordCharacterPattern'
2958
- default : tempo
2959
2948
databases :
2960
2949
properties :
2961
2950
keycloak :
Original file line number Diff line number Diff line change 3
3
{{- $cnpg := $v.apps.cnpg }}
4
4
{{- $gdb := $v.databases.gitea }}
5
5
{{- $obj := $v.obj.provider }}
6
- {{- $bu := $v.obj.buckets }}
7
6
{{- $b := $v.platformBackups.database.gitea }}
8
7
9
8
name: gitea-db
@@ -20,12 +19,12 @@ backup:
20
19
type: {{ $obj.type }}
21
20
{{- if eq $obj.type "minioLocal" }}
22
21
minioLocal:
23
- destinationPath: "s3://{{ $bu. cnpg }} /gitea"
22
+ destinationPath: "s3://cnpg/gitea"
24
23
{{- end }}
25
24
{{- if eq $obj.type "linode" }}
26
25
linode:
27
- destinationPath: "s3://{{ $bu .cnpg }}/gitea"
28
- endpointURL: https://{{ $bu .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
26
+ destinationPath: "s3://{{ $obj.linode.buckets .cnpg }}/gitea"
27
+ endpointURL: https://{{ $obj.linode.buckets .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
29
28
{{- end }}
30
29
{{- end }}
31
30
{{- end }}
Original file line number Diff line number Diff line change 2
2
{{- $hdb := $v.databases.harbor }}
3
3
{{- $cnpg := $v.apps.cnpg }}
4
4
{{- $obj := $v.obj.provider }}
5
- {{- $bu := $v.obj.buckets }}
6
5
{{- $b := $v.platformBackups.database.harbor }}
7
6
8
7
name: harbor-otomi-db
@@ -19,12 +18,12 @@ backup:
19
18
type: {{ $obj.type }}
20
19
{{- if eq $obj.type "minioLocal" }}
21
20
minioLocal:
22
- destinationPath: "s3://{{ $bu. cnpg }} /harbor"
21
+ destinationPath: "s3://cnpg/harbor"
23
22
{{- end }}
24
23
{{- if eq $obj.type "linode" }}
25
24
linode:
26
- destinationPath: "s3://{{ $bu .cnpg }}/harbor"
27
- endpointURL: https://{{ $bu .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
25
+ destinationPath: "s3://{{ $obj.linode.buckets .cnpg }}/harbor"
26
+ endpointURL: https://{{ $obj.linode.buckets .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
28
27
{{- end }}
29
28
{{- end }}
30
29
{{- end }}
Original file line number Diff line number Diff line change 2
2
{{- $h := $v.apps.harbor }}
3
3
{{- $db := $v.databases.harbor }}
4
4
{{- $obj := $v.obj.provider }}
5
- {{- $bu := $v.obj.buckets }}
6
5
{{- $harborDomain := printf "harbor.%s" $v.cluster.domainSuffix }}
7
6
{{- $notaryDomain := printf "notary.%s" $v.cluster.domainSuffix }}
8
7
{{- $harborSecretName := ($harborDomain | replace "." "-") }}
@@ -183,7 +182,7 @@ persistence:
183
182
v4auth: true
184
183
{{- end }}
185
184
{{- if eq $obj.type "linode" }}
186
- bucket: {{ $bu .harbor }}
185
+ bucket: {{ $obj.linode.buckets .harbor }}
187
186
regionendpoint: https://{{ $obj.linode.region }}.linodeobjects.com
188
187
accesskey: {{ $obj.linode.accessKeyId }}
189
188
secretkey: {{ $obj.linode.secretAccessKey }}
Original file line number Diff line number Diff line change 3
3
{{- $cnpg := $v.apps.cnpg }}
4
4
{{- $kdb := $v.databases.keycloak }}
5
5
{{- $obj := $v.obj.provider }}
6
- {{- $bu := $v.obj.buckets }}
7
6
{{- $b := $v.platformBackups.database.keycloak }}
8
7
9
8
name: keycloak-db
@@ -20,12 +19,12 @@ backup:
20
19
type: {{ $obj.type }}
21
20
{{- if eq $obj.type "minioLocal" }}
22
21
minioLocal:
23
- destinationPath: "s3://{{ $bu. cnpg }} /keycloak"
22
+ destinationPath: "s3://cnpg/keycloak"
24
23
{{- end }}
25
24
{{- if eq $obj.type "linode" }}
26
25
linode:
27
- destinationPath: "s3://{{ $bu .cnpg }}/keycloak"
28
- endpointURL: https://{{ $bu .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
26
+ destinationPath: "s3://{{ $obj.linode.buckets .cnpg }}/keycloak"
27
+ endpointURL: https://{{ $obj.linode.buckets .cnpg }}.{{ $obj.linode.region }}.linodeobjects.com
29
28
{{- end }}
30
29
{{- end }}
31
30
{{- end }}
Original file line number Diff line number Diff line change 1
1
{{- $v := .Values -}}
2
2
{{- $l:= $v.apps.loki }}
3
3
{{- $obj := $v.obj.provider }}
4
- {{- $bu := $v.obj.buckets }}
5
4
{{- $useObjectStorage := eq $obj.type "minioLocal" "linode" }}
6
5
7
6
nameOverride: loki
@@ -51,11 +50,11 @@ loki:
51
50
{{- if $useObjectStorage }}
52
51
aws:
53
52
{{- if eq $obj.type "minioLocal" }}
54
- s3: http://otomi-admin:{{ $v.otomi.adminPassword }}@minio.minio.svc.cluster.local.:9000/{{ $bu. loki }}
53
+ s3: http://otomi-admin:{{ $v.otomi.adminPassword }}@minio.minio.svc.cluster.local.:9000/loki
55
54
s3forcepathstyle: true
56
55
{{- end }}
57
56
{{- if eq $obj.type "linode" }}
58
- s3: https://{{ $obj.linode.accessKeyId }}:{{ $obj.linode.secretAccessKey }}@{{ $obj.linode.region }}.linodeobjects.com/{{ $bu .loki }}
57
+ s3: https://{{ $obj.linode.accessKeyId }}:{{ $obj.linode.secretAccessKey }}@{{ $obj.linode.region }}.linodeobjects.com/{{ $obj.linode.buckets .loki }}
59
58
s3forcepathstyle: true
60
59
sse_encryption: false
61
60
http_config:
Original file line number Diff line number Diff line change 1
1
{{- $v := .Values -}}
2
2
{{- $t:= $v.apps.tempo }}
3
3
{{- $obj := $v.obj.provider }}
4
- {{- $bu := $v.obj.buckets }}
5
4
6
5
7
6
fullnameOverride: tempo
@@ -80,7 +79,7 @@ storage:
80
79
{{- end }}
81
80
{{- if eq $obj.type "linode" }}
82
81
s3:
83
- bucket: {{ $bu .tempo }}
82
+ bucket: {{ $obj.linode.buckets .tempo }}
84
83
endpoint: {{ $obj.linode.region }}.linodeobjects.com
85
84
access_key: {{ $obj.linode.accessKeyId }}
86
85
secret_key: {{ $obj.linode.secretAccessKey }}
Original file line number Diff line number Diff line change 1
1
{{- $v := .Values }}
2
2
{{- $vl := $v.apps.velero }}
3
3
{{- $obj := $v.obj.provider }}
4
- {{- $bu := $v.obj.buckets }}
5
4
{{- $b := $v.platformBackups.persistentVolumes }}
6
5
7
6
resources: {{- $vl.resources | toYaml | nindent 2 }}
@@ -64,7 +63,7 @@ configuration:
64
63
- name: apl-minio
65
64
provider: aws
66
65
default: true
67
- bucket: {{ $bu. velero}}
66
+ bucket: velero
68
67
config:
69
68
s3Url: http://minio.minio.svc.cluster.local:9000
70
69
publicUrl: http://minio.minio.svc.cluster.local:9000
@@ -76,7 +75,7 @@ configuration:
76
75
- name: apl-linode
77
76
provider: aws
78
77
default: true
79
- bucket: {{ $bu .velero }}
78
+ bucket: {{ $obj.linode.buckets .velero }}
80
79
config:
81
80
s3Url: https://{{ $obj.linode.region }}.linodeobjects.com
82
81
region: {{ $obj.linode.region }}
@@ -131,21 +130,4 @@ deployNodeAgent: {{ $vl.restic.enabled }}
131
130
nodeAgent:
132
131
podSecurityContext:
133
132
runAsUser: 1338
134
- fsGroup: 1338
135
-
136
- {{- if $b.gitea.enabled }}
137
- schedules:
138
- gitea:
139
- disabled: false
140
- schedule: {{ $b.gitea.schedule }}
141
- useOwnerReferencesInBackup: false
142
- template:
143
- ttl: {{ $b.gitea.ttl }}
144
- includedNamespaces:
145
- - gitea
146
- includedResources:
147
- - pv
148
- - pvc
149
- includeClusterResources: true
150
- storageLocation: apl
151
- {{- end }}
133
+ fsGroup: 1338
You can’t perform that action at this time.
0 commit comments