Skip to content

Commit 43ebf32

Browse files
committed
feat: enable gcs
1 parent e10f368 commit 43ebf32

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

das/factory.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ func CreateDAComponentsForDaserver(
169169
// Check config requirements
170170
if !config.LocalDBStorage.Enable &&
171171
!config.LocalFileStorage.Enable &&
172-
!config.S3Storage.Enable {
172+
!config.S3Storage.Enable &&
173+
!config.GoogleCloudStorage.Enable {
173174
return nil, nil, nil, nil, nil, errors.New("At least one of --data-availability.(local-db-storage|local-file-storage|s3-storage) must be enabled.")
174175
}
175176
// Done checking config requirements

das/google_cloud_storage_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ func (gcs *GoogleCloudStorageService) HealthCheck(ctx context.Context) error {
185185
// check if we have bucket permissions
186186
permissions := []string{
187187
"storage.buckets.get",
188-
"storage.buckets.list",
188+
//"storage.buckets.list",
189189
"storage.objects.create",
190190
"storage.objects.delete",
191191
"storage.objects.list",
192-
"storage.objects.get",
192+
//"storage.objects.get",
193193
}
194194
perms, err := bucket.IAM().TestPermissions(ctx, permissions)
195195
if err != nil {

0 commit comments

Comments
 (0)