Repository navigation
feat(controller): verify external control plane and mark initialized - #44
Open
breuerfelix wants to merge 9 commits into
Open
breuerfelix wants to merge 9 commits into
breuerfelix wants to merge 9 commits into
Conversation
tuunit
reviewed
Dec 1, 2026
| return false | ||
| } | ||
| return !stackitCluster.Spec.APIServerLoadBalancer.Enabled && | ||
| (stackitCluster.Spec.ControlPlaneEndpoint.Host != "" || cluster.Spec.ControlPlaneEndpoint.Host != "") |
Contributor
There was a problem hiding this comment.
Isn't the cluster control plane endpoint check useless? By allowing two different ways of configuring this. I would assume this increases the branching/complexity unnecessarily, right? You are required to specify an InfraCluster in our case StackitCluster anyways and therefore we can just require the control plane endpoint to be set on this CR and only check against its content
Signed-off-by: Felix Breuer <f.breuer94@gmail.com>
breuerfelix
force-pushed
the
control-plane-self-awareness
branch
from
December 1, 2026 15:54
add4831 to
5e29562
Compare
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.
Why
When CAPSTK runs with an externally managed control plane (
Cluster.spec.controlPlaneRefunset), core Cluster API leavesControlPlaneInitializedfalse and blocks worker provisioning until an operator patchesCluster/statusmanually.Changes
Cluster.spec.controlPlaneRefis unset,apiServerLoadBalancer.enabledisfalse, and acontrolPlaneEndpointis configured,StackitClusterReconcilerverifies TCP connectivity to the endpoint and patchesCluster.status.initialization.controlPlaneInitialized = trueplus theControlPlaneInitialized=Truecondition (returning an error for backoff if the endpoint is unreachable).clusters/status(get;update;patch) RBAC permissions.STACKIT_E2E_SELF_AWARENESS=true), and pointed VM-only e2e fixtures tokubernetes.default.svc:443.Testing
make testpasses.v1.14.4e2e test (STACKIT_E2E_SELF_AWARENESS=true) passed.