controller

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProbeOwnerLabel         = "kuadrant.io/health-probes-owner"
	DNSHealthCheckFinalizer = "kuadrant.io/dns-health-check-probe"
)
View Source
const (
	DNSRecordFinalizer = "kuadrant.io/dns-record"
)

Variables

View Source
var (
	ErrInvalidHeader = fmt.Errorf("invalid header format")
)

Functions

func BuildOwnerLabelValue added in v0.7.0

func BuildOwnerLabelValue(record *v1alpha1.DNSRecord) string

BuildOwnerLabelValue ensures label value does not exceed the 63 char limit It uses the name of the record, if the resulting string longer than 63 chars, it will use UIDHash of the record

Types

type DNSProbeReconciler added in v0.7.0

type DNSProbeReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	ProbeManager *probes.ProbeManager
}

DNSProbeReconciler reconciles a DNSRecord object

func (*DNSProbeReconciler) Reconcile added in v0.7.0

func (r *DNSProbeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*DNSProbeReconciler) SetupWithManager added in v0.7.0

func (r *DNSProbeReconciler) SetupWithManager(mgr ctrl.Manager, maxRequeue, validForDuration, minRequeue time.Duration) error

SetupWithManager sets up the controller with the Manager.

type DNSRecordReconciler

type DNSRecordReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	ProviderFactory provider.Factory
}

DNSRecordReconciler reconciles a DNSRecord object

func (*DNSRecordReconciler) DeleteHealthChecks added in v0.7.0

func (r *DNSRecordReconciler) DeleteHealthChecks(ctx context.Context, dnsRecord *v1alpha1.DNSRecord) error

DeleteHealthChecks deletes all v1alpha1.DNSHealthCheckProbe that have ProbeOwnerLabel of passed in DNSRecord

func (*DNSRecordReconciler) Reconcile

func (r *DNSRecordReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*DNSRecordReconciler) ReconcileHealthChecks added in v0.2.0

func (r *DNSRecordReconciler) ReconcileHealthChecks(ctx context.Context, dnsRecord *v1alpha1.DNSRecord, allowInsecureCerts bool) error

func (*DNSRecordReconciler) SetupWithManager

func (r *DNSRecordReconciler) SetupWithManager(mgr ctrl.Manager, maxRequeue, validForDuration, minRequeue time.Duration, healthProbesEnabled, allowInsecureHealthCert bool) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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