Documentation ¶
Index ¶
- func NewServiceMonitorReconciler(mgr manager.Manager, cs clients.ClientSet) reconciler.SecondaryResourceReconciler
- func ResourceExists(dc discovery.DiscoveryInterface, apiGroupVersion, kind string) (bool, error)
- type ReconcileServiceMonitor
- func (in *ReconcileServiceMonitor) CreateServiceMonitor(ctx context.Context, namespace, name string, storage utils.Storage, ...) error
- func (in *ReconcileServiceMonitor) GetReconciler() reconcile.Reconciler
- func (in *ReconcileServiceMonitor) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (in *ReconcileServiceMonitor) ReconcileAllResourceOfKind(ctx context.Context, request reconcile.Request, d coh.CoherenceResource, ...) (reconcile.Result, error)
- func (in *ReconcileServiceMonitor) ReconcileSingleResource(ctx context.Context, namespace, name string, owner coh.CoherenceResource, ...) error
- func (in *ReconcileServiceMonitor) UpdateServiceMonitor(ctx context.Context, namespace, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceMonitorReconciler ¶
func NewServiceMonitorReconciler(mgr manager.Manager, cs clients.ClientSet) 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 ¶
func (in *ReconcileServiceMonitor) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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 (*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.
Click to show internal directories.
Click to hide internal directories.