controllers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadChart

func LoadChart(repository, chart, version string) (*chart.Chart, error)

LoadChart downloads the Helm chart at the given repository and version.

Types

type NewRelicReconciler

type NewRelicReconciler struct {
	client.Client
	Scheme *k8sruntime.Scheme
	// contains filtered or unexported fields
}

NewRelicReconciler reconciles a Monitor object

func (*NewRelicReconciler) Reconcile

func (r *NewRelicReconciler) 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. It currently checks the user's desired version of nri-bundle, and starts/restarts the proper HelmChart reconciler accordingly.

func (*NewRelicReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*NewRelicReconciler) Stop

func (r *NewRelicReconciler) Stop()

Stop should be called whenever the reconciler exits, to ensure all subprocesses are also halted.

Jump to

Keyboard shortcuts

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