Documentation
¶
Overview ¶
Package skaffold implements the reloader manager for skaffold reloaders.
Index ¶
- Variables
- type Manager
- func (m *Manager) Run(ctx context.Context, reloaderConfig *v2.ReloaderConfig, ...) error
- func (m *Manager) Status(ctx context.Context, reloaderConfig *v2.ReloaderConfig, ...) (*reloader.Status, error)
- func (m *Manager) Type() string
- func (m *Manager) Validate(reloaderConfig *v2.ReloaderConfig, caproniConfig *v2.CaproniConfig) error
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) Validate ¶
func (m *Manager) Validate(reloaderConfig *v2.ReloaderConfig, caproniConfig *v2.CaproniConfig) error
Validate validates the skaffold reloader configuration and referenced files.
Click to show internal directories.
Click to hide internal directories.