Documentation ¶
Overview ¶
Package operator to manage Kubernetes storage.
Package operator to manage Kubernetes storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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} )
var AddToManagerFuncs = []func(manager.Manager, *clusterd.Context, context.Context, opcontroller.OperatorConfig) error{ nodedaemon.Add, pool.Add, objectuser.Add, realm.Add, zonegroup.Add, zone.Add, object.Add, file.Add, nfs.Add, rbd.Add, client.Add, mirror.Add, Add, csi.Add, bucket.Add, topic.Add, notification.Add, subvolumegroup.Add, radosnamespace.Add, cosi.Add, }
AddToManagerFuncs is a list of functions to add all Controllers to the Manager (entrypoint for controller)
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)
var ( // EnableMachineDisruptionBudget checks whether machine disruption budget is enabled EnableMachineDisruptionBudget bool )
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
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 |
osd/topology
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. |
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. |
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. |
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 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. |