VMware Hosted Registry is not working with helm version 4.0.4
search cancel

VMware Hosted Registry is not working with helm version 4.0.4

book

Article ID: 422547

calendar_today

Updated On:

Products

Bitnami Premium (Bitnami Secure Images)

Issue/Introduction

Running helm registry login [host] [flags] with helm 4, results in the following error: 

#cat "_json_key" | helm registry login -u _json_key --password_stdin us-east1-docker.pkg.dev/vmw-app-catalog/YOUR_HOSTED_REGISTRY/charts/photon-5

Error: invalid reference: invalid registry us-east1-docker.pkg.dev/vmw-app-catalog/YOUR_HOSTED_REGISTRY/charts/photon-5

Environment

Bitnami Secure Images

Helm client 4.x

Cause

The Broadcom techdoc for getting started with Bitnami Secure Images is not updated for Helm 4.x. The instructions currently only cover Helm >3.8.0. 

Breaking changes in Helm 4.0: 

"Registry login does not accept full URLs

The helm registry login command must be done with the domain name only in v4. This is so login can be scoped at different levels on a registry in the future."

Resolution

When using helm 4.x., omit the full path as recommended for helm 3.8.0 and run: 

helm registry login us-east1-docker.pkg.dev

Additional Information

The official "Using Helm" docs have not yet been updated for v4. 

When upgrading helm client to helm v4, it is recommended that users review the helm v4 overview docs.