Skip to content

[release-0.31] Wait for authenticators to be initialized#4123

Open
kcp-ci-bot wants to merge 1 commit into
kcp-dev:release-0.31from
kcp-ci-bot:cherry-pick-4122-to-release-0.31
Open

[release-0.31] Wait for authenticators to be initialized#4123
kcp-ci-bot wants to merge 1 commit into
kcp-dev:release-0.31from
kcp-ci-bot:cherry-pick-4122-to-release-0.31

Conversation

@kcp-ci-bot
Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #4122

/assign ntnn

NONE

The authenticators do have a healthcheck, however this healthcheck is not exposed
and it is not easy to expose without intrusive changes.

An alternative would've been to use the update function returned by kubeAuthConfig.New
which _does_ wait until the authenticator's healthcheck are ready, however that would
create each authenticator twice and just discard the first iteration.

Instead the authenticator is validated by continually authenticating a dummy token
created with the first issuer until the error is no longer "not initialized".

Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 13, 2026
@ntnn
Copy link
Copy Markdown
Member

ntnn commented May 13, 2026

/kind bug

@kcp-ci-bot kcp-ci-bot added kind/bug Categorizes issue or PR as related to a bug. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels May 13, 2026
Copy link
Copy Markdown
Member

@ntnn ntnn left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor Author

LGTM label has been added.

DetailsGit tree hash: 24ecbc86cd63818421ec651b27de61b307115a62

@kcp-ci-bot
Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 13, 2026
@ntnn
Copy link
Copy Markdown
Member

ntnn commented May 13, 2026

/retest

odd flake

@ntnn ntnn added this to tbd May 13, 2026
@ntnn ntnn moved this to Reviewing in tbd May 13, 2026
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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants