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

Add validation to not admit RoleTemplates with both context=cluster & ProjectCreatorDefault=true #337

Conversation

vatsalparekh
Copy link
Contributor

@vatsalparekh vatsalparekh commented Mar 5, 2024

Issue:

Add validation to not admit RoleTemplates with both context=cluster & ProjectCreatorDefault=true

Problem

SURE-7635

Solution

Add a check for this field in validation

CheckList

  • Test
  • Docs

@vatsalparekh vatsalparekh force-pushed the cluster-context-ProjectCreatorDefault branch from 5a9801f to 9eaa18d Compare March 20, 2024 09:02
@vatsalparekh vatsalparekh marked this pull request as ready for review March 20, 2024 09:06
@vatsalparekh vatsalparekh requested a review from a team as a code owner March 20, 2024 09:06
@samjustus
Copy link

rancher/rancher#44860

Copy link
Contributor

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

While I think the actual fix is fine, I think we can improve the tests to clarify that they're testing.

tests/integration/roleTemplate_test.go Outdated Show resolved Hide resolved
… ProjectCreatorDefault=true

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
@vatsalparekh vatsalparekh force-pushed the cluster-context-ProjectCreatorDefault branch from d9f1686 to 9d7db6b Compare April 1, 2024 12:35
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
Copy link
Contributor

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@bigkevmcd bigkevmcd merged commit 81fbbb8 into rancher:release/v0.5 Apr 2, 2024
1 check passed
@vatsalparekh vatsalparekh deleted the cluster-context-ProjectCreatorDefault branch April 3, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants