npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

helm-chart-publisher

v1.0.0

Published

Scripts for pushing Helm chart to repository in Git

Downloads

108

Readme

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

Parameter | Description | Default value | Flag | Environment variable | package.json config property --------- | ----------- | ------------- | ----- | -------------------- | --------------------- Git chart repository URL | URL to a git repository in which helm charts are stored. Accepts both ssh and https protocols. | - | gitChartRepo.url | - | helm-chart-publish.gitChartRepoUrl Git username | Git repository username | - | gitChartRepo.username | HELM_CHART_PUBLISH_GIT_REPO_USERNAME | helm-chart-publish.gitUsername Git password | Git repository password | - | gitChartRepo.password | HELM_CHART_PUBLISH_GIT_REPO_PASSWORD | - Git repository working directory | Directory in git repository where helm chart repository is stored | / (root folder of the repository) | gitChartRepo.workDir | - | helm-chart-publish.gitChartRepoWorkDir Chart version | Version under which the chart will be published | project.version | chart.version | - | - Chart name | Name of the chart (must be the same as name in chart valyes.yaml) | project.name | chart.name | - | helm-chart-publish.chartName Chart definition path | Where in the project chart definition is stored | ${projectDir}/helm/$chartName | chart.definitionPath | - | helm-chart-publish.chartDefinitionPath