silasbw / openshift-client-scratch

Example using kubernetes-client to implement an OpenShift client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openshift-client-scratch

Example using kubernetes-client to implement an OpenShift client.

Using

// NB: This is not actually published to npm
const OpenShiftClient = require('openshift-client-scratch');

const oapi = new OpenShiftClient.OApi(OpenShiftClient.config.fromKubeconfig());
oapi.ns('foo').deploymentconfigs('bar').get((err, result) => {
  if (err) throw err;
  console.log(JSON.stringify(result, null, 2));
});

About

Example using kubernetes-client to implement an OpenShift client

License:MIT License


Languages

Language:JavaScript 100.0%