PC 1061: Return error on pat exchange failure#361
Merged
Conversation
CI failed: The test suite failed because the controller manager pod is crashing during startup, likely due to an unhandled or fatal error introduced by the recent changes in PAT exchange logic.OverviewThe 'Test Metrics Server Lifecycle' test is failing because the controller-manager pod is unable to pass its readiness and liveness probes. Analysis indicates that the binary is crashing before it can bind to the health check port, strongly suggesting a regression in the initialization logic introduced by the PR. FailuresController Manager Readiness/Liveness Probe Failure (confidence: medium)
Summary
Code Review ✅ ApprovedAdds explicit error handling for PAT exchange failures, ensuring the application properly propagates authentication errors. No issues found. Tip Comment Was this helpful? React with 👍 / 👎 | Gitar |
Tzvonimir
approved these changes
Apr 23, 2026
Parthiba-Hazra
added a commit
that referenced
this pull request
May 5, 2026
Parthiba-Hazra
added a commit
that referenced
this pull request
May 5, 2026
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.
Fixing zxporter to crash-loop on PAT exchange failure
📚 Description of Changes
Provide an overview of your changes and why they’re needed. Link to any related issues (e.g., "Fixes #123"). If your PR fixes a bug, resolves a feature request, or updates documentation, please explain how.
What Changed:
(Describe the modifications, additions, or removals.)
Why This Change:
(Explain the problem this PR addresses or the improvement it provides.)
Before PAT exchange on hitting cluster limit would fail silently
Affected Components:
(Which component does this change affect? - put x for all components)
Compose
K8s
Other (please specify)
❓ Motivation and Context
Why is this change required? What problem does it solve?
Context:
(Provide background information or link to related discussions/issues.)
Relevant Tasks/Issues:
(e.g., Fixes: #GitHub Issue)
🔍 Types of Changes
Indicate which type of changes your code introduces (check all that apply):
🔬 QA / Verification Steps
Describe the steps a reviewer should take to verify your changes:
make testto verify all tests pass.")make create-kind && make deploy.")✅ Global Checklist
Please check all boxes that apply:
Summary by Gitar
K8sClienttype from*kubernetes.Clientsettokubernetes.Interfacefor better abstraction.dakrClientFactorytoEnvBasedControllerto allow dependency injection of the client.This will update automatically on new commits.