Documentation ¶
Index ¶
Constants ¶
const (
KeyNode = "kubernetes.io/hostname"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheReconciler ¶
type CacheReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ManagerNamespace string ServiceAccountName string }
CacheReconciler reconciles a Cache object
func (*CacheReconciler) Reconcile ¶
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 Cache 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.7.0/pkg/reconcile
func (*CacheReconciler) SetupWithManager ¶
func (r *CacheReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PersistentVolumeClaimReconciler ¶
type PersistentVolumeClaimReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ManagerNamespace string Provisioners Provisioners // contains filtered or unexported fields }
PersistentVolumeClaimReconciler reconciles a Cache 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*PersistentVolumeClaimReconciler) SetupWithManager ¶
func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PersistentVolumeReconciler ¶
type PersistentVolumeReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ManagerNamespace string Provisioners Provisioners // contains filtered or unexported fields }
PersistentVolumeReconciler reconciles a Cache object
func (*PersistentVolumeReconciler) Reconcile ¶
func (r *PersistentVolumeReconciler) 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*PersistentVolumeReconciler) SetupWithManager ¶
func (r *PersistentVolumeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PodReconciler ¶ added in v0.2.0
type PodReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Provisioners Provisioners }
PodReconciler reconciles a Pod object
func (*PodReconciler) SetupWithManager ¶ added in v0.2.0
func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error
type ProvisionerRegistry ¶
type ProvisionerRegistry struct {
// contains filtered or unexported fields
}
func LoadProvisioners ¶
func (*ProvisionerRegistry) Delete ¶
func (r *ProvisionerRegistry) Delete(p *storageapi.StorageProvisioner)
func (*ProvisionerRegistry) Get ¶
func (r *ProvisionerRegistry) Get(name string) *storageapi.StorageProvisioner
func (*ProvisionerRegistry) Keys ¶
func (r *ProvisionerRegistry) Keys() []string
func (*ProvisionerRegistry) Put ¶
func (r *ProvisionerRegistry) Put(p *storageapi.StorageProvisioner) error
type Provisioners ¶
type Provisioners interface {
Get(name string) *storageapi.StorageProvisioner
}
type StorageProvisionerReconciler ¶
type StorageProvisionerReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Provisioners *ProvisionerRegistry Namespace string }
StorageProvisionerReconciler reconciles a StorageProvisioner object
func (*StorageProvisionerReconciler) Reconcile ¶
func (r *StorageProvisionerReconciler) 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 StorageProvisioner 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.7.0/pkg/reconcile
func (*StorageProvisionerReconciler) SetupWithManager ¶
func (r *StorageProvisionerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.