Skip to content

Commit 764701c

Browse files
committed
fix(config): accept 'gcs' in Validate() storage-driver switch
The struct + builder switch knew about GCS but Validate's allow-list didn't, so the engine refused to start with driver=gcs ('unknown storage.driver: "gcs"'). Adding the case + a bucket-required check parallels the existing s3/local entries.
1 parent 4e56a0f commit 764701c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ func (c Config) Validate() error {
327327
if c.Storage.S3.Bucket == "" || c.Storage.S3.Endpoint == "" {
328328
return errors.New("storage.s3 requires bucket and endpoint")
329329
}
330+
case "gcs":
331+
if c.Storage.GCS.Bucket == "" {
332+
return errors.New("storage.gcs.bucket is required when driver=gcs")
333+
}
330334
default:
331335
return fmt.Errorf("unknown storage.driver: %q", c.Storage.Driver)
332336
}

0 commit comments

Comments
 (0)