Skip to content

Commit 6015def

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Allow blobQuota to be configured
Previously, this was hardcoded to 5GiB but needs to be configurable for Gitpod SaaS.
1 parent b2d2423 commit 6015def

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

install/installer/pkg/common/storage.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ func StorageConfig(context *RenderContext) storageconfig.StorageConfig {
9393
}
9494
// 5 GiB
9595
res.BlobQuota = 5 * 1024 * 1024 * 1024
96+
if context.Config.ObjectStorage.BlobQuota != nil {
97+
res.BlobQuota = *context.Config.ObjectStorage.BlobQuota
98+
}
9699

97100
_ = context.WithExperimental(func(ucfg *experimental.Config) error {
98101
if ucfg.Workspace != nil {

install/installer/pkg/config/v1/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ type ObjectStorage struct {
142142
CloudStorage *ObjectStorageCloudStorage `json:"cloudStorage,omitempty"`
143143
Azure *ObjectStorageAzure `json:"azure,omitempty"`
144144
MaximumBackupCount *int `json:"maximumBackupCount,omitempty"`
145+
BlobQuota *int64 `json:"blobQuota,omitempty"`
145146
}
146147

147148
type ObjectStorageS3 struct {

0 commit comments

Comments
 (0)