-
Notifications
You must be signed in to change notification settings - Fork 190
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
Support ReadMany
operations with slices in SetResourceIdentifiers
#170
Support ReadMany
operations with slices in SetResourceIdentifiers
#170
Conversation
f0, f0ok := identifier.AdditionalKeys["modelPackageName"] | ||
if f0ok { | ||
r.ko.Spec.ModelPackageName = &f0 |
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.
where'd this go?
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.
I figured that if you are querying by ARN, you will not need to define additional keys to filter down to a single element. ModelPackageName
did not provide any value in this method, before. It was just being added because it was another field on the DescribeModelPackages
API.
/test unit-test |
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.
looking good. 👍
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jaypipes, RedbackThomson 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 |
Fixes aws-controllers-k8s/community#874
Description of changes:
Automatically detects pluralised fields from the operation shape and sets the corresponding CR field. Refactor
SetResourceIdentifiers
to re-use common logic fromCheckRequiredFieldsMissingFromShape
. Now supportsprimary_identifier_field_names
that reference[]string
types.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.