actions

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package actions runs the onCreate actions in a distro package.

Derived from zarf's src/pkg/packager/actions and the network half of src/pkg/wait. zarf's wait package serves both cluster and network waits from one file, so importing it for a network probe linked k8s.io/kubectl, k8s.io/cli-runtime and sigs.k8s.io/kustomize - about 5.9MB of a binary that never has a cluster to wait on, because cargoship runs actions only at package create time. See docs/agent/choice-actions-fork.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForNetwork

func ForNetwork(ctx context.Context, protocol, address, condition string, timeout time.Duration) error

ForNetwork waits for a network endpoint to respond.

func MatchAllRegex

func MatchAllRegex(regex *regexp.Regexp, str string) []func(string) string

MatchAllRegex wraps a get function around each substring match, returning all matches.

func Run

func Run(ctx context.Context, basePath string, actions []api.Action, opts RunOptions) error

Run runs all provided actions.

Types

type RunOptions

type RunOptions struct {
	DefaultConfig  api.ActionDefaults
	VariableConfig *variables.VariableConfig
	Values         value.Values
	StateAccess    template.StateAccess
}

RunOptions configures optional action execution behavior.

Jump to

Keyboard shortcuts

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