kube

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme = scheme.Scheme
)

Functions

func IsResourceNamespaced

func IsResourceNamespaced(kind string) bool

IsResourceNamespaced returns true if the resource kind is namespaced.

func PrepareManifest

func PrepareManifest(bytes []byte) ([]unstructured.Unstructured, error)

func ToUnstructured

func ToUnstructured(rawyaml []byte) ([]unstructured.Unstructured, error)

ToUnstructured takes a YAML and converts it to a list of Unstructured objects

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(kubeconfig string) Client

func (*Client) Apply

func (c *Client) Apply(objs []unstructured.Unstructured) error

Jump to

Keyboard shortcuts

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