kubectlcmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides an interface to kubectl

func New

func New() *Client

New creates a Client that runs kubectl available on the path with default authentication

func (*Client) Apply

func (c *Client) Apply(dryRun, verbose bool, namespace string, manifest string, extraArgs ...string) (string, string, error)

Apply runs the kubectl apply with the provided manifest argument

func (*Client) GetConfig

func (c *Client) GetConfig(name, namespace, output string, extraArgs ...string) (string, string, error)

GetConfig runs the kubectl get cm command with the provided argument

Jump to

Keyboard shortcuts

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