Documentation ¶
Overview ¶
Package controllers ...
Package controllers ...
Package controllers ...
Package controllers ...
Index ¶
Constants ¶
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 ¶
var ( TestLog = log.Log.WithName("test") TestCtx = context.TODO() TestNamespace = "test-namespace" )
Functions ¶
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 ¶
func (r *IBMObjectCSIReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcile.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 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 RecoverStaleVolumeReconciler ¶
RecoverStaleVolumeReconciler reconciles a RecoverStaleVolume object
func (*RecoverStaleVolumeReconciler) Reconcile ¶
func (r *RecoverStaleVolumeReconciler) 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 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.
Source Files ¶
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 ... |