Socket
Socket
Sign inDemoInstall

@digitalroute/npm-helm

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalroute/npm-helm

Helm helper module for nodejs


Version published
Maintainers
6
Created
Source

npm-helm

Helm helper module for nodejs

Usage

Like usual:

npm install @digitalroute/npm-helm --save-dev

And add the following parts to your package.json (you may already have a config section, so add it inside there if you already have it.)

  "config": {
    "helm": {
      "name": "<name-of-service>",
      "repository": "<helm-repo-name>",
      "namespace": "<kubernetes-namespace>",
      "imageRepository": "<docker-registry-for-image>",
      "binary": "<helm-binary-to-use>"
    },
  },

  "scripts": {
    "helm": "npm-helm",
    "helm-install": "npm-helm docker-build package install",
  },

Configuration

You can put sensible defaults in your package.json file and then override where apropriate with environment variables, like in CI/CD pipelines or for local development. The package.json means inside the helm configuration.

Environment variablepackage.jsonDefaultDescription
NPM_HELM_NAMEnameundefinedName of service (mandatory)
NPM_HELM_REPOSITORYrepositoryundefinedHelm repository (mandatory)
NPM_HELM_NAMESPACEnamespaceundefinedKubernetes namespace (mandatory)
NPM_HELM_BINARYbinaryhelmWhich helm binary to use, typically helm or helm3
NPM_HELM_VERBOSEverbosefalseUse verbose flags where possible when running helm or other things
NPM_HELM_DEBUGdebugfalseTurn on set -x for bash to get some shell debug
NPM_HELM_CONTEXT_ANYcontextAnyfalseIf set to true npm-helm will ignore kubernetes context
NPM_HELM_RELEASE_PREFIXreleasePrefixundefinedSet a prefix for the installed helm chart, like prefix-name
NPM_HELM_VALUESvaluesundefinedAdd a values file to helm install/upgrade
NPM_HELM_CIcifalseIf set to true it will treat things like it is doing a proper release
NPM_HELM_VERSIONversionfalseOverride the version inside package.json if needed
NPM_HELM_IMAGE_REPOSITORYimageRepositoryundefinedOverride the docker image repository
NPM_HELM_BUILD_IDbuildIdundefinedOverride the build id
NPM_HELM_PUSH_DOCKER_TAGpushDockerTagfalsePush the original docker tag created, not the calculated version

FAQs

Package last updated on 01 Jun 2022

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