chartmuseum2oci

command module
v0.0.0-...-187a2b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

Chartmuseum2OCI

Harbor supports two different ways to store the Helms charts data: 1. stored in Harbor registry storage directly via OCI API. 2. stored in Harbor hosted chartmuseum backend via chartmuseum's API.

From Harbor 2.6, Chartmuseum is deprecated and is removed from Harbor 2.8.

Chartmuseum 2 OCI tool purpose is to migrate Helm charts from Harbor Chartmuseum to Helm OCI registry. It copies Helm charts but don't delete them from Chartmuseum.

Requirements

  • Docker

Build

docker build -t goharbor/chartmuseum2oci .

Usage

docker run -ti --rm goharbor/chartmuseum2oci --url $HARBOR_URL --username $HARBOR_USER --password $HARBOR_PASSWORD
Project filtering

Using the option --project (can be specified multiple times), the migration can be limited to only a particular set of projects, instead of the default behaviour, which is "all at once".

docker run -ti --rm goharbor/chartmuseum2oci --url $HARBOR_URL --username $HARBOR_USER --password $HARBOR_PASSWORD --project pr1 --project pr2
Destination path

Using the option --destpath a subpath within the project can be specified, in which the charts will be pushed.

In this example, the charts will be pushed into $HARBOR_URL/$PROJECT/charts:

docker run -ti --rm goharbor/chartmuseum2oci --url $HARBOR_URL --username $HARBOR_USER --password $HARBOR_PASSWORD --destpath /charts

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL