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));
});