controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveZoneID

func ResolveZoneID(ctx context.Context, k8sClient client.Client, namespace, zoneID string, zoneRef *cloudflarev1alpha1.ZoneReference) (string, error)

ResolveZoneID resolves a zone ID from either a direct zoneID string or a zoneRef. Returns the zone ID or an error if it cannot be resolved.

Types

type CloudflareDNSRecordReconciler

type CloudflareDNSRecordReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory *cfclient.ClientFactory
	IPResolver    *ipresolver.Resolver
	DNSClientFn   func(apiToken string) cfclient.DNSClient
}

CloudflareDNSRecordReconciler reconciles a CloudflareDNSRecord object

func (*CloudflareDNSRecordReconciler) Reconcile

Reconcile moves the current state of the cluster closer to the desired state for a CloudflareDNSRecord resource. It handles the full lifecycle of DNS records including creation, updates, adoption of existing records, and deletion.

func (*CloudflareDNSRecordReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CloudflareRulesetReconciler

type CloudflareRulesetReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	Recorder        record.EventRecorder
	ClientFactory   *cfclient.ClientFactory
	RulesetClientFn func(apiToken string) cfclient.RulesetClient
}

CloudflareRulesetReconciler reconciles a CloudflareRuleset object

func (*CloudflareRulesetReconciler) Reconcile

Reconcile moves the current state of the cluster closer to the desired state for a CloudflareRuleset resource. It handles the full lifecycle of rulesets including creation, updates, adoption of existing rulesets, and deletion.

func (*CloudflareRulesetReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CloudflareTunnelReconciler

type CloudflareTunnelReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Recorder       record.EventRecorder
	ClientFactory  *cfclient.ClientFactory
	TunnelClientFn func(apiToken string) cfclient.TunnelClient
}

CloudflareTunnelReconciler reconciles a CloudflareTunnel object

func (*CloudflareTunnelReconciler) Reconcile

Reconcile moves the current state of the cluster closer to the desired state for a CloudflareTunnel resource. It handles the full lifecycle of tunnels including creation, adoption of existing tunnels, credential Secret generation, and deletion.

func (*CloudflareTunnelReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CloudflareZoneConfigReconciler

type CloudflareZoneConfigReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	ClientFactory *cfclient.ClientFactory
	ZoneClientFn  func(apiToken string) cfclient.ZoneClient
}

CloudflareZoneConfigReconciler reconciles a CloudflareZoneConfig object

func (*CloudflareZoneConfigReconciler) Reconcile

Reconcile moves the current state of the cluster closer to the desired state for a CloudflareZoneConfig resource. It handles applying zone settings to Cloudflare and tracking the applied settings count.

func (*CloudflareZoneConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CloudflareZoneReconciler

type CloudflareZoneReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	Recorder              record.EventRecorder
	ClientFactory         *cfclient.ClientFactory
	ZoneLifecycleClientFn func(apiToken string) cfclient.ZoneLifecycleClient
}

CloudflareZoneReconciler reconciles a CloudflareZone object

func (*CloudflareZoneReconciler) Reconcile

func (*CloudflareZoneReconciler) SetupWithManager

func (r *CloudflareZoneReconciler) 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