Documentation ¶
Overview ¶
Package subcontroller is a part of the VitessBackupStorage controller that runs as its own Pod, separate from the operator's main controller-manager.
You can think of this like a part of the VitessBackupStorage controller that's forked off into a new Pod for each VitessBackupStorage object, so each Pod can independently mount things like Secrets or NFS volumes that are specific to a given VitessBackupStorage object.
See cmd/manager/main.go for details.
Index ¶
Constants ¶
const ( // ForkPath is the fork path for running just this subcontroller. // See cmd/manager/main.go for details. ForkPath = controllerName VBSNamespaceEnvVar = "PS_OPERATOR_VBS_NAMESPACE" VBSNameEnvVar = "PS_OPERATOR_VBS_NAME" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileVitessBackupStorage ¶
type ReconcileVitessBackupStorage struct {
// contains filtered or unexported fields
}
ReconcileVitessBackupStorage reconciles a VitessBackupStorage object
func (*ReconcileVitessBackupStorage) Reconcile ¶
func (r *ReconcileVitessBackupStorage) Reconcile(cctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a VitessBackupStorage object and makes changes based on the state read and what is in the VitessBackupStorage.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.