customparams

package
v0.54.0 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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomParams

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

func NewCustomParams

func NewCustomParams(event *info.Event, repo *v1alpha1.Repository, run *params.Run, k8int kubeinteraction.Interface, eventEmitter *events.EventEmitter, prov provider.Interface) CustomParams

func (*CustomParams) GetParams

func (p *CustomParams) GetParams(ctx context.Context) (map[string]string, map[string]any, error)

GetParams will process the parameters as set in the repo.Spec CR. value can come from a string or from a secretKeyRef or from a string value if both is set we pick the value and issue a warning in the user namespace we let the user specify a cel filter. If false then we skip the parameters. if multiple params name has a filter we pick up the first one that has matched true.

func (*CustomParams) MatchedFilters added in v0.54.0

func (p *CustomParams) MatchedFilters(ctx context.Context) (map[string]string, error)

MatchedFilters evaluates the param filters like GetParams does and returns, per param name, the filter expression that selected it. It holds no param value, so it can be stored and replayed with WithFilterOutcomes.

func (CustomParams) WithFilterOutcomes added in v0.54.0

func (p CustomParams) WithFilterOutcomes(outcomes map[string]string) CustomParams

WithFilterOutcomes returns a copy selecting the filtered params from recorded outcomes, as returned by MatchedFilters, instead of evaluating the filters. A nil map selects none.

Jump to

Keyboard shortcuts

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