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
feat: add operationrequest for multi-namespace and update user controller. #3595
Conversation
* feat: expose mongo uri. (labring#3586) * expose mongo uri env. * feat: operation request -> rolebinding (sa <-> role) * feat: operation request -> rolebinding (sa <-> role) * feat: operation request --------- Co-authored-by: yy <56745951+lingdie@users.noreply.github.com>
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3595 +/- ##
=======================================
Coverage 66.36% 66.36%
=======================================
Files 8 8
Lines 654 654
=======================================
Hits 434 434
Misses 173 173
Partials 47 47 ☔ View full report in Codecov by Sentry. |
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by Copilot at 88a0c41
Summary
📝🛠️🚀
This pull request adds a new API resource
Operationrequest
to the user controller, which allows end users to request operations on their user resources, such as granting or depriving roles. The pull request also adds webhooks, CRD patches, RBAC roles, and samples for the new resource, and fixes some typos and inconsistencies in the existing code.Walkthrough
Operationrequest
with the groupuser
, the versionv1
, and the domainsealos.io
(link)Operationrequest
resource, including the spec, status, and some constants and enums (link)Operationrequest
resource, with the kubebuilder annotations and schema (link)Operationrequest
resource, including the defaulting, validating, and conversion logic (link)Operationrequest
resource, with the kubebuilder annotations and client config (link, link, link)Operationrequest
resource and its finalizers and status to the role (link)Operationrequest
resource with the controller manager, and enable them in the test environment ( link)Operationrequest
resource, and reference it in the kustomization file (link, link)user_types.go
file, to remove a scaffolding comment, fix a typo, and rename theUserRoleType
type toRoleType
(link, link, link)User
resource (link)