Documentation ¶
Index ¶
Constants ¶
const ( // AnnSelectedNode annotation is added to a PVC that has been triggered by scheduler to // be dynamically provisioned. Its value is the name of the selected node. // https://github.com/kubernetes/kubernetes/blob/9bae1bc56804db4905abebcd408e0f02e199ab93/pkg/controller/volume/persistentvolume/util/util.go#L53 AnnSelectedNode = "volume.kubernetes.io/selected-node" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogicalVolumeReconciler ¶
type LogicalVolumeReconciler struct {
// contains filtered or unexported fields
}
LogicalVolumeReconciler reconciles a LogicalVolume object
func NewLogicalVolumeReconcilerWithServices ¶
func NewLogicalVolumeReconcilerWithServices(client client.Client, nodeName string, vgService proto.VGServiceClient, lvService proto.LVServiceClient) *LogicalVolumeReconciler
func (*LogicalVolumeReconciler) Reconcile ¶
func (r *LogicalVolumeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile creates/deletes LVM logical volume for a LogicalVolume.
func (*LogicalVolumeReconciler) SetupWithManager ¶
func (r *LogicalVolumeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NodeReconciler ¶
type NodeReconciler struct {
// contains filtered or unexported fields
}
NodeReconciler reconciles a Node object
func NewNodeReconciler ¶
func NewNodeReconciler(client client.Client, skipNodeFinalize bool) *NodeReconciler
NewNodeReconciler returns NodeReconciler.
func (*NodeReconciler) SetupWithManager ¶
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PersistentVolumeClaimReconciler ¶
type PersistentVolumeClaimReconciler struct {
// contains filtered or unexported fields
}
PersistentVolumeClaimReconciler reconciles a PersistentVolumeClaim object
func NewPersistentVolumeClaimReconciler ¶
func NewPersistentVolumeClaimReconciler(client client.Client, apiReader client.Reader) *PersistentVolumeClaimReconciler
NewPersistentVolumeClaimReconciler returns PersistentVolumeClaimReconciler.
func (*PersistentVolumeClaimReconciler) Reconcile ¶
func (r *PersistentVolumeClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile finalize PVC
This was originally created as a workaround for the following issue. https://github.com/kubernetes/kubernetes/pull/93457
Because the issue was fixed, the PVC reconciler was once removed by PR #536. However, it turned out that the PVC finalizer was also useful to resolve the issue that a pod created from StatefulSet persists in the PENDING state when PVC is deleted for some reasons like node deletion. Thus, the reconciler was revived by PR #620.
func (*PersistentVolumeClaimReconciler) SetupWithManager ¶
func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.