Fixes on tests & kbs-cert#265
Open
Jakob-Naucke wants to merge 4 commits into
Open
Conversation
Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
have been seen to conflict Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jakob-Naucke The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideCentralizes Kubernetes client creation for the register and attestation-key register servers, improves TLS-related logging, relaxes test timing and RBAC apply behavior, fixes Makefile shell and documentation typo, and tightens error handling and attribution comments. Sequence diagram for centralized Kubernetes client usage in register serversequenceDiagram
participant RegisterServerMain as RegisterServerMain
participant Client as Client
participant Router as Router
participant RegisterHandler as register_handler
participant KubeAPI as KubernetesAPIServer
RegisterServerMain->>Client: try_default()
Client-->>RegisterServerMain: Client
RegisterServerMain->>Router: new()
RegisterServerMain->>Router: route(endpoint, get(register_handler))
RegisterServerMain->>Router: with_state(Client)
RegisterServerMain->>RegisterServerMain: axum_server::bind / bind_openssl
RegisterHandler->>RegisterHandler: receives State(Client)
RegisterHandler->>KubeAPI: get_trusted_execution_cluster(Client)
KubeAPI-->>RegisterHandler: TrustedExecutionCluster
RegisterHandler-->>RegisterServerMain: IntoResponse
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
Client::try_default().await.expect("failed to create Kubernetes client")pattern is duplicated in both binaries; consider extracting a small async helper that constructs and logs a richer error once so startup failure handling is consistent and easier to adjust later.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `Client::try_default().await.expect("failed to create Kubernetes client")` pattern is duplicated in both binaries; consider extracting a small async helper that constructs and logs a richer error once so startup failure handling is consistent and easier to adjust later.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Were created upon already merged PR in testing. - Set SHELL in Makefile - Create Client just once in register servers - Print https when used - spelling Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
704c710 to
ef3f1c1
Compare
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.
Sourcery comments were created upon already merged PR in testing.
Drive-by:
Summary by Sourcery
Improve Kubernetes client handling for registration services and stabilize test and build configuration.
Bug Fixes:
Enhancements:
Build:
Documentation:
Tests: