pagespromotion

package
v0.35.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pagespromotion implements the Controller for PagesPromotion CRD. It manages the promotion of Pages deployments to production using the Cloudflare Rollback API.

Index

Constants

View Source
const (
	FinalizerName = "pagespromotion.networking.cloudflare-operator.io/finalizer"

	// WaitingInterval is the interval for waiting on deployment readiness.
	WaitingInterval = 30 * time.Second

	// Event reasons
	EventReasonWaiting         = "WaitingForDeployment"
	EventReasonPromoting       = "Promoting"
	EventReasonPromoted        = "Promoted"
	EventReasonPromotionFailed = "PromotionFailed"
	EventReasonAlreadyPromoted = "AlreadyPromoted"

	// CloudflareEnvironmentProduction is the Cloudflare environment name for production deployments.
	CloudflareEnvironmentProduction = "production"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PagesPromotionReconciler

type PagesPromotionReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	Recorder   record.EventRecorder
	APIFactory *common.APIClientFactory
}

PagesPromotionReconciler reconciles a PagesPromotion object. It manages the promotion of Pages deployments to production.

func (*PagesPromotionReconciler) Reconcile

func (*PagesPromotionReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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