-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: do not delete workspace pod on authz errors #805
Conversation
This change is part of the following stack: Change managed by git-spice. |
e67cd54
to
a169516
Compare
a169516
to
7bf4d36
Compare
33050e6
to
1271737
Compare
7bf4d36
to
b348133
Compare
bfc8e33
to
ca8756c
Compare
c0e6dc7
to
8463e76
Compare
b348133
to
2284f6a
Compare
8463e76
to
10d493d
Compare
2284f6a
to
54c5d23
Compare
10d493d
to
a77a9a3
Compare
f0e65e8
to
165c95d
Compare
165c95d
to
ce9586f
Compare
6b85dd2
to
c19278f
Compare
b94b75d
to
8a708b3
Compare
c19278f
to
a3788c0
Compare
1cc80cb
to
2c1bbf8
Compare
2c1bbf8
to
3c685f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #805 +/- ##
==========================================
- Coverage 51.48% 51.22% -0.27%
==========================================
Files 31 31
Lines 4296 4318 +22
==========================================
Hits 2212 2212
- Misses 1895 1917 +22
Partials 189 189 ☔ View full report in Codecov by Sentry. |
0fd5e9f
to
b2dd7af
Compare
b2dd7af
to
6c2747a
Compare
Proposed Changes
This PR updates the workspace controller to run the grpc
WhoAmI
command before proceeding with reconciliation. This change helps surface authentication issues early in the process.If authentication fails, the workspace pod is retained rather than deleted, as it remains in a pristine state. This avoids unnecessary pod recreation and reduces the time required to spin up a new StatefulSet pod. Additionally, it prevents excessive workspace pod churn in the event of persistent authentication failures.
Example Log Output on Authentication Failure
Stored Workspace Status
When the wrong Pulumi Access token is provided:
When there is a K8s auth issue:
Testing
Related Issues (Optional)
Fixes: #740