controllers

package
v0.0.0-...-874eccf Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SkipAnnotation             = "logz.io/skip"
	LogTypeAnnotation          = "logz.io/application_type"
	TracesInstrumentAnnotation = "logz.io/traces_instrument"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentReconciler

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

DeploymentReconciler reconciles a Deployment object

func (*DeploymentReconciler) Reconcile

func (r *DeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is responsible for creating InstrumentedApplication objects for every Deployment. In addition, Reconcile patch the deployment according to the discovered language and keeps the `instrumented` field of InstrumentedApplication up to date with the deployment spec.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.2/pkg/reconcile

func (*DeploymentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type InstrumentedApplicationReconciler

type InstrumentedApplicationReconciler struct {
	client.Client
	Scheme                            *runtime.Scheme
	InstrumentationDetectorTag        string
	InstrumentationDetectorImage      string
	DeleteInstrumentationDetectorPods bool
}

InstrumentedApplicationReconciler reconciles a InstrumentedApplication object

func (*InstrumentedApplicationReconciler) Reconcile

Reconcile is responsible for language detection. The function starts the lang detection process-app if the InstrumentedApplication object does not have a languages field. In addition, Reconcile will clean up lang detection pods upon completion / error

func (*InstrumentedApplicationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type StatefulSetReconciler

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

StatefulSetReconciler reconciles a StatefulSet object

func (*StatefulSetReconciler) Reconcile

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

func (*StatefulSetReconciler) SetupWithManager

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