kubectl

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidSuffixes = []string{".yml", ".yaml", ".json"}

ValidSuffixes are the supported file formats for Kubernetes manifests

Functions

This section is empty.

Types

type Kubectl

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

Kubectl holds parameters to run kubectl.

func New

func New(potentialConfigs []string) (*Kubectl, error)

New returns a Kubectl skaffold generator.

func (*Kubectl) GenerateDeployConfig

func (k *Kubectl) GenerateDeployConfig() latest.DeployConfig

GenerateDeployConfig implements the Initializer interface and generates skaffold kubectl deployment config.

func (*Kubectl) GetImages

func (k *Kubectl) GetImages() []string

GetImages implements the Initializer interface and lists all the images present in the k8 manifest files.

Jump to

Keyboard shortcuts

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