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 ¶
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
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.