Documentation
¶
Index ¶
Constants ¶
View Source
const ( // From https://github.com/kubernetes/cloud-provider/blob/81e4f58b4d1badd71d633d356faaaf69d971d874/controllers/service/controller.go#L64C2-L64C53 ToBeDeletedTaint = "ToBeDeletedByClusterAutoscaler" // From https://github.com/gardener/machine-controller-manager/blob/fc341881a5e71d7c5f240ca73415f967084aa85b/pkg/util/provider/machineutils/utils.go#L61 NodeTerminationCondition coreV1.NodeConditionType = "Terminating" )
nolint: lll // these are links...
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 SubnetID *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 ¶
+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 ¶
+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch
func (*ServiceReconciler) SetupWithManager ¶
func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.