# openshift-client

> OpenShift nodejs client library

Latest version **3.10.8** (published 2017-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install openshift-client
pnpm add openshift-client
yarn add openshift-client
bun add openshift-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.10.8 |
| Published | 2017-09-03 |
| First published | 2017-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Originally by @sterburg maintained by @debianmaster |
| Maintainers | debianmaster |

## Links

- npm: https://www.npmjs.com/package/openshift-client
- Repository: https://github.com/debianmaster/openshift-client
- Homepage: https://github.com/silasbw/openshift-client-scratch#readme
- Issues: https://github.com/silasbw/openshift-client-scratch/issues
- npm.io page: https://npm.io/package/openshift-client

## Dependencies (1)

- [kubernetes-client](https://npm.io/package/kubernetes-client.md) ^3.15.0

## Recent versions

- 3.10.8 (latest) — 2017-09-03
- 3.10.7 — 2017-09-03
- 3.10.6 — 2017-08-20
- 3.10.5 — 2017-08-14
- 3.10.4 — 2017-06-07
- 3.10.3 — 2017-06-07
- 3.10.2 — 2017-06-07
- 3.10.1 — 2017-05-30

## README

> This openshift-client library is based on godaddy/kubernetes-client library, created by https://github.com/silasbw  I will be maintaing it.   Let me know if any objects are missing.

## Using

```js
const OpenShiftClient = require('openshift-client');

// Get Deployments from a specific namespace
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));
});

// Watch Deployment Events across all namespaces.
const streamDC = oapi.deploymentconfigs.get({ qs: { watch: true } });
const JSONStream = require('json-stream');
const jsonStreamDC = new JSONStream();
streamDC.pipe(jsonStreamDC);
jsonStreamDC.on('data', object => {
   console.log('DC:', JSON.stringify(object, null, 2));
});
```

> For more examples refer https://github.com/godaddy/kubernetes-client  

## More documentation?
https://github.com/godaddy/kubernetes-client/blob/master/README.md

---
_Source: https://npm.io/package/openshift-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
