2.15.1 • Published 2 years ago

@digitalroute/npm-helm v2.15.1

Weekly downloads
110
License
-
Repository
github
Last release
2 years ago

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
2.15.1

2 years ago

2.15.0

2 years ago

2.14.1

2 years ago

2.13.0

2 years ago

2.14.0

2 years ago

2.12.2

3 years ago

2.12.0

3 years ago

2.12.1

3 years ago

2.11.0

3 years ago

2.10.0-beta.2

3 years ago

2.10.0-beta.3

3 years ago

2.10.0

3 years ago

3.0.0-beta.1

3 years ago

2.10.0-beta.1

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.12.0

4 years ago

0.13.0

4 years ago

0.12.1

4 years ago

0.12.2

4 years ago

0.12.3

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago