kubectl

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *latest.Config, kubeClient kubectl.Client, deployConfig *latest.DeploymentConfig, log log.Logger) (deployer.Interface, error)

New creates a new deploy config for kubectl

Types

type DeployConfig

type DeployConfig struct {
	KubeClient kubectl.Client // This is not used yet, however the plan is to use it instead of calling kubectl via cmd
	Name       string
	CmdPath    string
	Context    string
	Namespace  string
	Manifests  []string

	DeploymentConfig *latest.DeploymentConfig
	Log              log.Logger
	// contains filtered or unexported fields
}

DeployConfig holds the necessary information for kubectl deployment

func (*DeployConfig) Delete

func (d *DeployConfig) Delete(cache *generated.CacheConfig) error

Delete deletes all matched manifests from kubernetes

func (*DeployConfig) Deploy

func (d *DeployConfig) Deploy(cache *generated.CacheConfig, forceDeploy bool, builtImages map[string]string) (bool, error)

Deploy deploys all specified manifests via kubectl apply and adds to the specified image names the corresponding tags

func (*DeployConfig) Render

func (d *DeployConfig) Render(cache *generated.CacheConfig, builtImages map[string]string, out io.Writer) error

Render writes the generated manifests to the out stream

func (*DeployConfig) Status

func (d *DeployConfig) Status() (*deployer.StatusResult, error)

Status prints the status of all matched manifests from kubernetes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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