From cb730c94b53bcd914e47a01619c07d74d3d35fbb Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Fri, 23 May 2025 11:39:10 +0200 Subject: [PATCH] Help users avoid specifying URL scheme an path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ve noticed that some users still include the URL scheme and full path when logging into an OCI registry, for example: ```sh helm registry login -u $OCI_REGISTRY_USER --password-stdin oci://ghcr.io/org/repo ``` This is no longer necessary and will not be supported in Helm v4. To guide users toward the correct usage, we should show an example of the ideal command. Signed-off-by: Benoit Tigeot --- pkg/cmd/registry_login.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cmd/registry_login.go b/pkg/cmd/registry_login.go index 1dfb3c798..2ee3f2649 100644 --- a/pkg/cmd/registry_login.go +++ b/pkg/cmd/registry_login.go @@ -33,6 +33,10 @@ import ( const registryLoginDesc = ` Authenticate to a remote registry. + +For example for Github Container Registry: + + echo "$GITHUB_TOKEN" | helm registry login ghcr.io -u $GITHUB_USER --password-stdin ` type registryLoginOptions struct {