Documentation ¶
Index ¶
Constants ¶
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 ¶
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 ¶
func (r *InstrumentedApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
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.