-
Notifications
You must be signed in to change notification settings - Fork 178
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
ARO-6425 v20240812preview validation #3563
Conversation
Please rebase pull request. |
This will enable OpenShiftClusterProperties.ServicePrincipalProfile to be set to nil
f4314dd
to
f7a880b
Compare
As these functions don't really fit into any of the util packages and are only used in one place each, this commit removes those functions and in-lines their code in the places they were called
4b95ad8
to
ca9536a
Compare
PlatformWorkloadIdentities: []PlatformWorkloadIdentity{ | ||
{ | ||
OperatorName: "FAKE-OPERATOR", | ||
ResourceID: "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/a-fake-group/providers/Microsoft.RedHatOpenShift/userAssignedIdentities/fake-cluster-name", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be Microsoft.ManagedIdentity/userAssignedIdentities
?
same for other test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regexp the resourceID is being compared against is at pkg/api/v20240812preview/openshiftcluster_validatestatic.go line 430
The specific provider for the resource ID isn't being checked, just that the string is formatted like a resource ID at all. I can change the value in the test cases to Microsoft.ManagedIdentity
if you'd like
… IDs This requires a refactor of ParseArmResourceId() to allow for resource IDs without a subresource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made another review pass since there are a lot of details to inspect and you've made some changes since my last review. I suggested a few small changes and started a group discussion about a piece that I'm unsure about.
Co-authored-by: Kipp Morris <[email protected]>
"operator roles" becomes "platform workload identities"
/azp run ci,e2e |
Azure Pipelines successfully started running 2 pipeline(s). |
Dismissing my own approving review because I realized I missed an open comment.
Thanks for being flexible and responding to all of the suggestions quickly. Will LGTM once Caden's last comment is addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
/azp run ci,e2e |
Azure Pipelines successfully started running 2 pipeline(s). |
Which issue this PR addresses:
For ARO-6425
What this PR does / why we need it:
Adds static validation for new API fields added in v20240812preview
Test plan for issue:
Includes unit tests for the new static validation features.
Is there any documentation that needs to be updated for this PR?
No, this is just static validation to ensure inputs are as expected.
How do you know this will function as expected in production?
Unit test data has been written to match expected inputs but nonetheless this should be tested in a lower environment before being pushed to production