pages

package
v0.27.3 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: 16 Imported by: 0

Documentation

Overview

Package pages provides the Pages Sync Controllers for managing Cloudflare Pages resources. Each controller handles a specific resource type: Project, Domain, and Deployment.

Unified Sync Architecture Flow: K8s Resources → Resource Controllers → Core Services → SyncState CRD → Sync Controllers → Cloudflare API

This Sync Controller is the SINGLE point that calls Cloudflare API for Pages projects.

Index

Constants

View Source
const (
	// DeploymentFinalizerName is the finalizer for Pages Deployment SyncState resources.
	DeploymentFinalizerName = "pages-deployment.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// DomainFinalizerName is the finalizer for Pages Domain SyncState resources.
	DomainFinalizerName = "pages-domain.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// ProjectFinalizerName is the finalizer for Pages Project SyncState resources.
	ProjectFinalizerName = "pages-project.sync.cloudflare-operator.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentResult

type DeploymentResult struct {
	DeploymentID string
	URL          string
	Stage        string
}

DeploymentResult contains the result of a deployment action.

type DeploymentSyncController

type DeploymentSyncController struct {
	*common.BaseSyncController
}

DeploymentSyncController is the Sync Controller for Pages Deployment Configuration. It watches CloudflareSyncState resources of type PagesDeployment, extracts the configuration, and syncs to Cloudflare API. This is the SINGLE point that calls Cloudflare Pages Deployment API.

func NewDeploymentSyncController

func NewDeploymentSyncController(c client.Client) *DeploymentSyncController

NewDeploymentSyncController creates a new DeploymentSyncController

func (*DeploymentSyncController) Reconcile

Reconcile processes a CloudflareSyncState resource for Pages deployment.

func (*DeploymentSyncController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DomainSyncController

type DomainSyncController struct {
	*common.BaseSyncController
}

DomainSyncController is the Sync Controller for Pages Domain Configuration. It watches CloudflareSyncState resources of type PagesDomain, extracts the configuration, and syncs to Cloudflare API. This is the SINGLE point that calls Cloudflare Pages Domain API.

func NewDomainSyncController

func NewDomainSyncController(c client.Client) *DomainSyncController

NewDomainSyncController creates a new DomainSyncController

func (*DomainSyncController) Reconcile

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

Reconcile processes a CloudflareSyncState resource for Pages domain.

func (*DomainSyncController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProjectSyncController

type ProjectSyncController struct {
	*common.BaseSyncController
}

ProjectSyncController is the Sync Controller for Pages Project Configuration. It watches CloudflareSyncState resources of type PagesProject, extracts the configuration, and syncs to Cloudflare API. This is the SINGLE point that calls Cloudflare Pages Project API.

func NewProjectSyncController

func NewProjectSyncController(c client.Client) *ProjectSyncController

NewProjectSyncController creates a new ProjectSyncController

func (*ProjectSyncController) Reconcile

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

Reconcile processes a CloudflareSyncState resource for Pages project.

func (*ProjectSyncController) SetupWithManager

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