Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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).
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.