Skip to content
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 managedcluster-import-role.yaml #1208

Conversation

xuezhaojun
Copy link
Contributor

@xuezhaojun xuezhaojun commented Jan 21, 2025

Description

  • Updated ClusterRole and ClusterRoleBinding names to remove the 'system:' prefix for consistency.
  • Added new rules for 'clusters' resource under 'cluster.x-k8s.io' in managedcluster-import-role.yaml.

Related Issue

If applicable, please reference the issue(s) that this pull request addresses.

Changes Made

Provide a clear and concise overview of the changes made in this pull request.

Screenshots (if applicable)

Add screenshots or GIFs that demonstrate the changes visually, if relevant.

Checklist

  • I have tested the changes locally and they are functioning as expected.
  • I have updated the documentation (if necessary) to reflect the changes.
  • I have added/updated relevant unit tests (if applicable).
  • I have ensured that my code follows the project's coding standards.
  • I have checked for any potential security issues and addressed them.
  • I have added necessary comments to the code, especially in complex or unclear sections.
  • I have rebased my branch on top of the latest main/master branch.

Additional Notes

Add any additional notes, context, or information that might be helpful for reviewers.

Reviewers

Tag the appropriate reviewers who should review this pull request. To add reviewers, please add the following line: /cc @reviewer1 @reviewer2

Definition of Done

  • Code is reviewed.
  • Code is tested.
  • Documentation is updated.
  • All checks and tests pass.
  • Approved by at least one reviewer.
  • Merged into the main/master branch.

@xuezhaojun xuezhaojun changed the title Refactor managedcluster-import-role.yaml WIP: Refactor managedcluster-import-role.yaml Jan 21, 2025
@xuezhaojun
Copy link
Contributor Author

/assign @qiujian16 Please append the CPAI issue in the description.
/assign @zhiweiyin318

@xuezhaojun xuezhaojun force-pushed the update-managed-import-controller branch from 5f73866 to df4f89e Compare January 21, 2025 08:22
@xuezhaojun xuezhaojun changed the title WIP: Refactor managedcluster-import-role.yaml Refactor managedcluster-import-role.yaml Jan 21, 2025
@zhiweiyin318
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 21, 2025
@xuezhaojun xuezhaojun changed the title Refactor managedcluster-import-role.yaml WIP: Refactor managedcluster-import-role.yaml Jan 21, 2025
@xuezhaojun xuezhaojun force-pushed the update-managed-import-controller branch from df4f89e to 9dc2203 Compare January 21, 2025 14:12
@openshift-ci openshift-ci bot removed the lgtm label Jan 21, 2025
@xuezhaojun xuezhaojun force-pushed the update-managed-import-controller branch from 9dc2203 to 7d54bcb Compare February 5, 2025 05:25
- Added RBAC permissions for 'clusters' resource in rbac_gen.go.
- Updated ClusterRole and ClusterRoleBinding names to remove the 'system:' prefix for consistency.
- Added 'clusters' resource rules to managedcluster-import-role.yaml.

These changes enhance the RBAC definitions for better alignment with the current resource naming conventions.

Signed-off-by: xuezhaojun <[email protected]>
@xuezhaojun xuezhaojun changed the title WIP: Refactor managedcluster-import-role.yaml Refactor managedcluster-import-role.yaml Feb 5, 2025
@xuezhaojun xuezhaojun force-pushed the update-managed-import-controller branch from 7d54bcb to 12c9f3b Compare February 5, 2025 05:29
@xuezhaojun
Copy link
Contributor Author

/assign @dislbenn

@dislbenn
Copy link
Collaborator

dislbenn commented Feb 5, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 5, 2025
Copy link
Contributor

openshift-ci bot commented Feb 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dislbenn, xuezhaojun, zhiweiyin318

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 5, 2025
Copy link

sonarqubecloud bot commented Feb 5, 2025

@openshift-merge-bot openshift-merge-bot bot merged commit 61fee93 into stolostron:main Feb 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants