-
Notifications
You must be signed in to change notification settings - Fork 61
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
Don't prompt before switching over to service account on Sandbox #3908
Don't prompt before switching over to service account on Sandbox #3908
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3908 +/- ##
===========================================
+ Coverage 32.37% 45.28% +12.91%
===========================================
Files 85 85
Lines 6505 6525 +20
Branches 1349 1347 -2
===========================================
+ Hits 2106 2955 +849
+ Misses 4399 3570 -829 ☔ View full report in Codecov by Sentry. |
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.
It happens that if I'm logged out and trying to login to sandbox using a provided token, I get the following error:
in line 914 of installPipelineUserContext()
:
const pipelineToken = Buffer.from(pipelineTokenSecret.data.token, 'base64').toString();
... because pipelineTokenSecret
is undefined. (I've taken a look on gathered secrets - there is really no a secret which matadata.name
is starting with pipeline-token
).
As result I'm logged in, but still using the provided token, not the service account one
It doesn't matter if I user this PR or So in any case we have to check if the service account token is really available on a cluster |
Which ServiceAccounts are available for you on the cluster? You should be able to find this in the OpenShift Console web site switching to "Administrator", then clicking on "User Management" > "ServiceAccounts" in the sidebar. |
For example, the
its |
hmm, so they removed the |
Yes, looks reasonable. |
@vrubezhny I'm going to modify this PR so that it doesn't install the token if there is no |
Per our discussion, this makes the experience smoother Signed-off-by: David Thompson <davthomp@redhat.com>
9d433c5
to
a79f7ef
Compare
Any news on possibility to have Service Account available in future? |
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.
Looks good to me. Thanks!
Per our discussion, this makes the experience smoother
Signed-off-by: David Thompson davthomp@redhat.com