-
Notifications
You must be signed in to change notification settings - Fork 19
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 primary keys for generator #33
Conversation
Hi @arjunrn. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
@arjunrn I don't see any Go code changes after you changed the generator.yaml file, but I do see that you regenerated the controller (since the apis/v1alpha1/ack-generate-metadata.yaml
file was updated). So... that tells me that adding these configurations to these fields in the generator.yaml file did not actually have any effect on the generated Go code. This could indicate that for these resources, the SetIdentifiers code path was already working fine by default and that adding the is_arn_primary_key
configuration option is mostly just a documentation thing. Is that your understanding as well?
@jaypipes It's not changing anything right now because the version of the code generator I used is the one which is currently released and doesn't have the changes I added in aws-controllers-k8s/code-generator#439 . In the current version of the code generator the set identifier is skipped. I added these fields so that when the bot updates the code generator there are no errors during generation because the primary keys cannot be found. I can also update the generator version in this PR and run the generation again. But I assume that's not generally done. |
@arjunrn go ahead and regenerate the controller using the version of code-generator that has your fixes :) |
c11198b
to
1b177db
Compare
@jaypipes Updated. There are some other changes from the generator as well. |
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.
👍 thank you @arjunrn!
/ok-to-test |
The following resources have ARNs which are set at the primary key: - [PlatformEndpoint](https://docs.aws.amazon.com/sns/latest/api/API_GetEndpointAttributes.html) - [PlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_GetPlatformApplicationAttributes.html) - [Topic](https://docs.aws.amazon.com/sns/latest/api/API_GetTopicAttributes.html) - [Subscription](https://docs.aws.amazon.com/sns/latest/api/API_GetSubscriptionAttributes.html) Also regenerated with latest commit of code-generator.
1b177db
to
f4d2e8c
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, arjunrn, jaypipes 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 |
The following resources have ARNs which are set at the primary key:
Issue aws-controllers-k8s/community#1778
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.