controllers

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetadataPrefix - prefix for all labels & annotations
	MetadataPrefix = "storage.dell.com"

	// NodeYaml - yaml file name for node
	NodeYaml = "node.yaml"

	// CSMFinalizerName -
	CSMFinalizerName = "finalizer.dell.emc.com"

	// CSMVersion -
	CSMVersion = "v1.12.0"
)

Variables

View Source
var (

	// CSMVersionKey -
	CSMVersionKey = fmt.Sprintf("%s/%s", MetadataPrefix, "CSMVersion")

	// StopWatch - watcher stop handle
	StopWatch = make(chan struct{})
)

Functions

This section is empty.

Types

type ContainerStorageModuleReconciler

type ContainerStorageModuleReconciler struct {
	// controller runtime client, responsible for create, delete, update, get etc.
	client.Client
	// k8s client, implements client-go/kubernetes interface, responsible for apply, which
	// client.Client does not provides
	K8sClient kubernetes.Interface
	Scheme    *runtime.Scheme
	Log       *zap.SugaredLogger
	Config    utils.OperatorConfig

	EventRecorder record.EventRecorder
	// contains filtered or unexported fields
}

ContainerStorageModuleReconciler reconciles a ContainerStorageModule object

func (*ContainerStorageModuleReconciler) ContentWatch

func (r *ContainerStorageModuleReconciler) ContentWatch() error

ContentWatch - watch updates on deployment and deamonset

func (*ContainerStorageModuleReconciler) GetClient

GetClient - returns the split client

func (*ContainerStorageModuleReconciler) GetK8sClient added in v0.2.0

GetK8sClient - Returns the current update count

func (*ContainerStorageModuleReconciler) GetUpdateCount

func (r *ContainerStorageModuleReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*ContainerStorageModuleReconciler) IncrUpdateCount

func (r *ContainerStorageModuleReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*ContainerStorageModuleReconciler) PreChecks

PreChecks - validate input values

func (*ContainerStorageModuleReconciler) Reconcile

Reconcile - main loop

func (*ContainerStorageModuleReconciler) SetupWithManager

func (r *ContainerStorageModuleReconciler) SetupWithManager(mgr ctrl.Manager, limiter ratelimiter.RateLimiter, maxReconcilers int) error

SetupWithManager sets up the controller with the Manager.

func (*ContainerStorageModuleReconciler) SyncCSM

SyncCSM - Sync the current installation - this can lead to a create or update

type DriverConfig

type DriverConfig struct {
	Driver     *storagev1.CSIDriver
	ConfigMap  *corev1.ConfigMap
	Node       *utils.NodeYAML
	Controller *utils.ControllerYAML
}

DriverConfig -

Jump to

Keyboard shortcuts

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