operator

package
v1.21.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 54 Imported by: 20

Documentation

Overview

Package operator manages Kubernetes storage.

Package operator manages Kubernetes storage.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ImmediateRetryResult is returned for an immediate retry of the reconciliation loop with the same request object.
	ImmediateRetryResult = reconcile.Result{Requeue: true}

	// ShutdownSignals signals to watch for to terminate the operator gracefully
	// Using os.Interrupt is more portable across platforms instead of os.SIGINT
	ShutdownSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
)

AddToManagerFuncs is a list of functions to add all Controllers to the Manager (entrypoint for controller)

View Source
var AddToManagerFuncsMaintenance = []func(manager.Manager, *controllerconfig.Context) error{
	clusterdisruption.Add,
}

AddToManagerFuncsMaintenance is a list of functions to add all Controllers to the Manager (entrypoint for controller)

View Source
var EnableMachineDisruptionBudget bool

EnableMachineDisruptionBudget indicates whether the machine disruption budget is enabled

Functions

func Add added in v1.8.0

func Add(mgr manager.Manager, context *clusterd.Context, opManagerContext context.Context, opConfig opcontroller.OperatorConfig) error

Add creates a new Operator configuration Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type Operator

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

Operator type for managing storage

func New

func New(context *clusterd.Context, rookImage, serviceAccount string) *Operator

New creates an operator instance

func (*Operator) Run

func (o *Operator) Run() error

Run runs the operator instance

type ReconcileConfig added in v1.8.0

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

ReconcileConfig reconciles a Ceph Operator config

func (*ReconcileConfig) Reconcile added in v1.8.0

func (r *ReconcileConfig) Reconcile(context context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads the state of the operator config map and makes changes based on the state read 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.

Directories

Path Synopsis
Package client to manage a rook client.
Package client to manage a rook client.
Package cluster to manage Kubernetes storage.
Package cluster to manage Kubernetes storage.
mgr
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
mon
Package mon provides methods for creating clusters of Ceph mons in Kubernetes, for monitoring the cluster's status, for taking corrective actions if the status is non-ideal, and for reporting mon cluster failures.
Package mon provides methods for creating clusters of Ceph mons in Kubernetes, for monitoring the cluster's status, for taking corrective actions if the status is non-ideal, and for reporting mon cluster failures.
osd
Package osd for the Ceph OSDs.
Package osd for the Ceph OSDs.
osd/config
Package config for OSD config managed by the operator
Package config for OSD config managed by the operator
osd/topology
Package topology derives an OSD's CRUSH location from Kubernetes node topology labels.
Package topology derives an OSD's CRUSH location from Kubernetes node topology labels.
rbd
Package rbd for mirroring
Package rbd for mirroring
telemetry
Package telemetry codifies the Rook telemetry spec used to record Rook information for Ceph telemetry.
Package telemetry codifies the Rook telemetry spec used to record Rook information for Ceph telemetry.
Package config provides methods for generating the Ceph config for a Ceph cluster and for producing a "ceph.conf" compatible file from the config as well as Ceph command line-compatible flags.
Package config provides methods for generating the Ceph config for a Ceph cluster and for producing a "ceph.conf" compatible file from the config as well as Ceph command line-compatible flags.
keyring
Package keyring provides methods for accessing keyrings for Ceph daemons stored securely in Kubernetes secrets.
Package keyring provides methods for accessing keyrings for Ceph daemons stored securely in Kubernetes secrets.
csi
disruption
clusterdisruption
Package clusterdisruption implements the controller for ensuring that drains occur in a safe manner.
Package clusterdisruption implements the controller for ensuring that drains occur in a safe manner.
Package file manages a CephFS filesystem and the required daemons.
Package file manages a CephFS filesystem and the required daemons.
mds
Package mds provides methods for managing a Ceph mds cluster.
Package mds provides methods for managing a Ceph mds cluster.
mirror
Package mirror for mirroring
Package mirror for mirroring
subvolumegroup
Package subvolumegroup to manage CephFS subvolume groups
Package subvolumegroup to manage CephFS subvolume groups
Package nfs manages NFS ganesha servers for Ceph
Package nfs manages NFS ganesha servers for Ceph
Package object for the Ceph object store.
Package object for the Ceph object store.
account
Package account manages RGW accounts.
Package account manages RGW accounts.
cosi
Package cosi implements the controller for the Ceph COSI Driver.
Package cosi implements the controller for the Ceph COSI Driver.
notification
Package notification to manage rook bucket notifications.
Package notification to manage rook bucket notifications.
realm
Package objectrealm to manage a rook object realm.
Package objectrealm to manage a rook object realm.
topic
Package topic to manage rook bucket topics.
Package topic to manage rook bucket topics.
user
Package objectuser to manage a rook object store user.
Package objectuser to manage a rook object store user.
zone
Package zone to manage a rook object zone.
Package zone to manage a rook object zone.
zonegroup
Package objectzonegroup to manage a rook object zonegroup.
Package objectzonegroup to manage a rook object zonegroup.
Package pool to manage a rook pool.
Package pool to manage a rook pool.
radosnamespace
Package radosnamespace to manage rbd pool namespaces
Package radosnamespace to manage rbd pool namespaces
Reporting focuses on reporting Events, Status Conditions, and the like to users.
Reporting focuses on reporting Events, Status Conditions, and the like to users.
Package test for the operator tests
Package test for the operator tests

Jump to

Keyboard shortcuts

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