template

package
v0.0.0-...-6eef7e4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplateReconciler

func NewTemplateReconciler(client client.Client, recorder record.EventRecorder) (sentinelReconcilerAction controller.SentinelReconcilerAction)

NewTemplateReconciler create template reconciler

func ViewResourceWithMonitoringTemplate

func ViewResourceWithMonitoringTemplate() predicate.Predicate

Handle only resources that have the monitoring annotation or TemplateCentreonService type

func WatchTemplate

func WatchTemplate(c client.Client, parent client.ObjectList) handler.MapFunc

WatchTemplate permit to search resource created from Template to reconcil parents of them

Types

type TemplateReconciler

type TemplateReconciler struct {
	controller.SentinelReconcilerAction
}

func (*TemplateReconciler) Read

func (r *TemplateReconciler) Read(ctx context.Context, resource client.Object, data map[string]any, logger *logrus.Entry) (read controller.SentinelRead, res ctrl.Result, err error)

Read templates

Jump to

Keyboard shortcuts

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