Skip to main content
Module

x/kubernetes_client/mod.ts

Typescript library for accessing a Kubernetes API server
Go to Latest
import * as kubernetesClient from "https://deno.land/x/kubernetes_client@v0.7.0/mod.ts";

Classes

Parses individual JSON objects from individual strings, 1:1

A RestClient which uses a KubeConfig to talk directly to a Kubernetes endpoint. Used by code which is running within a Kubernetes pod and would like to access the local cluster's control plane using its Service Account.

A RestClient for easily running on a developer's local machine. Your existing kubectl is called to do all the actual authentication and network stuff. This is pretty reliable but mot all types of requests can be performed this way.

Validates JSON objects belonging to a watch stream

Functions

Automatic trial-and-error approach for deciding how to talk to Kubernetes. Influenced by Deno's current permissions and Deno may prompt for more permissions. Will emit a list of problems if no usable clients are found. You'll likely want to set the correct Deno permissions for your installation.

Constructs the typical list of Kubernetes API clients, using an alternative client for connecting to KubeConfig contexts. The Kubectl client is unaffected by this.

Paginates through an API request, yielding every individual item returned

Paginates through an API request, yielding each successive page as a whole

Type Aliases

Implementation of a Kubernetes List/Watch client which furnishes a view of the watched data. This is commonly called a 'Reflector' among the client libraries, though this one is less standard.