Documentation
¶
Overview ¶
Package pagesdeployment implements the Controller for PagesDeployment CRD. This controller directly calls Cloudflare API and writes status back to CRD, following the simplified 3-layer architecture (CRD → Controller → CF API).
Index ¶
Constants ¶
View Source
const ( FinalizerName = "pagesdeployment.networking.cloudflare-operator.io/finalizer" // AnnotationForceRedeploy is the annotation key to force a new deployment. // When this annotation value changes, a new deployment will be triggered // even if the spec hasn't changed. This is useful for re-deploying the // same configuration. AnnotationForceRedeploy = "cloudflare-operator.io/force-redeploy" // AnnotationLastForceRedeploy stores the last processed force-redeploy value AnnotationLastForceRedeploy = "cloudflare-operator.io/last-force-redeploy" // EventReasonProductionConflict indicates another production deployment exists EventReasonProductionConflict = "ProductionConflict" // EventReasonProductionProtected indicates production deletion is blocked EventReasonProductionProtected = "ProductionProtected" // EventReasonDeprecationWarning indicates deprecated fields are being used EventReasonDeprecationWarning = "DeprecationWarning" // EventReasonDeploymentCreated indicates a new deployment was created EventReasonDeploymentCreated = "DeploymentCreated" // EventReasonDeploymentPolling indicates polling deployment status EventReasonDeploymentPolling = "DeploymentPolling" // EventReasonDeploymentSucceeded indicates deployment succeeded EventReasonDeploymentSucceeded = "DeploymentSucceeded" // EventReasonDeploymentFailed indicates deployment failed EventReasonDeploymentFailed = "DeploymentFailed" // PollingInterval is the interval for polling in-progress deployments PollingInterval = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PagesDeploymentReconciler ¶
type PagesDeploymentReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
APIFactory *common.APIClientFactory
}
PagesDeploymentReconciler reconciles a PagesDeployment object. It directly calls Cloudflare API and writes status back to CRD, following the simplified 3-layer architecture.
func (*PagesDeploymentReconciler) SetupWithManager ¶
func (r *PagesDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.