Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

helm-chart-publisher

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helm-chart-publisher

Scripts for pushing Helm chart to repository in Git

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-helm-chart-publisher

Build Status NPM

node package helm chart and publish to git repository plugin

Helm chart is an integral part of a project, more often its definition is placed as closest to code as possible.

In order to be able to develop both at the same time helm allows to do chart versioning.

This plugin packages the chart and leverages the possibility of using git repository as a helm repository.

Basic usage

  • add chart definition to helm foldder in your project directory
   ├── src                    
   ├── dist                    
   ├── helm                    
   │   └── your-app-name
   │       ├── templates
   │       ├── values.yaml
   │       └── Chart.yaml
   └── ...
  • add and configure plugin in package.json
{
    "scripts": {
        "helm-chart-publish": "helm-chart-publisher --projectName=<NAME-OF-YOUR-PROJECT>"
    }
}
  • run script
$ npm run helm-chart-publish -- --chart.version=1.0.3 --gitChartRepo.url=<HELM-CHART-GIT-URL> --gitChartRepo.username=<HELM-CHART-GIT-USERNAME> --gitChartRepo.password=<HELM-CHART-GIT-PASSWORD>

Requirements

Plugin requires helm client in version 2.x or 3.x to be installed.

Workflow

  • clone git repository where helm chart definitions are stored
  • init helm client
  • update chart dependencies
  • package chart
  • reindex helm chart repository
  • push changes to git repository

Parameters

ParameterDescriptionDefault valueFlagEnvironment variablepackage.json config property
Git chart repository URLURL to a git repository in which helm charts are stored. Accepts both ssh and https protocols.-gitChartRepo.url-helm-chart-publish.gitChartRepoUrl
Git usernameGit repository username-gitChartRepo.usernameHELM_CHART_PUBLISH_GIT_REPO_USERNAMEhelm-chart-publish.gitUsername
Git passwordGit repository password-gitChartRepo.passwordHELM_CHART_PUBLISH_GIT_REPO_PASSWORD-
Git repository working directoryDirectory in git repository where helm chart repository is stored/ (root folder of the repository)gitChartRepo.workDir-helm-chart-publish.gitChartRepoWorkDir
Chart versionVersion under which the chart will be publishedproject.versionchart.version--
Chart nameName of the chart (must be the same as name in chart valyes.yaml)project.namechart.name-helm-chart-publish.chartName
Chart definition pathWhere in the project chart definition is stored${projectDir}/helm/$chartNamechart.definitionPath-helm-chart-publish.chartDefinitionPath

Keywords

FAQs

Package last updated on 26 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc