runner

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithNotification added in v0.6.1

func WithNotification(d deploy.Deployer) deploy.Deployer

WithNotification creates a deployer that bips each time a deploy is done.

func WithTimings added in v0.6.1

func WithTimings(b build.Builder, d deploy.Deployer) (build.Builder, deploy.Deployer)

WithTimings creates a deployer that logs the duration of each phase.

Types

type SkaffoldRunner

type SkaffoldRunner struct {
	build.Builder
	deploy.Deployer
	tag.Tagger
	watch.WatcherFactory
	build.DependencyMapFactory
	// contains filtered or unexported fields
}

SkaffoldRunner is responsible for running the skaffold build and deploy pipeline.

func NewForConfig

func NewForConfig(opts *config.SkaffoldOptions, cfg *config.SkaffoldConfig) (*SkaffoldRunner, error)

NewForConfig returns a new SkaffoldRunner for a SkaffoldConfig

func (*SkaffoldRunner) Dev added in v0.6.0

func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*v1alpha2.Artifact) ([]build.Artifact, error)

Dev watches for changes and runs the skaffold build and deploy pipeline until interrrupted by the user.

func (*SkaffoldRunner) Labels added in v0.8.0

func (r *SkaffoldRunner) Labels() map[string]string

func (*SkaffoldRunner) Run

func (r *SkaffoldRunner) Run(ctx context.Context, out io.Writer, artifacts []*v1alpha2.Artifact) error

Run builds artifacts ad then deploys them.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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