skaffold

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package skaffold implements the reloader manager for skaffold reloaders.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidReloaderType is returned when the reloader type is not 'skaffold'.
	ErrInvalidReloaderType = errors.New("reloader type is not 'skaffold'")

	// ErrSkaffoldConfigMissing is returned when the skaffold configuration is missing.
	ErrSkaffoldConfigMissing = errors.New("skaffold configuration is missing")

	// ErrConfigFileNotConfigured is returned when the config file is not configured.
	ErrConfigFileNotConfigured = errors.New("config_file not configured")

	// ErrRepositoryNotFound is returned when the referenced repository doesn't exist.
	ErrRepositoryNotFound = errors.New("repository not found")

	// ErrConfigFileNotFound is returned when the skaffold config file doesn't exist.
	ErrConfigFileNotFound = errors.New("skaffold config file not found")
)

Functions

This section is empty.

Types

type Manager

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

Manager implements reloader.Manager for skaffold reloaders.

func NewManager

func NewManager(kubectlBackend kubectl.Backend, exec executor.CommandRunner) *Manager

NewManager creates a new skaffold reloader manager.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, reloaderConfig *v2.ReloaderConfig, caproniConfig *v2.CaproniConfig) error

Run runs the reloader, blocking until the context is cancelled. For skaffold reloaders:

  • Runs skaffold dev in the repository directory
  • Blocks until the context is cancelled

func (*Manager) Status

func (m *Manager) Status(ctx context.Context, reloaderConfig *v2.ReloaderConfig, caproniConfig *v2.CaproniConfig) (*reloader.Status, error)

Status returns the current status of the reloader.

func (*Manager) Type

func (m *Manager) Type() string

Type returns the reloader type identifier.

func (*Manager) Validate

func (m *Manager) Validate(reloaderConfig *v2.ReloaderConfig, caproniConfig *v2.CaproniConfig) error

Validate validates the skaffold reloader configuration and referenced files.

Jump to

Keyboard shortcuts

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