{"modulePath":"github.com/stackitcloud/yawol","version":"v0.34.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package targetcontroller\n\n## Constants\n\n```go\nconst (\n\t// From https://github.com/kubernetes/cloud-provider/blob/81e4f58b4d1badd71d633d356faaaf69d971d874/controllers/service/controller.go#L64C2-L64C53\n\tToBeDeletedTaint = \"ToBeDeletedByClusterAutoscaler\"\n\t// From https://github.com/gardener/machine-controller-manager/blob/fc341881a5e71d7c5f240ca73415f967084aa85b/pkg/util/provider/machineutils/utils.go#L61\n\tNodeTerminationCondition coreV1.NodeConditionType = \"Terminating\"\n)\n```\nnolint: lll // these are links...\n\n```go\nconst (\n\tServiceFinalizer      = \"stackit.cloud/loadbalancer\"\n\tServiceAnnotation     = \"yawol.stackit.cloud/serviceName\"\n\tLoadBalancerLabelName = \"yawol.stackit.cloud/loadbalancer\"\n)\n```\n\n## Functions\n\n```go\nfunc EqualLoadBalancerEndpoints(eps1, eps2 []yawolv1beta1.LoadBalancerEndpoint) bool\n```\n\n## Types\n\n```go\ntype InfrastructureDefaults struct {\n\tAuthSecretName    *string\n\tFloatingNetworkID *string\n\tNetworkID         *string\n\tSubnetID          *string\n\tNamespace         *string\n\tFlavorRef         *yawolv1beta1.OpenstackFlavorRef\n\tImageRef          *yawolv1beta1.OpenstackImageRef\n\tAvailabilityZone  *string\n\tInternalLB        *bool\n}\n```\n\n```go\nfunc GetInfrastructureDetailsFromService(svc *v1.Service) InfrastructureDefaults\n```\n\n```go\nfunc GetMergedInfrastructureDetails(defaults InfrastructureDefaults, svc *v1.Service) InfrastructureDefaults\n```\nReturns InfrastructureDefaults overwritten with svc details\n\n```go\ntype NodeReconciler struct {\n\tTargetClient           client.Client\n\tControlClient          client.Client\n\tInfrastructureDefaults InfrastructureDefaults\n\tLog                    logr.Logger\n\tScheme                 *runtime.Scheme\n\tRecorder               record.EventRecorder\n}\n```\nNodeReconciler reconciles service Objects with type LoadBalancer\n\n```go\nfunc (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\n\\+kubebuilder:rbac:groups=core,resources=node,verbs=get;list;watch\n\n```go\nfunc (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\n\n```go\ntype ServiceReconciler struct {\n\tTargetClient           client.Client\n\tControlClient          client.Client\n\tInfrastructureDefaults InfrastructureDefaults\n\tLog                    logr.Logger\n\tScheme                 *runtime.Scheme\n\tRecorder               record.EventRecorder\n\tClassNames             []string\n}\n```\nServiceReconciler reconciles service Objects with type LoadBalancer\n\n```go\nfunc (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)\n```\n\\+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch\n\n```go\nfunc (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error\n```\n\n","path":"github.com/stackitcloud/yawol/controllers/yawol-cloud-controller/targetcontroller","name":"targetcontroller","synopsis":"","isRedistributable":true}
