Title here
Summary here
Transfer a component version and upload its Helm chart into a Nexus helm hosted
repository, so that helm pull finds it.
helm-hosted and listed in its index.yamlHelm/v1 access on that repositoryEstimated time: ~10 minutes
helm-hostedhelm CLIAdd the credentials and one uploader rule for the chart resource to your
.ocmconfig in the working directory (merged with $HOME/.ocmconfig):
type: generic.config.ocm.software/v1
configurations:
- type: credentials.config.ocm.software
consumers:
- identity:
type: Wget
hostname: nexus.example.com
scheme: https
credentials:
- type: WgetCredentials/v1
username: <USERNAME>
password: <PASSWORD_OR_USER_TOKEN>
- type: nexus.uploader.transfer.config.ocm.software/v1alpha1
match: resource.access.isType("LocalBlob") && resource.name == "chart"
url: https://nexus.example.com
repository: helm-hostedocm transfer cv ctf::./src//ocm.software/demo:1.0.0 ctf::./targetocm get cv ctf::./target//ocm.software/demo:1.0.0 -o yamlThe chart resource has this access:
access:
type: Helm/v1
helmRepository: https://nexus.example.com/repository/helm-hosted
helmChart: mychart:0.1.0Pull the chart with Helm:
helm pull mychart --version 0.1.0 --repo https://nexus.example.com/repository/helm-hosted<name>-<version>.tgz from its Chart.yaml and adds it
to index.yaml.path is not supported: Nexus decides where charts are stored.content of resource … is not a helm chartCause: The resource matched by a Helm repository uploader holds no packaged chart.
Fix: Narrow match to the chart resources, or route other resources to a raw
repository.
For credential and overwrite errors, see Troubleshooting.