From dfb1a31adb9450694069897d8fbad05862ffcc71 Mon Sep 17 00:00:00 2001 From: Scaleway Bot Date: Mon, 7 Dec 2020 16:33:44 +0100 Subject: [PATCH] feat(registry): add support for pl-waw (#1587) --- ...l-usage-registry-image-delete-usage.golden | 2 +- ...-all-usage-registry-image-get-usage.golden | 2 +- ...all-usage-registry-image-list-usage.golden | 2 +- ...l-usage-registry-image-update-usage.golden | 2 +- ...age-registry-namespace-create-usage.golden | 2 +- ...age-registry-namespace-delete-usage.golden | 2 +- ...-usage-registry-namespace-get-usage.golden | 2 +- ...usage-registry-namespace-list-usage.golden | 2 +- ...age-registry-namespace-update-usage.golden | 2 +- ...all-usage-registry-tag-delete-usage.golden | 2 +- ...st-all-usage-registry-tag-get-usage.golden | 2 +- ...t-all-usage-registry-tag-list-usage.golden | 2 +- .../namespaces/registry/v1/registry_cli.go | 24 +++++++++---------- 13 files changed, 24 insertions(+), 24 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden b/cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden index eaf7bde047..7f7ba574f9 100644 --- a/cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-image-delete-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: image-id The unique ID of the Image - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for delete diff --git a/cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden b/cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden index 54207ac1e9..a622aadffc 100644 --- a/cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-image-get-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: image-id The unique ID of the Image - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for get diff --git a/cmd/scw/testdata/test-all-usage-registry-image-list-usage.golden b/cmd/scw/testdata/test-all-usage-registry-image-list-usage.golden index 58fc3fc4db..652e386b43 100644 --- a/cmd/scw/testdata/test-all-usage-registry-image-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-image-list-usage.golden @@ -11,7 +11,7 @@ ARGS: [name] Filter by the Image name (exact match) [project-id] Filter by Project ID [organization-id] Filter by Organization ID - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for list diff --git a/cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden b/cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden index 6724821459..ed9744896c 100644 --- a/cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-image-update-usage.golden @@ -8,7 +8,7 @@ USAGE: ARGS: image-id Image ID to update [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) - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for update diff --git a/cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden b/cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden index 9cf8ad7761..f90a5c11eb 100644 --- a/cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-namespace-create-usage.golden @@ -11,7 +11,7 @@ ARGS: [project-id] Project ID to use. If none is passed the default project ID will be used [is-public] Define the default visibility policy [organization-id] Organization ID to use. If none is passed the default organization ID will be used - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden b/cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden index d2de9672a7..58fabe4eb3 100644 --- a/cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-namespace-delete-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: namespace-id The unique ID of the Namespace - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for delete diff --git a/cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden b/cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden index 555ba5d991..dbf7824180 100644 --- a/cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-namespace-get-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: namespace-id The unique ID of the Namespace - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for get diff --git a/cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden b/cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden index 5dcfc410fd..8a5fd86abe 100644 --- a/cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-namespace-list-usage.golden @@ -10,7 +10,7 @@ ARGS: [project-id] Filter by Project ID [name] Filter by the namespace name (exact match) [organization-id] Filter by Organization ID - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for list diff --git a/cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden b/cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden index d819bf8e9a..b318102e40 100644 --- a/cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-namespace-update-usage.golden @@ -9,7 +9,7 @@ ARGS: namespace-id Namespace ID to update [description] Define a description [is-public] Define the default visibility policy - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for update diff --git a/cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden b/cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden index 7133b214d8..4681d525ba 100644 --- a/cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden @@ -8,7 +8,7 @@ USAGE: ARGS: tag-id The unique ID of the tag [force] If two tags share the same digest the deletion will fail unless this parameter is set to true - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for delete diff --git a/cmd/scw/testdata/test-all-usage-registry-tag-get-usage.golden b/cmd/scw/testdata/test-all-usage-registry-tag-get-usage.golden index bb64f69e80..b62112f226 100644 --- a/cmd/scw/testdata/test-all-usage-registry-tag-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-tag-get-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: tag-id The unique ID of the Tag - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for get diff --git a/cmd/scw/testdata/test-all-usage-registry-tag-list-usage.golden b/cmd/scw/testdata/test-all-usage-registry-tag-list-usage.golden index 30fb64a862..c2e69da963 100644 --- a/cmd/scw/testdata/test-all-usage-registry-tag-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-registry-tag-list-usage.golden @@ -9,7 +9,7 @@ ARGS: [order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | name_asc | name_desc) image-id The unique ID of the image [name] Filter by the tag name (exact match) - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for list diff --git a/internal/namespaces/registry/v1/registry_cli.go b/internal/namespaces/registry/v1/registry_cli.go index 66d74c69c5..30f6156b84 100644 --- a/internal/namespaces/registry/v1/registry_cli.go +++ b/internal/namespaces/registry/v1/registry_cli.go @@ -126,7 +126,7 @@ func registryNamespaceList() *core.Command { Deprecated: false, Positional: false, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.ListNamespacesRequest) @@ -204,7 +204,7 @@ func registryNamespaceGet() *core.Command { Deprecated: false, Positional: true, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.GetNamespaceRequest) @@ -250,7 +250,7 @@ func registryNamespaceCreate() *core.Command { Positional: false, }, core.OrganizationIDArgSpec(), - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.CreateNamespaceRequest) @@ -294,7 +294,7 @@ func registryNamespaceUpdate() *core.Command { Deprecated: false, Positional: false, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.UpdateNamespaceRequest) @@ -324,7 +324,7 @@ func registryNamespaceDelete() *core.Command { Deprecated: false, Positional: true, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.DeleteNamespaceRequest) @@ -383,7 +383,7 @@ func registryImageList() *core.Command { Deprecated: false, Positional: false, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.ListImagesRequest) @@ -449,7 +449,7 @@ func registryImageGet() *core.Command { Deprecated: false, Positional: true, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.GetImageRequest) @@ -487,7 +487,7 @@ func registryImageUpdate() *core.Command { Positional: false, EnumValues: []string{"visibility_unknown", "inherit", "public", "private"}, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.UpdateImageRequest) @@ -517,7 +517,7 @@ func registryImageDelete() *core.Command { Deprecated: false, Positional: true, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.DeleteImageRequest) @@ -562,7 +562,7 @@ func registryTagList() *core.Command { Deprecated: false, Positional: false, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.ListTagsRequest) @@ -596,7 +596,7 @@ func registryTagGet() *core.Command { Deprecated: false, Positional: true, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.GetTagRequest) @@ -633,7 +633,7 @@ func registryTagDelete() *core.Command { Deprecated: false, Positional: false, }, - core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*registry.DeleteTagRequest)