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) SetupWithManager ¶
func (r *PagesPromotionReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.