Skip to content

Commit dfb1a31

Browse files
authored
feat(registry): add support for pl-waw (#1587)
1 parent 619b43f commit dfb1a31

13 files changed

+24
-24
lines changed

cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
image-id The unique ID of the Image
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:
1313
-h, --help help for delete

cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
image-id The unique ID of the Image
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:
1313
-h, --help help for get

cmd/scw/testdata/test-all-usage-registry-image-list-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[name] Filter by the Image name (exact match)
1212
[project-id] Filter by Project ID
1313
[organization-id] Filter by Organization ID
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1515

1616
FLAGS:
1717
-h, --help help for list

cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
image-id Image ID to update
1010
[visibility] A `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter (visibility_unknown | inherit | public | private)
11-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1212

1313
FLAGS:
1414
-h, --help help for update

cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[project-id] Project ID to use. If none is passed the default project ID will be used
1212
[is-public] Define the default visibility policy
1313
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1515

1616
FLAGS:
1717
-h, --help help for create

cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
namespace-id The unique ID of the Namespace
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:
1313
-h, --help help for delete

cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
namespace-id The unique ID of the Namespace
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:
1313
-h, --help help for get

cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[project-id] Filter by Project ID
1111
[name] Filter by the namespace name (exact match)
1212
[organization-id] Filter by Organization ID
13-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
13+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1414

1515
FLAGS:
1616
-h, --help help for list

cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARGS:
99
namespace-id Namespace ID to update
1010
[description] Define a description
1111
[is-public] Define the default visibility policy
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1313

1414
FLAGS:
1515
-h, --help help for update

cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
tag-id The unique ID of the tag
1010
[force] If two tags share the same digest the deletion will fail unless this parameter is set to true
11-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1212

1313
FLAGS:
1414
-h, --help help for delete

cmd/scw/testdata/test-all-usage-registry-tag-get-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
tag-id The unique ID of the Tag
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:
1313
-h, --help help for get

cmd/scw/testdata/test-all-usage-registry-tag-list-usage.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARGS:
99
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | name_asc | name_desc)
1010
image-id The unique ID of the image
1111
[name] Filter by the tag name (exact match)
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1313

1414
FLAGS:
1515
-h, --help help for list

internal/namespaces/registry/v1/registry_cli.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func registryNamespaceList() *core.Command {
126126
Deprecated: false,
127127
Positional: false,
128128
},
129-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
129+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
130130
},
131131
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
132132
request := args.(*registry.ListNamespacesRequest)
@@ -204,7 +204,7 @@ func registryNamespaceGet() *core.Command {
204204
Deprecated: false,
205205
Positional: true,
206206
},
207-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
207+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
208208
},
209209
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
210210
request := args.(*registry.GetNamespaceRequest)
@@ -250,7 +250,7 @@ func registryNamespaceCreate() *core.Command {
250250
Positional: false,
251251
},
252252
core.OrganizationIDArgSpec(),
253-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
253+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
254254
},
255255
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
256256
request := args.(*registry.CreateNamespaceRequest)
@@ -294,7 +294,7 @@ func registryNamespaceUpdate() *core.Command {
294294
Deprecated: false,
295295
Positional: false,
296296
},
297-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
297+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
298298
},
299299
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
300300
request := args.(*registry.UpdateNamespaceRequest)
@@ -324,7 +324,7 @@ func registryNamespaceDelete() *core.Command {
324324
Deprecated: false,
325325
Positional: true,
326326
},
327-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
327+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
328328
},
329329
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
330330
request := args.(*registry.DeleteNamespaceRequest)
@@ -383,7 +383,7 @@ func registryImageList() *core.Command {
383383
Deprecated: false,
384384
Positional: false,
385385
},
386-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
386+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
387387
},
388388
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
389389
request := args.(*registry.ListImagesRequest)
@@ -449,7 +449,7 @@ func registryImageGet() *core.Command {
449449
Deprecated: false,
450450
Positional: true,
451451
},
452-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
452+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
453453
},
454454
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
455455
request := args.(*registry.GetImageRequest)
@@ -487,7 +487,7 @@ func registryImageUpdate() *core.Command {
487487
Positional: false,
488488
EnumValues: []string{"visibility_unknown", "inherit", "public", "private"},
489489
},
490-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
490+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
491491
},
492492
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
493493
request := args.(*registry.UpdateImageRequest)
@@ -517,7 +517,7 @@ func registryImageDelete() *core.Command {
517517
Deprecated: false,
518518
Positional: true,
519519
},
520-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
520+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
521521
},
522522
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
523523
request := args.(*registry.DeleteImageRequest)
@@ -562,7 +562,7 @@ func registryTagList() *core.Command {
562562
Deprecated: false,
563563
Positional: false,
564564
},
565-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
565+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
566566
},
567567
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
568568
request := args.(*registry.ListTagsRequest)
@@ -596,7 +596,7 @@ func registryTagGet() *core.Command {
596596
Deprecated: false,
597597
Positional: true,
598598
},
599-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
599+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
600600
},
601601
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
602602
request := args.(*registry.GetTagRequest)
@@ -633,7 +633,7 @@ func registryTagDelete() *core.Command {
633633
Deprecated: false,
634634
Positional: false,
635635
},
636-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
636+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
637637
},
638638
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
639639
request := args.(*registry.DeleteTagRequest)

0 commit comments

Comments
 (0)