2.0.4 • Published 4 years ago

vcs-hosted-k8s-helm-installer v2.0.4

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

VCS Hosted Kubernetes Helm Installer

Build Status

VCS Hosted Kubernetes Helm Installer provides a simple API designed to perform install and upgrade operations for Kubernetes Helm based configuration APPs hosted in a Version Control System (curretly supports Git and TFS).

Installation

VCS Hosted Kubernetes Helm Installer is available as npm package.

$ npm install vcs-hosted-k8s-helm-installer

Usage example

This example uses VCS Getter library which is not a dependency of VCS Hosted Kubernetes Helm Installer, so you must install it in addition to VCS Hosted Kubernetes Helm Installer:

$ npm install vcs-getter
#!/usr/bin/env node

const { VCSGetter } = require("vcs-getter");
const { Installer } = require("vcs-hosted-k8s-helm-installer");

async function myExample() {
    const installer = new Installer({
        namespace: "vcs-hosted-k8s-helm-installer", 
        globalValues: { "replicaCount": 2 },
        vcsGetter: new VCSGetter()
    });

    try {
        await installer.installOrUpgrade({
          name: "appname",
          source: "https://github.com/you/yourapp/tree/branch/path/to/helm/chart",
          values: {
            cpuLimit: "500m"
          }
        });
    } finally {
        installer.dispose();
    }
}

myExample().catch(e => console.error(e));
2.0.4

4 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago