deploy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinTagsToBuildResult

func JoinTagsToBuildResult(b []build.Build, params map[string]string) (map[string]build.Build, error)

Types

type Deployer

type Deployer interface {
	// Run should ensure that the build results are deployed to the Kubernetes
	// cluster.
	Run(io.Writer, *build.BuildResult) (*Result, error)
}

Deployer is the Deploy API of skaffold and responsible for deploying the build results to a Kubernetes cluster

type HelmDeployer

type HelmDeployer struct {
	*config.DeployConfig
}

func NewHelmDeployer

func NewHelmDeployer(cfg *config.DeployConfig) (*HelmDeployer, error)

func (*HelmDeployer) Run

func (h *HelmDeployer) Run(out io.Writer, b *build.BuildResult) (*Result, error)

type KubectlDeployer

type KubectlDeployer struct {
	*config.DeployConfig
}

func NewKubectlDeployer

func NewKubectlDeployer(cfg *config.DeployConfig) (*KubectlDeployer, error)

NewKubectlDeployer returns a new KubectlDeployer for a DeployConfig filled with the needed configuration for `kubectl apply`

func (*KubectlDeployer) Run

func (k *KubectlDeployer) Run(out io.Writer, b *build.BuildResult) (*Result, error)

Run templates the provided manifests with a simple `find and replace` and runs `kubectl apply` on those manifests

type Result

type Result struct{}

Result is currently unused, but a stub for results that might be returned from a Deployer.Run()

Jump to

Keyboard shortcuts

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