servicemonitor

package
v0.0.0-...-fc29aca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: UPL-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceMonitorReconciler

func NewServiceMonitorReconciler(mgr manager.Manager) reconciler.SecondaryResourceReconciler

NewServiceMonitorReconciler returns a new ServiceMonitor reconciler.

func ResourceExists

func ResourceExists(dc discovery.DiscoveryInterface, apiGroupVersion, kind string) (bool, error)

ResourceExists returns true if the given resource kind exists in the given api group/version

Types

type ReconcileServiceMonitor

type ReconcileServiceMonitor struct {
	reconciler.ReconcileSecondaryResource
	// contains filtered or unexported fields
}

func (*ReconcileServiceMonitor) CreateServiceMonitor

func (in *ReconcileServiceMonitor) CreateServiceMonitor(ctx context.Context, namespace, name string, storage utils.Storage, logger logr.Logger) error

CreateServiceMonitor creates a ServiceMonitor spec.

func (*ReconcileServiceMonitor) GetReconciler

func (in *ReconcileServiceMonitor) GetReconciler() reconcile.Reconciler

func (*ReconcileServiceMonitor) Reconcile

Reconcile reads that state of the ServiceMonitors for a deployment and makes changes based on the state read and the desired state based on the parent Coherence resource.

func (*ReconcileServiceMonitor) ReconcileAllResourceOfKind

func (in *ReconcileServiceMonitor) ReconcileAllResourceOfKind(ctx context.Context, request reconcile.Request, d coh.CoherenceResource, storage utils.Storage) (reconcile.Result, error)

ReconcileAllResourceOfKind reconciles the state of the desired ServiceMonitors for the reconciler

func (*ReconcileServiceMonitor) ReconcileSingleResource

func (in *ReconcileServiceMonitor) ReconcileSingleResource(ctx context.Context, namespace, name string, owner coh.CoherenceResource, storage utils.Storage, logger logr.Logger) error

func (*ReconcileServiceMonitor) UpdateServiceMonitor

func (in *ReconcileServiceMonitor) UpdateServiceMonitor(ctx context.Context, namespace, name string, current *monitoring.ServiceMonitor, storage utils.Storage, logger logr.Logger) error

UpdateServiceMonitor possibly updates the ServiceMonitor if the current state differs from the desired state.

Jump to

Keyboard shortcuts

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