-
Notifications
You must be signed in to change notification settings - Fork 452
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
Refactor the target allocator build to not run it as root #1345
Conversation
Signed-off-by: Israel Blancas <[email protected]>
Signed-off-by: Israel Blancas <[email protected]>
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.
How was this tested?
Signed-off-by: Israel Blancas <[email protected]>
@jaronoff97 thanks for your review! I created #1346 to track this issue. There, you can see how I found the issue and how I checked everything was working properly after applying the changes from this PR. Please, let me know if further changes need to be done :) |
…or into run-ta-nonroot
Signed-off-by: Israel Blancas <[email protected]>
Thanks for making the issue! Could you add how you tested this to the description of the PR? |
@jaronoff97 done |
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.
Otherwise lgtm :) Thanks @iblancasa
…or into run-ta-nonroot
Signed-off-by: Israel Blancas <[email protected]>
…etry#1345) * Refactor the target allocator build to not run it as root Signed-off-by: Israel Blancas <[email protected]> * Add missing changelog Signed-off-by: Israel Blancas <[email protected]> * Fix issue number in changelog Signed-off-by: Israel Blancas <[email protected]> * Trigger Build Signed-off-by: Israel Blancas <[email protected]> * Use scratch image as base image for the target allocator Signed-off-by: Israel Blancas <[email protected]> Signed-off-by: Israel Blancas <[email protected]>
Signed-off-by: Israel Blancas [email protected]
Fixes #1346
This change makes the target allocator being run as non root. The Dockerfile follows the same structure than the one from the OTEL Collector Operator.
Steps performed to ensure the issue is fixed
$ kubectl create namespace oteltest
$ kubectl -n oteltest create rolebinding default-view-oteltest --role=pod-view --serviceaccount=oteltest:ta
$ kubectl create -f tests/e2e/targetallocator-features/00-install.yaml -n oteltest:ta
$ kubectl get pods -n oteltest
)