This package has been deprecated

Author message:

This module is deprecated.

openshift-config-loader

0.4.0 • Public • Published

Build Status Coverage Status

Openshift Config Loader

Greenkeeper badge

Node.js based client for loading an Openshift config file.

Defaults to the ~/.kube/config file

Example Usage

Install the dependecy

npm install openshift-config-loader

Code:

'use strict';

const openshiftConfigLoader = require('openshift-config-loader');

openshiftConfigLoader().then((config) => {
  console.log(config);
});

How It Works

First, the config loader will look, by default, a file named ~/.kube/config . If it can't find it, then the config loader will try loading the config as a service account.

You can turn off the service account lookup by either passing an options object with the property options.tryServiceAccount equal to false or set an environment variable named KUBERNETES_AUTH_TRYSERVICEACCOUNT equal to false

For Example:

const options = {
  tryServiceAccount: false
};

openshiftConfigLoader(options).then((config) => {
  console.log(config);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0-0
    0
    • canary

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0-0
    0

Package Sidebar

Install

npm i openshift-config-loader

Weekly Downloads

10

Version

0.4.0

License

Apache-2.0

Last publish

Collaborators

  • dbevenius
  • helio-frota
  • lanceball
  • lholmquist