controller

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FinalizerName is the finalizer added to Silence resources
	FinalizerName = "observability.giantswarm.io/silence-protection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SilenceReconciler

type SilenceReconciler struct {
	// contains filtered or unexported fields
}

SilenceReconciler reconciles a Silence object

func NewSilenceReconciler added in v0.17.0

func NewSilenceReconciler(client client.Client, silenceService *service.SilenceService, tenancyHelper *tenancy.Helper) *SilenceReconciler

NewSilenceReconciler creates a new SilenceReconciler with the provided silence service and tenancy helper

func (*SilenceReconciler) Reconcile

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

func (*SilenceReconciler) SetupWithManager

func (r *SilenceReconciler) SetupWithManager(mgr ctrl.Manager, cfg config.Config) error

SetupWithManager sets up the controller with the Manager.

type SilenceV2Reconciler added in v0.17.0

type SilenceV2Reconciler struct {
	// contains filtered or unexported fields
}

SilenceV2Reconciler reconciles a Silence object in the observability.giantswarm.io API group +kubebuilder:rbac:groups=observability.giantswarm.io,resources=silences,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=observability.giantswarm.io,resources=silences/finalizers,verbs=update

func NewSilenceV2Reconciler added in v0.17.0

func NewSilenceV2Reconciler(client client.Client, silenceService *service.SilenceService, tenancyHelper *tenancy.Helper) *SilenceV2Reconciler

NewSilenceV2Reconciler creates a new SilenceV2Reconciler with the provided silence service and tenancy helper

func (*SilenceV2Reconciler) Reconcile added in v0.17.0

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

func (*SilenceV2Reconciler) SetupWithManager added in v0.17.0

func (r *SilenceV2Reconciler) SetupWithManager(mgr ctrl.Manager, cfg config.Config) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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