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

@williammarsman/k8s-helm

v0.1.5

Published

binaries for the helm command-line tool

Downloads

10

Readme

helm-npm

Installs kubernetes-helm3 as a dependency wrapped by npm.

Why?

I would like to package helm-charts with npm projects, and provide a way of generating the chart using an npm command, to reduce the number of tools developers and CICD engines are required to install.

Many of the teams I work on do not have access to a shared package manager like gofish, due to security policies, but however we do have our own private npm repository.

What's included?

This package includes pre-compiled helm-binaries for helm version: v3.0.0-beta.3.

These binaries can be found in bin/platform/ with their original contents included when I downloaded them from this helm release page.

For verification, these files can be compared against the helm release checksum.

The pre-compiled helm-binaries included are for the following platforms:

  • bin/linux-x64
  • bin/mac-x64
  • bin/win-x64

This package has been manually tested in the offical docker image for node.

There are several linux binaries which were not included, which can be seen on the helm release page.

Installation

This is a big package; I recommend only installing it using with the --save-dev or -g flags.

Global installation is simple

npm install -g @williammarsman/k8s-helm

## Now found in '/usr/local/bin/npm-helm', which should be in PATH env
npm-helm version
version.BuildInfo{Version:"v3.0.0-beta.3", GitCommit:"5cb923eecbe80d1ad76399aee234717c11931d9a", GitTreeState:"clean", GoVersion:"go1.12.9"}

For a project installation, the --save-dev flag is recommended to not impact final project size.

# Project installation
## Now found in './{project-dir}/node_modules/.bin/npm-helm'
npm install @williammarsman/k8s-helm --save-dev

Once installed, add the following to the scripts field in your package.json file to make it available in the project as npm run npm-helm

{
  "name": "helm-npm-test",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "npm-helm": "./node_modules/.bin/npm-helm"
  },
  "devDependencies": {
    "@williammarsman/k8s-helm": "^0.1.0"
  }
}

Usage

npm-helm is a wrapper around helm3; it supports all of the same arguments and flags.

Assuming a project-level installation

# Install a chart
npm run npm-helm install test/template-test

# Template a chart
npm run npm-helm template test/template-test

See the offical helm docs for more details on using helm.

Compiling from source instead of packaging pre-compiled binaries

I wasn't sure how to compile helm from source as part of a pre-install step for npm install. Compiling helm requires go, and I'm not sure how to compile a go project during the npm build stage in a portable way.

However this would be my preferred approach, as it would have made updating this project really easy to automate and reduce the size of the project by 60%. If anyone has any ideas on how this could be done, please let me know in an issue or PR.

License

Apache License v2.0