Documentation
¶
Index ¶
- Variables
- type CSIAddonsNodeReconciler
- type EncryptionKeyRotationCronJobReconciler
- type EncryptionKeyRotationJobReconciler
- type NetworkFenceClassReconciler
- type NetworkFenceInstance
- type NetworkFenceReconciler
- type Operation
- type PersistentVolumeClaimReconciler
- type ReclaimSpaceCronJobReconciler
- type ReclaimSpaceJobReconciler
Constants ¶
This section is empty.
Variables ¶
var ( ErrConnNotFoundRequeueNeeded = errors.New("connection not found, requeue needed") ErrScheduleNotFound = errors.New("schedule not found") )
Functions ¶
This section is empty.
Types ¶
type CSIAddonsNodeReconciler ¶
type CSIAddonsNodeReconciler struct { client.Client Scheme *runtime.Scheme ConnPool *connection.ConnectionPool EnableAuth bool }
CSIAddonsNodeReconciler reconciles a CSIAddonsNode object
func (*CSIAddonsNodeReconciler) Reconcile ¶
func (r *CSIAddonsNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*CSIAddonsNodeReconciler) SetupWithManager ¶
func (r *CSIAddonsNodeReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type EncryptionKeyRotationCronJobReconciler ¶
EncryptionKeyRotationCronJobReconciler reconciles a EncryptionKeyRotationCronJob object
func (*EncryptionKeyRotationCronJobReconciler) Reconcile ¶
func (r *EncryptionKeyRotationCronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*EncryptionKeyRotationCronJobReconciler) SetupWithManager ¶
func (r *EncryptionKeyRotationCronJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type EncryptionKeyRotationJobReconciler ¶
type EncryptionKeyRotationJobReconciler struct { client.Client Scheme *runtime.Scheme ConnPool *connection.ConnectionPool Timeout time.Duration }
EncryptionKeyRotationJobReconciler reconciles a EncryptionKeyRotationJob object
func (*EncryptionKeyRotationJobReconciler) Reconcile ¶
func (r *EncryptionKeyRotationJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*EncryptionKeyRotationJobReconciler) SetupWithManager ¶
func (r *EncryptionKeyRotationJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type NetworkFenceClassReconciler ¶ added in v0.11.0
NetworkFenceClassReconciler reconciles a NetworkFenceClass object
func (*NetworkFenceClassReconciler) Reconcile ¶ added in v0.11.0
func (r *NetworkFenceClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NetworkFenceClass object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile
func (*NetworkFenceClassReconciler) SetupWithManager ¶ added in v0.11.0
func (r *NetworkFenceClassReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NetworkFenceInstance ¶
type NetworkFenceInstance struct {
// contains filtered or unexported fields
}
NetworkFenceInstance contains the attributes that can be useful in reconciling a particular instance of the NetworkFence resource.
type NetworkFenceReconciler ¶
type NetworkFenceReconciler struct { client.Client // Scheme defines methods for serializing and deserializing API objects. Scheme *runtime.Scheme // ConnectionPool consists of map of Connection objects Connpool *conn.ConnectionPool // Timeout for the Reconcile operation. Timeout time.Duration }
NetworkFenceReconciler reconciles a NetworkFence object.
func (*NetworkFenceReconciler) Reconcile ¶
func (r *NetworkFenceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*NetworkFenceReconciler) SetupWithManager ¶
func (r *NetworkFenceReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type Operation ¶ added in v0.10.0
type Operation string
Operation defines the sub operation to be performed on the PVC. e.g. reclaimspace, keyrotation
type PersistentVolumeClaimReconciler ¶
type PersistentVolumeClaimReconciler struct { client.Client Scheme *runtime.Scheme // ConnectionPool consists of map of Connection objects. ConnPool *connection.ConnectionPool SchedulePrecedence string }
PersistentVolumeClaimReconciler reconciles a PersistentVolumeClaim object
func (*PersistentVolumeClaimReconciler) Reconcile ¶
func (r *PersistentVolumeClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. This is triggered when `reclaimspace.csiaddons.openshift/schedule` annotation is found on newly created PVC or its found on the namespace or if there is a change in value of the annotation. It is also triggered by any changes to the child cronjob.
func (*PersistentVolumeClaimReconciler) SetupWithManager ¶
func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type ReclaimSpaceCronJobReconciler ¶
ReclaimSpaceCronJobReconciler reconciles a ReclaimSpaceCronJob object
func (*ReclaimSpaceCronJobReconciler) Reconcile ¶
func (r *ReclaimSpaceCronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Reconcile will be called when there is any event related to reclaimSpaceCronJob and also when there is an event related to child reclaimSpaceJobs due to controllerOwnerRef.
func (*ReclaimSpaceCronJobReconciler) SetupWithManager ¶
func (r *ReclaimSpaceCronJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.
type ReclaimSpaceJobReconciler ¶
type ReclaimSpaceJobReconciler struct { client.Client // Scheme defines methods for serializing and deserializing API objects. Scheme *runtime.Scheme // ConnectionPool consists of map of Connection objects. ConnPool *connection.ConnectionPool // Timeout for the Reconcile operation. Timeout time.Duration }
ReclaimSpaceJobReconciler reconciles a ReclaimSpaceJob object.
func (*ReclaimSpaceJobReconciler) Reconcile ¶
func (r *ReclaimSpaceJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ReclaimSpaceJobReconciler) SetupWithManager ¶
func (r *ReclaimSpaceJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error
SetupWithManager sets up the controller with the Manager.