subcontroller

package
v0.0.0-...-5d90d19 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

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

View Source
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

func Add

func Add(mgr manager.Manager) error

Add creates a new subcontroller and adds it to the Manager.

Note that this Add function is intentionally NOT registered in the top-level pkg/controller package, because this controller does not run in the root process. See cmd/manager/main.go for details.

Types

type ReconcileVitessBackupStorage

type ReconcileVitessBackupStorage struct {
	// contains filtered or unexported fields
}

ReconcileVitessBackupStorage reconciles a VitessBackupStorage object

func (*ReconcileVitessBackupStorage) Reconcile

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.

Jump to

Keyboard shortcuts

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