controllers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
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

func (r *CacheReconciler) 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 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

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

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) Reconcile added in v0.2.0

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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 LoadProvisioners(ctx context.Context, c client.Client, namespace string, log logr.Logger) (*ProvisionerRegistry, error)

func (*ProvisionerRegistry) Delete

func (*ProvisionerRegistry) Get

func (*ProvisionerRegistry) Keys

func (r *ProvisionerRegistry) Keys() []string

func (*ProvisionerRegistry) Put

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL