Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrZoneRefNotReady = errors.New("zone reference is not ready")
ErrZoneRefNotReady is returned by ResolveZoneID when the referenced CloudflareZone exists but has not yet populated its status.ZoneID. Callers can check with errors.Is to log this as an Info-level "waiting on dependency" rather than an Error, since it resolves on its own once the zone reconciles.
Functions ¶
func ResolveZoneID ¶
func ResolveZoneID(ctx context.Context, k8sClient client.Client, obj zoneReferencer) (string, error)
ResolveZoneID returns the Cloudflare zone ID for obj: either its inline Spec.ZoneID, or the ZoneID from the CloudflareZone it references via Spec.ZoneRef (looked up in obj's namespace). Returns ErrZoneRefNotReady (wrapped) when the referenced zone exists but hasn't populated ZoneID yet.
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 ¶
func (r *CloudflareDNSRecordReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *CloudflareRulesetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *CloudflareTunnelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *CloudflareZoneConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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) SetupWithManager ¶
func (r *CloudflareZoneReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.