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.
Click to show internal directories.
Click to hide internal directories.