April 2018
Intermediate to advanced
374 pages
8h 35m
English
The JavaScript Kubernetes client is generated in much the same fashion as the Python client, from the OpenAPI definition and mapped to the releases of Kubernetes. You can find the client at https://github.com/kubernetes-client/javascript, although this repository doesn't have the same level of generated documentation as the Python client. Instead, the developers have gone to some length to reflect the types in TypeScript with the client, which results in editors and IDEs being able to do some level of automatic code completion as you are writing your tests:
const k8s = require('@kubernetes/client-node');var chai = require('chai') , expect = chai.expect , should = chai.should();var k8sApi = k8s.Config.defaultClient(); ...Read now
Unlock full access