-
Notifications
You must be signed in to change notification settings - Fork 33
Add ServiceAccounts for the ModuleLoader and DevicePlugin workloads #90
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 ServiceAccounts for the ModuleLoader and DevicePlugin workloads #90
Conversation
Hi @mresvanis. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov ReportBase: 72.90% // Head: 73.46% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #90 +/- ##
==========================================
+ Coverage 72.90% 73.46% +0.55%
==========================================
Files 16 17 +1
Lines 1705 1771 +66
==========================================
+ Hits 1243 1301 +58
- Misses 398 404 +6
- Partials 64 66 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
/ok-to-test |
This LGTM. Please fix the linting issue and squash into one commit. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mresvanis, qbarrand The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
4892a75
to
3f95a85
Compare
3f95a85
to
d60b38a
Compare
@ybettan @yevgeny-shnaidman this PR is now ready for review, whenever you have some time it would be great to take a look into it. Thank you! |
e034df0
to
41910e7
Compare
This change adds ServiceAccounts for the module loader and the device plugin workloads of a Module, when the ServiceAccounts are not defined in the Module.Spec.ModuleLoader.ServiceAccountName and Module.Spec.DevicePlugin.ServiceAccountName respectively. This way we avoid using the K8S default ServiceAccount, which may have different permissions that the module loader and/or the device plugin workloads require. Specifically, this change: - adds the required ServiceAccount permissions to the module reconciler - adds the following Module reconciliation steps when the Module.Spec.ModuleLoader.ServiceAccountName is empty: - adds a module loader ServiceAccount - adds the module loaderServiceAccount to the module loader DaemonSet - adds the following Module reconciliation steps when the Module.Spec.DevicePlugin.ServiceAccountName is empty: - adds a device plugin ServiceAccount - adds the device plugin ServiceAccount to the device plugin DaemonSet Signed-off-by: Michail Resvanis <[email protected]>
41910e7
to
c64e103
Compare
/lgtm |
1 similar comment
/lgtm |
…etes-sigs#90) In order to run only the `filter` package tests for example, use: ``` make unit-test TEST=github.com/qbarrand/oot-operator/internal/filter ``` Signed-off-by: Yoni Bettan <[email protected]>
…sigs#90) (#56) This change adds ServiceAccounts for the module loader and the device plugin workloads of a Module, when the ServiceAccounts are not defined in the Module.Spec.ModuleLoader.ServiceAccountName and Module.Spec.DevicePlugin.ServiceAccountName respectively. This way we avoid using the K8S default ServiceAccount, which may have different permissions that the module loader and/or the device plugin workloads require. Specifically, this change: - adds the required ServiceAccount permissions to the module reconciler - adds the following Module reconciliation steps when the Module.Spec.ModuleLoader.ServiceAccountName is empty: - adds a module loader ServiceAccount - adds the module loaderServiceAccount to the module loader DaemonSet - adds the following Module reconciliation steps when the Module.Spec.DevicePlugin.ServiceAccountName is empty: - adds a device plugin ServiceAccount - adds the device plugin ServiceAccount to the device plugin DaemonSet Signed-off-by: Michail Resvanis <[email protected]> Signed-off-by: Michail Resvanis <[email protected]>
…-sigs#90) * Bump sigs.k8s.io/controller-runtime from 0.12.3 to 0.13.1 Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.12.3 to 0.13.1. - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md) - [Commits](kubernetes-sigs/controller-runtime@v0.12.3...v0.13.1) --- updated-dependencies: - dependency-name: sigs.k8s.io/controller-runtime dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fixup! Bump sigs.k8s.io/controller-runtime from 0.12.3 to 0.13.1 Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michail Resvanis <[email protected]>
…etes-sigs#90) In order to run only the `filter` package tests for example, use: ``` make unit-test TEST=github.com/qbarrand/oot-operator/internal/filter ``` Signed-off-by: Yoni Bettan <[email protected]>
This PR adds ServiceAccounts for the module loader and the device plugin workloads of a
Module
, when noServiceAccount
s are specified in theModule.Spec
.This way we avoid using the K8S
default
ServiceAccount
, which may have different permissions than the module loader and/or the device plugin workloads require.Specifically, this PR:
ServiceAccount
permissions to the module reconcilerModule
reconciliation steps when theModule.Spec.ModuleLoader.ServiceAccountName
is empty:ServiceAccount
ServiceAccount
to the module loader DaemonSetModule
reconciliation steps when theModule.Spec.DevicePlugin.ServiceAccountName
is empty:ServiceAccount
ServiceAccount
to the device plugin DaemonSetSigned-off-by: Michail Resvanis [email protected]