targetcontroller

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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