pagesproject

package
v0.30.1 Latest Latest
Warning

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

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

Documentation

Overview

Package pagesproject implements the L2 Controller for PagesProject CRD. It registers project configurations to the Core Service for sync.

Index

Constants

View Source
const (
	// FinalizerName is the finalizer for PagesProject resources.
	FinalizerName = "pagesproject.networking.cloudflare-operator.io/finalizer"

	// ManagedByLabel identifies resources managed by PagesProject controller.
	ManagedByLabel = "networking.cloudflare-operator.io/managed-by"

	// ManagedByNameLabel stores the PagesProject name that manages this deployment.
	ManagedByNameLabel = "networking.cloudflare-operator.io/managed-by-name"

	// ManagedByUIDLabel stores the PagesProject UID to prevent conflicts after deletion.
	ManagedByUIDLabel = "networking.cloudflare-operator.io/managed-by-uid"

	// VersionLabel stores the version name from ProjectVersion.
	VersionLabel = "networking.cloudflare-operator.io/version"

	// ManagedAnnotation marks a resource as managed by PagesProject.
	ManagedAnnotation = "networking.cloudflare-operator.io/managed"

	// ManagedByValue is the value for ManagedByLabel.
	ManagedByValue = "pagesproject"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PagesProjectReconciler

type PagesProjectReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

PagesProjectReconciler reconciles a PagesProject object

func (*PagesProjectReconciler) Reconcile

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

func (*PagesProjectReconciler) SetupWithManager

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

type VersionManager added in v0.29.0

type VersionManager struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

VersionManager manages declarative versions for PagesProject.

func NewVersionManager added in v0.29.0

func NewVersionManager(k8sClient client.Client, scheme *runtime.Scheme, log logr.Logger) *VersionManager

NewVersionManager creates a new VersionManager.

func (*VersionManager) Reconcile added in v0.29.0

func (vm *VersionManager) Reconcile(ctx context.Context, project *networkingv1alpha2.PagesProject) error

Reconcile synchronizes the desired versions with actual PagesDeployment resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL