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

Simplify tenant role management; allow tenant SA to patch cluster status #272

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

bastjan
Copy link
Contributor

@bastjan bastjan commented Jun 3, 2024

Allows commodore CI to set compilation metadata.

Strongly simplifies tenant role management. The PR assumes the created roles, which always had full controller owner references set, are fully controller owned. Changes to those roles get overridden by the controller on the next reconcile.

  • Keep pull requests small so they can be easily reviewed.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog

@bastjan bastjan added the bug Something isn't working label Jun 3, 2024
@@ -14,7 +14,6 @@ func SpecificSteps(obj pipeline.Object, data *pipeline.Context) pipeline.Result
{Name: "delete vault entries", F: vault.HandleVaultDeletion},
{Name: "set tenant owner", F: setTenantOwner},
{Name: "apply cluster template from tenant", F: applyClusterTemplateFromTenant},
{Name: "update Role", F: clusterUpdateRole},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This did not update the cluster role. It did update the tenant role. 🙃

@bastjan bastjan requested a review from a team June 4, 2024 08:25
@bastjan bastjan changed the title Allow tenant SA to patch cluster status to report compilation metadata Allow tenant SA to patch cluster status; simplify tenant role managment Jun 4, 2024
@bastjan bastjan added breaking and removed breaking bug Something isn't working labels Jun 4, 2024
@bastjan bastjan changed the title Allow tenant SA to patch cluster status; simplify tenant role managment Simplify tenant role managment; allow tenant SA to patch cluster status Jun 4, 2024
@bastjan bastjan changed the title Simplify tenant role managment; allow tenant SA to patch cluster status Simplify tenant role management; allow tenant SA to patch cluster status Jun 4, 2024
Copy link
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

LGTM.

controllers/tenant/role.go Outdated Show resolved Hide resolved
@bastjan bastjan merged commit 3cd83e6 into master Jun 4, 2024
6 checks passed
@bastjan bastjan deleted the allow-tenant-cluster-status-update branch June 4, 2024 08:48
bastjan added a commit that referenced this pull request Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants