controllers

package
v0.0.0-...-34a3a48 Latest Latest
Warning

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

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

Documentation

Overview

Package controllers ...

Package controllers ...

Package controllers ...

Package controllers ...

Index

Constants

View Source
const (
	// CreateError ...
	CreateError = "failed to create"
	// DeleteError ...
	DeleteError = "failed to delete"
	// GetError ...
	GetError = "failed to get"
	// ListError ...
	ListError = "failed to list"
	// UpdateError ...
	UpdateError = "failed to update"
	// NotFoundError ...
	NotFoundError = "not found"
)

Variables

View Source
var (
	TestLog       = log.Log.WithName("test")
	TestCtx       = context.TODO()
	TestNamespace = "test-namespace"
)

Functions

func LogFunctionDuration

func LogFunctionDuration(logger logr.Logger, methodName string, start time.Time)

LogFunctionDuration calculates time taken by a method

Types

type IBMObjectCSIReconciler

type IBMObjectCSIReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	Recorder         record.EventRecorder
	ControllerHelper *common.ControllerHelper
}

IBMObjectCSIReconciler reconciles a IBMObjectCSI object

func (*IBMObjectCSIReconciler) 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 IBMObjectCSI 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.14.1/pkg/reconcile

func (*IBMObjectCSIReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KubernetesClient

type KubernetesClient struct {
	Clientset kubernetes.Interface
}

KubernetesClient ...

type LogEntry

type LogEntry struct {
	PID       string
	Timestamp string
	File      string
	Message   string
}

LogEntry ...

type RecoverStaleVolumeReconciler

type RecoverStaleVolumeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	IsTest bool
}

RecoverStaleVolumeReconciler reconciles a RecoverStaleVolume object

func (*RecoverStaleVolumeReconciler) 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 RecoverStaleVolume 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.14.4/pkg/reconcile

func (*RecoverStaleVolumeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Package constants ...
Package constants ...
fake
client_create
Package fake ...
Package fake ...
client_create/storageclass
Package fake ...
Package fake ...
client_delete
Package fake ...
Package fake ...
client_get
Package fake ...
Package fake ...
client_get/csidriver
Package fake ...
Package fake ...
client_get/deployment
Package fake ...
Package fake ...
client_get/serviceaccount
Package fake ...
Package fake ...
client_list
Package fake ...
Package fake ...
client_list/deploymentpod
Package fake ...
Package fake ...
client_list/nodeserverpod
Package fake ...
Package fake ...
client_list/pvc
Package fake ...
Package fake ...
client_update
Package fake ...
Package fake ...
client_update/ibmobjectcsi
Package fake ...
Package fake ...
internal
common
Package common ...
Package common ...
crutils
Package crutils ...
Package crutils ...
Package syncer ...
Package syncer ...
Package util ...
Package util ...
common
Package common ...
Package common ...

Jump to

Keyboard shortcuts

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