controllers

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FAILED_STATE     = "failed"
	INPROGRESS_STATE = "reconciling"
	SUCCESS_STATE    = "success"

	DEFAULT_INIT_CONTAINER_IMAGE = "networkop/init-wait:latest"
	CEOS_COMMAND                 = "/sbin/init"
	DEFAULT_CEOS_IMAGE           = "ceos:latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CEosLabDeviceReconciler

type CEosLabDeviceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

CEosLabDeviceReconciler reconciles a CEosLabDevice object

func (*CEosLabDeviceReconciler) Reconcile

func (r *CEosLabDeviceReconciler) 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.11.2/pkg/reconcile

func (*CEosLabDeviceReconciler) SetupWithManager

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