Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthCheckGate ¶
HealthCheckGate checks an HTTP endpoint and is open if the gate returns a 200 response.
Any other response, is closed.
func New ¶
func New(l logr.Logger, httpClient *http.Client) *HealthCheckGate
New creates and returns a new HealthCheck gate.
func (HealthCheckGate) Check ¶
func (g HealthCheckGate) Check(ctx context.Context, gate *deployerv1.KustomizationGate, _ *deployerv1.KustomizationAutoDeployer) (bool, error)
Check returns true if the URL returns a 200 response.
func (HealthCheckGate) Interval ¶
func (g HealthCheckGate) 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.