healthwatcher

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControllerToManager

func AddControllerToManager(logger logging.Logger, mgr manager.Manager, config *config.LandscaperServiceConfiguration) error

AddControllerToManager adds the HealthWatcher controller to the manager

func TransferLsHealthCheckStatusToAvailabilityInstance

func TransferLsHealthCheckStatusToAvailabilityInstance(availabilityInstance *lssv1alpha1.AvailabilityInstance, lsHealthChecks *lsv1alpha1.LsHealthCheckList, timeout time.Duration)

Types

type Controller

type Controller struct {
	operation.Operation
	// contains filtered or unexported fields
}

func NewTestActuator

func NewTestActuator(op operation.Operation, kubeClientExtractor ServiceTargetConfigKubeClientExtractorInterface, logger logging.Logger) *Controller

NewTestActuator creates a new controller for testing purposes.

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

type ServiceTargetConfigKubeClientExtractor

type ServiceTargetConfigKubeClientExtractor struct{}

func (*ServiceTargetConfigKubeClientExtractor) GetKubeClientFromServiceTargetConfig

func (e *ServiceTargetConfigKubeClientExtractor) GetKubeClientFromServiceTargetConfig(ctx context.Context, name string, namespace string, client client.Client) (client.Client, error)

type ServiceTargetConfigKubeClientExtractorInterface

type ServiceTargetConfigKubeClientExtractorInterface interface {
	GetKubeClientFromServiceTargetConfig(ctx context.Context, name string, namespace string, client client.Client) (client.Client, error)
}

ServiceTargetConfigKubeClientExtractorInterface implements functionality to create a kubeclient from a servive target config ref

Jump to

Keyboard shortcuts

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