helm-charts

0.1.3 • Public • Published

helm-charts

This utility helps to build and publish Helm charts to a raw Nexus repository.

It addresses issues with hosting helm charts on Nexus which currently doesn't support Helm repos.

Usage

Prerequisites: NodeJS, helm.

Standalone

# Install the utility 
npm i -g helm-charts
 
# Builds all charts from the ./charts directory, places them in the ./charts-output directory and generates a repo index. 
helm-charts build --source ./charts
 
# Publishes all charts from the ./charts-output directory to a raw Nexus repo available at https://some.nexus.example.com/repository/helm-raw/charts 
helm-charts publish --repository https://some.nexus.example.com/repository/helm-raw/charts --username <REPO_USER> --password <REPO_PASS>

The chart publishing mechanism puts its best efforts to resolve possible charts versioning conflicts. When the chart that's about to be added already exists in the remote repo:

  • it is skipped - when they both have the same content (sha256 checksum matches).
  • an error is raised - when their content is different.

NPM-based

  1. Install the utility in your project.

    # Install the utility 
    npm i --save-dev helm-charts
  2. Put the following in your package.json:

    {
      "scripts": {
        "helm-charts:build": "helm-charts build",
        "helm-charts:publish": "helm-charts publish --repository https://some.nexus.example.com/repository/helm-raw/charts"
      }
    }
  3. Run it as follows:

    npm run helm-charts:build
    npm run helm-charts:publish -- --username <REPO_USER> --password <REPO_PASS>

Package Sidebar

Install

npm i helm-charts

Weekly Downloads

40

Version

0.1.3

License

MIT

Unpacked Size

23 kB

Total Files

11

Last publish

Collaborators

  • lzymek
  • machmiel