-
Notifications
You must be signed in to change notification settings - Fork 24
Add tags for HostedZone #26
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
Conversation
|
Hi @nnbu. 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. |
|
/ok-to-test |
a-hilaly
left a comment
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 @nnbu!!
I have few comments/questions bellow
templates/hooks/hosted_zone/sdk_read_one_post_set_output.go.tpl
Outdated
Show resolved
Hide resolved
| {{- $operationName := $specField.From.Operation }} | ||
| {{- $operation := (index $SDKAPI.API.Operations $operationName) -}} | ||
| {{- range $hostedZoneRefName, $hostedZoneMemberRefs := $operation.InputRef.Shape.MemberRefs -}} | ||
| {{- if eq $hostedZoneRefName "AddTags" }} |
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.
If i get this well, AddTags is a field part of of CreateHostedZone operation?
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.
You are right. To be specific, Tags is a field in HostedZone resource. operationName is ChangeTagsForResource. AddTags is memberRef in that operation.
eec2108 to
b8aae74
Compare
|
@a-hilaly I have addressed all the review comments. Could you please check? |
| route53_validator = Route53Validator(route53_client) | ||
| route53_validator.assert_hosted_zone(zone_id) | ||
|
|
||
| @pytest.mark.resource_data({'tag_key': 'initialtagkey', 'tag_value': 'initialtagvalue'}) |
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.
Sorry I still don't understand the value in initialising tags in a decorator vs. doing it directly in the method?
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.
There are a few instances of initializing tags this way in ec2-controller.
E.g. https://github.com/aws-controllers-k8s/ec2-controller/blob/main/test/e2e/tests/test_dhcp_options.py#L123
I kept the same convention.
a-hilaly
left a comment
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.
👍
/approve
|
/retest |
|
/test all |
|
e2e test failure seems unrelated. Also, the test passes when I run it in my personal environment. |
|
@a-hilaly Could you please tell me if the test failure is a baseline breakage? |
|
@nnbu this is an issue impacting all ACK controllers, we're tracking it here aws-controllers-k8s/community#1848 |
|
@nnbu fix is available checkout aws-controllers-k8s/community#1848 (comment) |
Issue (aws-controllers-k8s/community#1554) Description of changes: Adds support of tags in HostedZone spec By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly
left a comment
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 for contribution @nnbu !
/lgtm
Can you make a release PR after this one is merged?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, nnbu 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 |
Issue (aws-controllers-k8s/community#1554)
Description of changes:
Adds support of tags in HostedZone spec
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
I