-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add role for metrics #19651
Add role for metrics #19651
Conversation
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
Can you explain how it works? How to test it? |
Hi @skabashnyuk I've updated the description, please let me know if something is unclear |
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.
I haven't tested changes but it makes sense to me. To be clear, the added RBAC is still restricted to the workspace's namespace, right?
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.
The only concern I have with this PR, it does not seem to affect existing users, who have SA already initialized, but I'm happy to be wrong here https://github.com/svor/che/blob/sv-metrics/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/AbstractWorkspaceServiceAccount.java#L113
@metlos I remember you worked in this area and we already discussed how we should update/why we should not update SA and roles, but I don't remember details.
Please merge the latest master to fix the build check. |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: svor <vsvydenk@redhat.com>
This comment has been minimized.
This comment has been minimized.
That is correct. The service account is only created once and not touched afterwards. Maybe we should revisit that and make sure the service account has all the rolebindings we require (and keep any additional that the admin may have added there). |
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.
LGTM, but as @sleshchenko said, we need to follow this up by another issue where we should make sure the service account has bindings to all the roles we require.
Who can do that(create an issue)? |
@skabashnyuk here is the issue #19697 |
[crw-ci-test --rebuild] |
This comment has been minimized.
This comment has been minimized.
[crw-ci-test --rebuild] |
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
@svor: Happy path tests above have failed because test workspace hasn't started:
|
to make happy path tests happy, firstly need to merge eclipse-che/che-operator#793 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
[crw-ci-test --rebuild] |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)
|
Signed-off-by: svor vsvydenk@redhat.com
What does this PR do?
Adds new role workspace-metrics for workspace ServiceAccount to get an information about workspace's resources from Metric server. It makes possible to read metrics of the workspace which is running in different namespace than che.
What issues does this PR fix or reference?
#18812
How to test this PR?
To check this changes, you need:
cheimage
with current changesusername-che
which is different than the namespes where che was deployedusername-che
namespaceAs a result
workspace-metrics
should be existed in the listPR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.