domain

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package domain provides Sync Controllers for domain-related Cloudflare resources.

Index

Constants

View Source
const (
	// CloudflareDomainFinalizerName is the finalizer for CloudflareDomain SyncState resources.
	CloudflareDomainFinalizerName = "cloudflaredomain.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// DomainRegistrationFinalizerName is the finalizer for DomainRegistration SyncState resources.
	DomainRegistrationFinalizerName = "domainregistration.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// OriginCACertificateFinalizerName is the finalizer for OriginCACertificate SyncState resources.
	OriginCACertificateFinalizerName = "origincacertificate.sync.cloudflare-operator.io/finalizer"
)

Variables

This section is empty.

Functions

func GetResultFromSyncState

func GetResultFromSyncState(syncState *v1alpha2.CloudflareSyncState) *domainsvc.OriginCACertificateSyncResult

GetResultFromSyncState extracts the certificate result from SyncState ResultData.

func ParseLifecycleConfig

func ParseLifecycleConfig(raw []byte) (*domainsvc.OriginCACertificateLifecycleConfig, error)

ParseLifecycleConfig parses the lifecycle configuration from raw JSON.

Types

type CloudflareDomainController

type CloudflareDomainController struct {
	*common.BaseSyncController
}

CloudflareDomainController is the Sync Controller for CloudflareDomain resources. It watches CloudflareSyncState resources of type CloudflareDomain and syncs zone settings to Cloudflare API.

func NewCloudflareDomainController

func NewCloudflareDomainController(c client.Client) *CloudflareDomainController

NewCloudflareDomainController creates a new CloudflareDomainController

func (*CloudflareDomainController) Reconcile

Reconcile processes a CloudflareSyncState resource for CloudflareDomain.

func (*CloudflareDomainController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DomainRegistrationController

type DomainRegistrationController struct {
	*common.BaseSyncController
}

DomainRegistrationController is the Sync Controller for DomainRegistration operations. It watches CloudflareSyncState resources of type DomainRegistration and performs the actual Cloudflare API calls for domain sync and configuration updates.

func NewDomainRegistrationController

func NewDomainRegistrationController(c client.Client) *DomainRegistrationController

NewDomainRegistrationController creates a new DomainRegistrationSyncController.

func (*DomainRegistrationController) Reconcile

Reconcile processes a CloudflareSyncState resource for DomainRegistration operations.

func (*DomainRegistrationController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type OriginCACertificateController

type OriginCACertificateController struct {
	*common.BaseSyncController
}

OriginCACertificateController is the Sync Controller for OriginCACertificate operations. It watches CloudflareSyncState resources of type OriginCACertificate and performs the actual Cloudflare API calls for certificate creation and revocation.

func NewOriginCACertificateController

func NewOriginCACertificateController(c client.Client) *OriginCACertificateController

NewOriginCACertificateController creates a new OriginCACertificateSyncController.

func (*OriginCACertificateController) Reconcile

Reconcile processes a CloudflareSyncState resource for OriginCACertificate operations.

func (*OriginCACertificateController) SetupWithManager

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