Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScheduledGate ¶
ScheduledGate is open based on the current time.
func New ¶
func New(l logr.Logger, opts ...func(*ScheduledGate)) *ScheduledGate
New creates and returns a new ScheduledGate.
func (ScheduledGate) Check ¶
func (g ScheduledGate) Check(ctx context.Context, gate *deployerv1.KustomizationGate, _ *deployerv1.KustomizationAutoDeployer) (bool, error)
Check returns true if now is within the the Scheduled gate time duration.
func (ScheduledGate) Interval ¶
func (g ScheduledGate) Interval(gate *deployerv1.KustomizationGate) (time.Duration, error)
Interval returns the time after which to requeue this check.
Click to show internal directories.
Click to hide internal directories.