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

feat: opt out of cluster owner rbac #834

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Oct 31, 2024

What this PR does / why we need it:

Preparing for new Rancher release that will include a feature that allows to bypass setting a creator owner on the resource. Import controller now adds the annotation field.cattle.io/no-creator-rbac on any Rancher clusters it reconciles. This will apply to newly created clusters and to existing ones that are subject to reconciliation.

You can take a look at rancher/rancher#47259, where this new option is introduced.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Also updates E2E and import controller tests to check that clusters are properly annotated.

After this is merged, we'll have to wait until next Rancher minor release to consider this as done

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin added kind/enhancement Categorizes issue or PR as related to a new feature. area/rbac labels Oct 31, 2024
@salasberryfin salasberryfin requested a review from a team as a code owner October 31, 2024 16:23
@salasberryfin salasberryfin changed the title Rbac issue cluster owner WIP: opt out of cluster owner rbac Oct 31, 2024
@salasberryfin salasberryfin added kind/enhancement Categorizes issue or PR as related to a new feature. and removed kind/enhancement Categorizes issue or PR as related to a new feature. labels Oct 31, 2024
@salasberryfin salasberryfin force-pushed the rbac-issue-cluster-owner branch from 0ccb61a to 7461257 Compare October 31, 2024 18:41
@salasberryfin salasberryfin added kind/enhancement Categorizes issue or PR as related to a new feature. and removed kind/enhancement Categorizes issue or PR as related to a new feature. labels Oct 31, 2024
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
@salasberryfin salasberryfin force-pushed the rbac-issue-cluster-owner branch from 7461257 to 733e176 Compare November 4, 2024 08:55
@salasberryfin salasberryfin changed the title WIP: opt out of cluster owner rbac opt out of cluster owner rbac Nov 4, 2024
@salasberryfin salasberryfin changed the title opt out of cluster owner rbac feat: opt out of cluster owner rbac Nov 4, 2024
@furkatgofurov7 furkatgofurov7 added this to the November release milestone Nov 12, 2024
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, thanks for taking care of it, LGTM.

@JonCrowther possibly, if you could also take a look that would be great.

Copy link

@JonCrowther JonCrowther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@furkatgofurov7 furkatgofurov7 merged commit a56b877 into rancher:main Nov 14, 2024
9 checks passed
@furkatgofurov7 furkatgofurov7 mentioned this pull request Nov 26, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rbac kind/enhancement Categorizes issue or PR as related to a new feature.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants