Title here
Summary here
Transfer a component version and upload its Helm chart into an Artifactory helm
repository, so that helm pull finds it.
helm-localHelm/v1 access on that repositoryEstimated time: ~10 minutes
helm-localhelm 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: myorg.jfrog.io
scheme: https
credentials:
- type: WgetCredentials/v1
identityToken: <ARTIFACTORY_IDENTITY_TOKEN>
- type: artifactory.uploader.transfer.config.ocm.software/v1alpha1
match: resource.access.isType("LocalBlob") && resource.name == "chart"
url: https://myorg.jfrog.io
repository: helm-localocm 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://myorg.jfrog.io/artifactory/api/helm/helm-local
helmChart: mychart:0.1.0Pull the chart with Helm:
helm pull mychart --version 0.1.0 --repo https://myorg.jfrog.io/artifactory/api/helm/helm-local<component>/<component version>/<resource>-<resource version>.tgz.
A custom path must end in .tgz.reused helm chart content already stored in the helm repository.content of resource … is not a helm chartCause: The resource matched by a Helm repository uploader holds no packaged chart. Artifactory deletes the uploaded file again.
Fix: Narrow match to the chart resources, or route other resources to a generic
repository.
For credential and overwrite errors, see Troubleshooting.