Skip to content

Commit 8eef1dc

Browse files
author
Simon Emms
committed
[installer]: add backup command for in-cluster minio
1 parent 3640fea commit 8eef1dc

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

install/installer/cmd/testdata/render/backup-labels/output.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8159,6 +8159,7 @@ spec:
81598159
kots.io/backup: velero
81608160
annotations:
81618161
checksum/credentials-secret: 254e39ef7087b8d977946ed0027240eda9a1c7f64ae430fca5644a50b23cece3
8162+
backup.velero.io/backup-volumes: data
81628163
spec:
81638164

81648165
serviceAccountName: minio

install/installer/cmd/testdata/render/customization/output.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8535,6 +8535,7 @@ spec:
85358535
hello: world
85368536
annotations:
85378537
checksum/credentials-secret: 254e39ef7087b8d977946ed0027240eda9a1c7f64ae430fca5644a50b23cece3
8538+
backup.velero.io/backup-volumes: data
85388539
hello: world
85398540
spec:
85408541

install/installer/cmd/testdata/render/external-registry/output.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7822,6 +7822,7 @@ spec:
78227822
app.kubernetes.io/managed-by: Helm
78237823
annotations:
78247824
checksum/credentials-secret: 254e39ef7087b8d977946ed0027240eda9a1c7f64ae430fca5644a50b23cece3
7825+
backup.velero.io/backup-volumes: data
78257826
spec:
78267827

78277828
serviceAccountName: minio

install/installer/cmd/testdata/render/minimal/output.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8102,6 +8102,7 @@ spec:
81028102
app.kubernetes.io/managed-by: Helm
81038103
annotations:
81048104
checksum/credentials-secret: 254e39ef7087b8d977946ed0027240eda9a1c7f64ae430fca5644a50b23cece3
8105+
backup.velero.io/backup-volumes: data
81058106
spec:
81068107

81078108
serviceAccountName: minio

install/installer/cmd/testdata/render/statefulset-customization/output.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8116,6 +8116,7 @@ spec:
81168116
app.kubernetes.io/managed-by: Helm
81178117
annotations:
81188118
checksum/credentials-secret: 254e39ef7087b8d977946ed0027240eda9a1c7f64ae430fca5644a50b23cece3
8119+
backup.velero.io/backup-volumes: data
81198120
spec:
81208121

81218122
serviceAccountName: minio

install/installer/pkg/components/minio/incluster/minio.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package incluster
66

77
import (
88
"fmt"
9+
910
"github.com/gitpod-io/gitpod/installer/pkg/cluster"
1011
"github.com/gitpod-io/gitpod/installer/pkg/common"
1112
"github.com/gitpod-io/gitpod/installer/pkg/helm"
@@ -35,6 +36,9 @@ var Helm = func(apiPort int32, consolePort int32, commonHelmValues []string) com
3536
helm.KeyValue("minio.auth.rootPassword", cfg.Values.StorageSecretKey),
3637
helm.KeyValue("minio.service.ports.api", fmt.Sprintf("%d", apiPort)),
3738
helm.KeyValue("minio.service.ports.console", fmt.Sprintf("%d", consolePort)),
39+
40+
// Backup the volume
41+
helm.KeyValue("minio.podAnnotations.backup\\.velero\\.io/backup-volumes", "data"),
3842
},
3943
commonHelmValues...,
4044
),

0 commit comments

Comments
 (0)