Documentation ¶
Index ¶
- Constants
- Variables
- func WithNotification(d deploy.Deployer) deploy.Deployer
- func WithTimings(b build.Builder, t test.Tester, d deploy.Deployer, cacheArtifacts bool) (build.Builder, test.Tester, deploy.Deployer)
- type DefaultLabeller
- type SkaffoldRunner
- func (r *SkaffoldRunner) BuildAndTest(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) ([]build.Artifact, error)
- func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []build.Artifact) error
- func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
- func (r *SkaffoldRunner) DiagnoseArtifacts(out io.Writer) error
- func (r *SkaffoldRunner) HasBuilt() bool
- func (r *SkaffoldRunner) HasDeployed() bool
- func (r *SkaffoldRunner) IsTargetImage(artifact *latest.Artifact) bool
- func (r *SkaffoldRunner) Run(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
- func (r *SkaffoldRunner) TailLogs(ctx context.Context, out io.Writer, logger *kubernetes.LogAggregator) error
Constants ¶
const ( K8ManagedByLabel = "app.kubernetes.io/managed-by" UnknownVersion = "unknown" Empty = "" )
Variables ¶
var ErrorConfigurationChanged = errors.New("configuration changed")
ErrorConfigurationChanged is a special error that's returned when the skaffold configuration was changed.
Functions ¶
func WithNotification ¶ added in v0.6.1
WithNotification creates a deployer that bips each time a deploy is done.
Types ¶
type DefaultLabeller ¶ added in v0.29.0
type DefaultLabeller struct {
// contains filtered or unexported fields
}
DefaultLabeller adds K9 style managed-by label
func NewLabeller ¶ added in v0.29.0
func NewLabeller(verStr string) *DefaultLabeller
func (*DefaultLabeller) Labels ¶ added in v0.29.0
func (d *DefaultLabeller) Labels() map[string]string
type SkaffoldRunner ¶
type SkaffoldRunner struct { build.Builder deploy.Deployer test.Tester tag.Tagger sync.Syncer watch.Watcher RPCServerShutdown func() error // contains filtered or unexported fields }
SkaffoldRunner is responsible for running the skaffold build and deploy config.
func NewForConfig ¶
func NewForConfig(opts *config.SkaffoldOptions, cfg *latest.SkaffoldConfig) (*SkaffoldRunner, error)
NewForConfig returns a new SkaffoldRunner for a SkaffoldConfig
func (*SkaffoldRunner) BuildAndTest ¶ added in v0.19.0
func (r *SkaffoldRunner) BuildAndTest(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) ([]build.Artifact, error)
BuildAndTest builds artifacts and runs tests on built artifacts
func (*SkaffoldRunner) Deploy ¶ added in v0.20.0
func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []build.Artifact) error
Deploy deploys build artifacts.
func (*SkaffoldRunner) Dev ¶ added in v0.6.0
func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
Dev watches for changes and runs the skaffold build and deploy config until interrupted by the user.
func (*SkaffoldRunner) DiagnoseArtifacts ¶ added in v0.27.0
func (r *SkaffoldRunner) DiagnoseArtifacts(out io.Writer) error
func (*SkaffoldRunner) HasBuilt ¶ added in v0.27.0
func (r *SkaffoldRunner) HasBuilt() bool
HasBuilt returns true if this runner has built something.
func (*SkaffoldRunner) HasDeployed ¶ added in v0.20.0
func (r *SkaffoldRunner) HasDeployed() bool
HasDeployed returns true if this runner has deployed something.
func (*SkaffoldRunner) IsTargetImage ¶ added in v0.23.0
func (r *SkaffoldRunner) IsTargetImage(artifact *latest.Artifact) bool
func (*SkaffoldRunner) Run ¶
func (r *SkaffoldRunner) Run(ctx context.Context, out io.Writer, artifacts []*latest.Artifact) error
Run builds artifacts, runs tests on built artifacts, and then deploys them.
func (*SkaffoldRunner) TailLogs ¶ added in v0.13.0
func (r *SkaffoldRunner) TailLogs(ctx context.Context, out io.Writer, logger *kubernetes.LogAggregator) error