Skip to content

🐛 Reorder engaging clusters in kubeconfig provider#120

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
ntnn:fix-kubeconfig-flakes
Dec 3, 2025
Merged

🐛 Reorder engaging clusters in kubeconfig provider#120
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
ntnn:fix-kubeconfig-flakes

Conversation

@ntnn
Copy link
Copy Markdown
Member

@ntnn ntnn commented Dec 3, 2025

The original order was:

  1. Start cluster
  2. Engage the cluster with the manager
  3. Wait for cache sync
  4. Add to known clusters

This caused issues if a reconciler from the manager attempts to retrieve the cluster as at that point the provider does not know the cluster.

New order:

  1. Start cluster
  2. Wait for cache sync
  3. Add cluster to known clusters
  4. Engage cluster with manager

This ensures that the cluster is ready when engaging it with the manager

Fixes #119

The original order was:
1. Start cluster
2. Engage the cluster with the manager
3. Wait for cache sync
4. Add to known clusters

This caused issues if a reconciler from the manager attempts to retrieve
the cluster as at that point the provider does not know the cluster.

New order:
1. Start cluster
2. Wait for cache sync
3. Add cluster to known clusters
4. Engage cluster with manager

This ensures that the cluster is ready when engaging it with the manager

Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@k8s-ci-robot k8s-ci-robot requested review from embik and skitt December 3, 2025 10:32
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 3, 2025
Copy link
Copy Markdown
Collaborator

@mjudeikis mjudeikis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no! Feels like we need to enforce this order in the manager with some state variable :D

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 3, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 4575046d1ca24ad2e583f2589cc256677bead80f

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis, ntnn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2025
@k8s-ci-robot k8s-ci-robot merged commit f17fa06 into kubernetes-sigs:main Dec 3, 2025
39 checks passed
@ntnn ntnn deleted the fix-kubeconfig-flakes branch December 3, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider kubeconfig test flake

4 participants