kube

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 82 Imported by: 0

Documentation

Overview

Package kube implements "kube" starlark built-in which renders and applies Kubernetes objects.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func New

func New(
	addr string,
	d discovery.DiscoveryInterface,
	dynC dynamic.Interface,
	c *http.Client,
	dryRun, diff bool,
	diffFilters []string,
) starlark.HasAttrs

New returns a new skaylark.HasAttrs object for kube package.

func NewFake

func NewFake() (m starlark.HasAttrs, closeFn func(), err error)

NewFake returns a new fake kube module for testing.

Types

type DynamicClient

type DynamicClient interface {
	Apply(t *starlark.Thread, name string, namespace string, data *starlark.List) (starlark.Value, error)
}

DynamicClient used for applying dynamic resource manifests with no predefined protobufs such as CRDs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL