controllers

package
v0.0.0-...-99f3f31 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LumigoReconciler

type LumigoReconciler struct {
	// "One Controller to use them all [clients], One Controller to find them, One Controller to mangle them all and in the kubelet bind them."
	// You may wonder: WHY ALL THESE CLIENTS?!? Well, because each fills a different niche:
	client.Client                           // Deal with typed resources that you know the type for
	*kubernetes.Clientset                   // Deal with events
	DynamicClient         dynamic.Interface // Look up object references of resources we don't want to treat in a typed fashion
	// End of clients (?)
	record.EventRecorder
	Scheme                                    *runtime.Scheme
	Log                                       logr.Logger
	LumigoOperatorVersion                     string
	LumigoInjectorImage                       string
	TelemetryProxyOtlpServiceUrl              string
	TelemetryProxyNamespaceConfigurationsPath string
}

LumigoReconciler reconciles a Lumigo object

func (*LumigoReconciler) Reconcile

func (r *LumigoReconciler) 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. The Reconcile function must compare the state specified by the Lumigo 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.13.0/pkg/reconcile

+kubebuilder:rbac:groups=operator.lumigo.io,resources=lumigoes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=operator.lumigo.io,resources=lumigoes/status,verbs=get;update;patch +kubebuilder:rbac:groups=operator.lumigo.io,resources=lumigoes/finalizers,verbs=update +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch

func (*LumigoReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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