Skip to content

Commit 1f45c83

Browse files
kiwicoppleavalletesweatybridge
authored
chore: sync API types from infrastructure (#3828)
* chore: sync API types from infrastructure * chore: update client types --------- Co-authored-by: avallete <[email protected]> Co-authored-by: Qiao Han <[email protected]>
1 parent 5713d20 commit 1f45c83

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

pkg/api/types.gen.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/storage.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ func (s *storage) ToUpdateStorageConfigBody() v1API.UpdateStorageConfigBody {
4545
// When local config is not set, we assume platform defaults should not change
4646
if s.ImageTransformation != nil {
4747
body.Features = &struct {
48+
IcebergCatalog *struct {
49+
Enabled bool `json:"enabled"`
50+
} `json:"icebergCatalog,omitempty"`
4851
ImageTransformation struct {
49-
Enabled bool "json:\"enabled\""
50-
} "json:\"imageTransformation\""
52+
Enabled bool `json:"enabled"`
53+
} `json:"imageTransformation"`
5154
S3Protocol struct {
52-
Enabled bool "json:\"enabled\""
53-
} "json:\"s3Protocol\""
55+
Enabled bool `json:"enabled"`
56+
} `json:"s3Protocol"`
5457
}{}
5558
body.Features.ImageTransformation.Enabled = s.ImageTransformation.Enabled
5659
}

pkg/config/updater_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,15 @@ func TestUpdateStorageConfig(t *testing.T) {
223223
mockStorage := v1API.StorageConfigResponse{
224224
FileSizeLimit: 100,
225225
Features: struct {
226+
IcebergCatalog *struct {
227+
Enabled bool `json:"enabled"`
228+
} `json:"icebergCatalog,omitempty"`
226229
ImageTransformation struct {
227-
Enabled bool "json:\"enabled\""
228-
} "json:\"imageTransformation\""
230+
Enabled bool `json:"enabled"`
231+
} `json:"imageTransformation"`
229232
S3Protocol struct {
230-
Enabled bool "json:\"enabled\""
231-
} "json:\"s3Protocol\""
233+
Enabled bool `json:"enabled"`
234+
} `json:"s3Protocol"`
232235
}{},
233236
}
234237
mockStorage.Features.ImageTransformation.Enabled = true

0 commit comments

Comments
 (0)