controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FAILED_STATUS    = "Failed"
	PENDING_STATUS   = "Pending"
	SUCCEEDED_STATUS = "Succeeded"
)
View Source
const (
	RrsetReasonZoneNotAvailable      = "ZoneNotAvailable"
	RrsetReasonSynchronizationFailed = "SynchronizationFailed"
	RrsetReasonDuplicated            = "RrsetDuplicated"
	RrsetReasonSynced                = "RrsetSynced"
	RrsetMessageDuplicated           = "Already existing RRset with the same FQDN"
	RrsetMessageSyncSucceeded        = "RRset synced with PowerDNS instance"
	RrsetMessageNonExistentZone      = "non-existent zone:"
	RrsetMessageUnavailableZone      = "unavailable zone:"
)
View Source
const (
	RESOURCES_FINALIZER_NAME   = "dns.cav.enablers.ob/external-resources"
	METRICS_FINALIZER_NAME     = "dns.cav.enablers.ob/metrics"
	DEFAULT_TTL_FOR_NS_RECORDS = uint32(1500)

	ZONE_NOT_FOUND_MSG  = "Not Found"
	ZONE_NOT_FOUND_CODE = 404
	ZONE_CONFLICT_MSG   = "Conflict"
	ZONE_CONFLICT_CODE  = 409
)
View Source
const (
	ZoneReasonSynced                  = "ZoneSynced"
	ZoneMessageSyncSucceeded          = "Zone synced with PowerDNS instance"
	ZoneReasonSynchronizationFailed   = "SynchronizationFailed"
	ZoneReasonNSSynchronizationFailed = "NSSynchronizationFailed"
	ZoneReasonDuplicated              = "ZoneDuplicated"
	ZoneMessageDuplicated             = "Already existing Zone with the same FQDN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRRsetReconciler

type ClusterRRsetReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	PDNSClient PdnsClienter
}

ClusterRRsetReconciler reconciles a ClusterRRset object

func (*ClusterRRsetReconciler) Reconcile

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

func (*ClusterRRsetReconciler) SetupWithManager

func (r *ClusterRRsetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterZoneReconciler

type ClusterZoneReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	PDNSClient PdnsClienter
}

ClusterZoneReconciler reconciles a ClusterZone object

func (*ClusterZoneReconciler) Reconcile

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

func (*ClusterZoneReconciler) SetupWithManager

func (r *ClusterZoneReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PdnsClienter

type PdnsClienter struct {
	Records pdnsRecordsClienter
	Zones   pdnsZonesClienter
}

type RRsetReconciler

type RRsetReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	PDNSClient PdnsClienter
}

RRsetReconciler reconciles a RRset object

func (*RRsetReconciler) Reconcile

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

func (*RRsetReconciler) SetupWithManager

func (r *RRsetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ZoneReconciler

type ZoneReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	PDNSClient PdnsClienter
}

ZoneReconciler reconciles a Zone object

func (*ZoneReconciler) Reconcile

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

func (*ZoneReconciler) SetupWithManager

func (r *ZoneReconciler) SetupWithManager(mgr ctrl.Manager) 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