operator

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Overview

Package operator to manage Kubernetes storage.

Package operator to manage Kubernetes storage.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ImmediateRetryResult Return this for a 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 checks whether machine disruption budget is enabled
	EnableMachineDisruptionBudget bool
)
View Source
var MachineDisruptionBudgetAddToManagerFuncs = []func(manager.Manager, *controllerconfig.Context) error{
	machinelabel.Add,
	machinedisruption.Add,
}

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

Functions

func Add

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 the operator instance

type ReconcileConfig

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

ReconcileConfig reconciles a Ceph Operator config

func (*ReconcileConfig) Reconcile

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

Reconcile reads that state of the cluster for a CephClient object and makes changes based on the state read and what is in the CephClient.Spec 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
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.
Package config to provide conditions for CephCluster
Package config to provide conditions for CephCluster
csi
disruption
clusterdisruption
Package clusterdisruption implements the controller for ensuring that drains occurs in a safe manner.
Package clusterdisruption implements the controller for ensuring that drains occurs 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.
notification
Package notification to manage a rook bucket notifications.
Package notification to manage a 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 a rook bucket topics.
Package topic to manage a 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 provides common resources useful for testing many Ceph daemons.
Package test provides common resources useful for testing many Ceph daemons.

Jump to

Keyboard shortcuts

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