topolvm: github.com/cybozu-go/topolvm/controllers Index | Files

package controllers

import "github.com/cybozu-go/topolvm/controllers"

Index

Package Files

constants.go logicalvolume_cleanup.go logicalvolume_controller.go node_controller.go persistentvolumeclaim_controller.go

Constants

const (
    // KeySelectedNode is an indexing key for the controller
    KeySelectedNode = "metadata.annotations.selected-node"

    // 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"
)

type LogicalVolumeCleanupReconciler Uses

type LogicalVolumeCleanupReconciler struct {
    client.Client
    Log         logr.Logger
    Events      <-chan event.GenericEvent
    StalePeriod time.Duration
}

LogicalVolumeCleanupReconciler reconciles a LogicalVolume object

func (*LogicalVolumeCleanupReconciler) Reconcile Uses

func (r *LogicalVolumeCleanupReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile deletes stale LogicalVolume(s)

func (*LogicalVolumeCleanupReconciler) SetupWithManager Uses

func (r *LogicalVolumeCleanupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up Reconciler with Manager.

type LogicalVolumeReconciler Uses

type LogicalVolumeReconciler struct {
    client.Client
    Log      logr.Logger
    NodeName string
    Lvmd     *grpc.ClientConn
}

LogicalVolumeReconciler reconciles a LogicalVolume object on each node.

func (*LogicalVolumeReconciler) Reconcile Uses

func (r *LogicalVolumeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile creates/deletes LVM logical volume for a LogicalVolume.

func (*LogicalVolumeReconciler) SetupWithManager Uses

func (r *LogicalVolumeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up Reconciler with Manager.

type NodeReconciler Uses

type NodeReconciler struct {
    client.Client
    Log logr.Logger
}

NodeReconciler reconciles a Node object

func (*NodeReconciler) Reconcile Uses

func (r *NodeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile finalize Node

func (*NodeReconciler) SetupWithManager Uses

func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up Reconciler with Manager.

type PersistentVolumeClaimReconciler Uses

type PersistentVolumeClaimReconciler struct {
    client.Client
    APIReader client.Reader
    Log       logr.Logger
}

PersistentVolumeClaimReconciler reconciles a PersistentVolumeClaim object

func (*PersistentVolumeClaimReconciler) Reconcile Uses

func (r *PersistentVolumeClaimReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile finalize PVC

func (*PersistentVolumeClaimReconciler) SetupWithManager Uses

func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up Reconciler with Manager.

Package controllers imports 19 packages (graph). Updated 2019-11-13. Refresh now. Tools for package owners.