Skip to content

Commit 61124ce

Browse files
Alexandre CatalanAlexandre Catalan
authored andcommitted
docs(container-registry): add valid proxy-cache examples for artifactory create
Add required proxy credentials flags to the Docker Hub proxy-cache example to prevent backend API errors, while keeping examples for both unauthenticated and authenticated (stdin and file) proxy creation. Regenerate command documentation. Relates to STACKITCRE-382
1 parent ae827f7 commit 61124ce

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎docs/stackit_container-registry_artifactory_create.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ stackit container-registry artifactory create [flags]
1616
Create an artifactory with name "my-registry"
1717
$ stackit container-registry artifactory create --name my-registry
1818
19-
Create a proxy-cache artifactory for Docker Hub
20-
$ stackit container-registry artifactory create --name docker-proxy --proxy-url https://registry-1.docker.io --proxy-registry-type docker-hub
19+
Create a proxy-cache artifactory without credentials
20+
$ stackit container-registry artifactory create --name my-proxy --proxy-url https://custom-registry.com --proxy-registry-type harbor
21+
22+
Create a proxy-cache artifactory for Docker Hub, reading secret from stdin
23+
$ stackit container-registry artifactory create --name docker-proxy --proxy-url https://registry-1.docker.io --proxy-registry-type docker-hub --proxy-access-key my-user --proxy-access-secret -
2124
2225
Create a proxy-cache artifactory with credentials, reading secret from stdin
2326
$ stackit container-registry artifactory create --name my-proxy --proxy-url https://custom-registry.com --proxy-registry-type harbor --proxy-access-key my-user --proxy-access-secret -

‎internal/cmd/container-registry/artifactory/create/create.go‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
5252
"$ stackit container-registry artifactory create --name my-registry",
5353
),
5454
examples.NewExample(
55-
`Create a proxy-cache artifactory for Docker Hub`,
56-
"$ stackit container-registry artifactory create --name docker-proxy --proxy-url https://registry-1.docker.io --proxy-registry-type docker-hub",
55+
`Create a proxy-cache artifactory without credentials`,
56+
"$ stackit container-registry artifactory create --name my-proxy --proxy-url https://custom-registry.com --proxy-registry-type harbor",
57+
),
58+
examples.NewExample(
59+
`Create a proxy-cache artifactory for Docker Hub, reading secret from stdin`,
60+
"$ stackit container-registry artifactory create --name docker-proxy --proxy-url https://registry-1.docker.io --proxy-registry-type docker-hub --proxy-access-key my-user --proxy-access-secret -",
5761
),
5862
examples.NewExample(
5963
`Create a proxy-cache artifactory with credentials, reading secret from stdin`,

0 commit comments

Comments
 (0)