Skip to content

dirigiblelabs/client-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes API Client for Eclipse Dirigible

Eclipse License GitHub contributors

Overview

  1. Set-up:
TBD
  1. Usage:
// TODO: Initial

const server = 'https://<API-SERVER>';
const token = '<YOUR-TOKEN>';

var response = require('http/v3/response');
var Pods = require('kubernetes/api/v1/Pods');

var podsApi = new Pods(server, token, 'zeus');

var pod = podsApi.getEntityBuilder();
pod.getMetadata().setName('asd');
pod.getMetadata().setNamespace('namespace');

console.error('Pod: ' + JSON.stringify(pod.build()));
response.println(JSON.stringify(podsApi.list()));

License

This project is copyrighted by SAP SE and is available under the Eclipse Public License v 1.0. See LICENSE and NOTICE.txt for further details.