Controller Lifecycle Operations
Use the dashboard or varroactl for lifecycle actions. Controller phases are described in the architecture overview.
Stop, start, hibernate, and wake
Section titled “Stop, start, hibernate, and wake”varroactl power controller <namespace>/<name> stoppedvarroactl power controller <namespace>/<name> runningvarroactl hibernate controller <namespace>/<name>varroactl wake controller <namespace>/<name>Stopped scales Jenkins to zero while keeping its storage and configuration. It does not wake for traffic or webhooks. Starting returns it through provisioning.
Hibernation is separate from spec.powerState. Enable automatic hibernation with:
spec: hibernation: enabled: true gracePeriodMinutes: 60The grace period defaults to 60 minutes and cannot be below 5. Automatic hibernation needs a connected controller with no build, queue, or recent activity. On-demand hibernation can interrupt a build. Hibernate and wake fail while the controller is stopped.
Use Varroa’s queue URL for supported SCM webhooks. Direct requests to sleeping Jenkins can be lost. A hibernated controller cannot run timer-triggered jobs.
Restart, reconcile, or reprovision
Section titled “Restart, reconcile, or reprovision”varroactl restart controller <namespace>/<name>varroactl reconcile controller <namespace>/<name>varroactl reprovision controller <namespace>/<name>| Action | Use |
|---|---|
| Restart | Recreate the Jenkins pod. |
| Reconcile | Check desired state now. |
| Reprovision | Rebuild operator-managed resources and roll Jenkins. |
For approval and drain behavior, see Reconciliation.
Resolve field conflicts
Section titled “Resolve field conflicts”Varroa writes controller specifications with server-side apply. A conflicting manager, such as a GitOps controller, can block a change. Change the other manager’s desired state, or take ownership only when it will not immediately reapply the field.
varroactl patch controller <namespace>/<name> \ -p '{"spec":{"version":"<version>"}}' --force--force transfers ownership. Use it as a recovery action, not routine workflow.
Delete and verify
Section titled “Delete and verify”varroactl delete controller <namespace>/<name>varroactl describe controller <namespace>/<name>varroactl activity --controller <name> --followDeletion removes operator-owned workload resources. An externally supplied TLS Secret is kept. Storage follows the StorageClass reclaim policy, so back up required Jenkins data first. If progress stops, use Troubleshooting.