generators

package
v0.0.0-...-05e5313 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRequeueAfterSeconds = 3 * time.Minute

DefaultInterval is used when Interval is not specified, it is the default time to wait before the next reconcile loop.

Variables

View Source
var EmptyKustomizationSetGeneratorError = errors.New("KustomizationSet is empty")

EmptyKustomizationSetGeneratorError is returned when KustomizationSet is empty.

View Source
var NoRequeueInterval time.Duration

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// Generate interprets the KustomizationSet and generates all relevant
	// parameters for the Kustomization template.
	// The expected / desired list of parameters is returned, it then will be render and reconciled
	// against the current state of the Applications in the cluster.
	Generate(context.Context, *sourcev1.KustomizationSetGenerator, *sourcev1.KustomizationSet) ([]map[string]any, error)

	// Interval is the the generator can controller the next reconciled loop
	//
	// In case there is more then one generator the time will be the minimum of the times.
	// In case NoRequeueInterval is empty, it will be ignored
	Interval(*sourcev1.KustomizationSetGenerator) time.Duration

	// Template returns the inline template from the spec if there is any, or
	// an empty object otherwise
	Template(*sourcev1.KustomizationSetGenerator) *sourcev1.KustomizationSetTemplate
}

Generator defines the interface implemented by all KustomizationSet generators.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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