Skip to content

Commit 662b181

Browse files
committed
fix: update storage config struct to match generated API types
the generated API types were updated with new fields for IcebergCatalog (MaxCatalogs, MaxNamespaces, MaxTables) and VectorBuckets. update the struct literal in storage.go to match the new type definition.
1 parent b243d48 commit 662b181

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/config/storage.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,22 @@ func (s *storage) ToUpdateStorageConfigBody() v1API.UpdateStorageConfigBody {
4646
if s.ImageTransformation != nil {
4747
body.Features = &struct {
4848
IcebergCatalog *struct {
49-
Enabled bool `json:"enabled"`
49+
Enabled bool `json:"enabled"`
50+
MaxCatalogs int `json:"maxCatalogs"`
51+
MaxNamespaces int `json:"maxNamespaces"`
52+
MaxTables int `json:"maxTables"`
5053
} `json:"icebergCatalog,omitempty"`
5154
ImageTransformation struct {
5255
Enabled bool `json:"enabled"`
5356
} `json:"imageTransformation"`
5457
S3Protocol struct {
5558
Enabled bool `json:"enabled"`
5659
} `json:"s3Protocol"`
60+
VectorBuckets *struct {
61+
Enabled bool `json:"enabled"`
62+
MaxBuckets int `json:"maxBuckets"`
63+
MaxIndexes int `json:"maxIndexes"`
64+
} `json:"vectorBuckets,omitempty"`
5765
}{}
5866
body.Features.ImageTransformation.Enabled = s.ImageTransformation.Enabled
5967
}

0 commit comments

Comments
 (0)