Conversation
…ntroller The StackitCluster reconciler now owns the whole apiserver target pool and derives it from the control-plane Machines of the cluster.
A cluster deletion filters out every machine at once, and the placeholder must not overwrite the pool while the API server is still needed.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #24
The API server load balancer is created by the
StackitClusterreconciler while its targetpool was maintained by
StackitMachine. That leaked cluster-level infrastructure into themachine controller and let several machines write to the same pool concurrently. STACKIT takes
an explicit target list rather than label-based membership, so the pool now has exactly one
owner.
StackitClusterwatches control-planeMachineevents and rebuilds the pool fromMachine.Status.Addresses, which Cluster API propagates fromStackitMachine.status.addresses.No RBAC change. The watch carries a predicate, since control plane status updates are frequent
and each one would otherwise cost a full reconcile.
EnsureAPIServerLoadBalancerTargetandDeleteAPIServerLoadBalancerTargetare replaced bySetAPIServerLoadBalancerTargets, which applies the pool as a set and skips the write whennothing changed.
reconcileAPIServerLoadBalancerTarget,deleteAPIServerLoadBalancerTargetand
EnsureForMachineare gone.retryable. Machine names are therefore sanitized into valid display names, with a digest
against collisions, and duplicate target IPs are dropped.
plane before the infrastructure, so every machine is filtered out at once while the API server
is still needed for drain and etcd member removal.
sets only
LoadBalancerReady, neverReady. The machine reconciler stops while the cluster isnot ready, so failing the cluster would block replacing the machine whose target is broken.
Accepted trade-off: removing a target is no longer a precondition of the machine finalizer.
If the cluster controller is wedged, a target pointing at a dead IP survives, and the create path
sets no
ActiveHealthCheckthat would fail it out. Should STACKIT recycle that IP, the loadbalancer forwards API traffic to an unrelated VM.
make lint,make testandmake manifestsare clean,config/is unchanged. The specs for thepool collapse and the permanent-failure case were checked against the unfixed code and fail there.
E2E was not run.