targetcontroller

package
v0.21.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ServiceFinalizer      = "stackit.cloud/loadbalancer"
	ServiceAnnotation     = "yawol.stackit.cloud/serviceName"
	LoadBalancerLabelName = "yawol.stackit.cloud/loadbalancer"
)

Variables

This section is empty.

Functions

func EqualLoadBalancerEndpoints

func EqualLoadBalancerEndpoints(eps1, eps2 []yawolv1beta1.LoadBalancerEndpoint) bool

Types

type InfrastructureDefaults

type InfrastructureDefaults struct {
	AuthSecretName    *string
	FloatingNetworkID *string
	NetworkID         *string
	Namespace         *string
	FlavorRef         *yawolv1beta1.OpenstackFlavorRef
	ImageRef          *yawolv1beta1.OpenstackImageRef
	AvailabilityZone  *string
	InternalLB        *bool
}

func GetInfrastructureDetailsFromService

func GetInfrastructureDetailsFromService(svc *v1.Service) InfrastructureDefaults

func GetMergedInfrastructureDetails

func GetMergedInfrastructureDetails(defaults InfrastructureDefaults, svc *v1.Service) InfrastructureDefaults

Returns InfrastructureDefaults overwritten with svc details

type NodeReconciler

type NodeReconciler struct {
	TargetClient           client.Client
	ControlClient          client.Client
	InfrastructureDefaults InfrastructureDefaults
	Log                    logr.Logger
	Scheme                 *runtime.Scheme
	Recorder               record.EventRecorder
}

NodeReconciler reconciles service Objects with type LoadBalancer

func (*NodeReconciler) Reconcile

func (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=core,resources=node,verbs=get;list;watch

func (*NodeReconciler) SetupWithManager

func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error

type ServiceReconciler

type ServiceReconciler struct {
	TargetClient           client.Client
	ControlClient          client.Client
	InfrastructureDefaults InfrastructureDefaults
	Log                    logr.Logger
	Scheme                 *runtime.Scheme
	Recorder               record.EventRecorder
	ClassNames             []string
}

ServiceReconciler reconciles service Objects with type LoadBalancer

func (*ServiceReconciler) Reconcile

func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch

func (*ServiceReconciler) SetupWithManager

func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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