Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratorFactory ¶
GeneratorFactory is a function for creating per-reconciliation generators for the ImagePolicyGenerator.
Types ¶
type ImagePolicyGenerator ¶
ImagePolicyGenerator extracts files from Flux ImagePolicy resources.
func NewGenerator ¶
func NewGenerator(l logr.Logger, c client.Reader) *ImagePolicyGenerator
NewGenerator creates and returns a new ImagePolicy generator.
func (*ImagePolicyGenerator) Generate ¶
func (g *ImagePolicyGenerator) Generate(ctx context.Context, sg *templatesv1.GitOpsSetGenerator, ks *templatesv1.GitOpsSet) ([]map[string]any, error)
Generate is an implementation of the Generator interface.
This uses the referenced Flux ImagePolicy to determine the images to return.
func (*ImagePolicyGenerator) Interval ¶
func (g *ImagePolicyGenerator) Interval(sg *templatesv1.GitOpsSetGenerator) time.Duration
Interval is an implementation of the Generator interface.
ImagePolicyGenerator is driven by watching a Flux ImagePolicy resource.
Click to show internal directories.
Click to hide internal directories.