jx icon indicating copy to clipboard operation
jx copied to clipboard

OCI support not working in jx gitops helm release command

Open cizara opened this issue 3 years ago • 0 comments

Running jx gitops helm release with the --oci --no-oci-login parameters throws the following error:

jx gitops helm release --oci --no-oci-login
WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set
releasing chart test-chart
error: failed to create OCI chart release in dir charts/test-chart: failed to save chart https://us-central1-docker.pkg.dev/xxxxxxxxxx/yyyyyyyyyy/test-chart:0.0.6 in charts/test-chart: failed to run 'helm chart save . https://us-central1-docker.pkg.dev/xxxxxxxxxx/yyyyyyyyyy/test-chart:0.0.6' command in directory 'charts/test-chart', output: 'Error: unknown command "chart" for "helm"
Run 'helm --help' for usage.'

The command is trying to do helm chart save with an OCI registry, but this command was replaced to helm package in helm version 3.7 (https://github.com/helm/helm/releases/tag/v3.7.0)

cizara avatar Jul 19 '22 10:07 cizara