Skip to content

fix(ci): increase wait kubeconfig and user-authz ready#2336

Merged
universal-itengineer merged 1 commit into
mainfrom
fix/ci/nested-e2e-bootstrap-kubeconfig
May 12, 2026
Merged

fix(ci): increase wait kubeconfig and user-authz ready#2336
universal-itengineer merged 1 commit into
mainfrom
fix/ci/nested-e2e-bootstrap-kubeconfig

Conversation

@universal-itengineer

@universal-itengineer universal-itengineer commented May 12, 2026

Copy link
Copy Markdown
Member

Description

Increase the waiting window for nested cluster kubeconfig validation and make the validation diagnostics non-fatal inside the retry loop.

The generated kubeconfig check now captures the kubectl get nodes error output, prints additional authorization diagnostics, and retries for longer while user-authz materializes the ClusterAuthorizationRule into RBAC bindings. The Deckhouse readiness helper also waits for the user-authz module in addition to user-authn.

Why do we need it, and what problem does it solve?

Nested e2e bootstrap can create the service account token and ClusterAuthorizationRule successfully, but fail immediately afterwards when validating the generated kubeconfig. In the observed failure, the ClusterRoleBinding managed by user-authz appeared several minutes after the ClusterAuthorizationRule was applied, while the previous retry window was only about 50 seconds.

This change removes that race from the CI path and keeps useful diagnostics in the logs without failing the job on the first temporary authorization error.

What is the expected result?

  1. Run the nested e2e bootstrap pipeline.
  2. Wait until Deckhouse, user-authn, and user-authz are ready in the nested cluster.
  3. Generate the nested cluster kubeconfig.
  4. Verify that kubeconfig validation retries until the generated service account can list nodes, or fails only after the extended timeout with diagnostic output.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: ci
type: fix
summary: Wait longer for nested e2e kubeconfig authorization to become ready.
impact_level: low

Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
@universal-itengineer universal-itengineer marked this pull request as ready for review May 12, 2026 08:43
@universal-itengineer universal-itengineer added this to the v1.9.0 milestone May 12, 2026
@universal-itengineer universal-itengineer merged commit 0df7a8c into main May 12, 2026
28 of 32 checks passed
@universal-itengineer universal-itengineer deleted the fix/ci/nested-e2e-bootstrap-kubeconfig branch May 12, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants