-
Notifications
You must be signed in to change notification settings - Fork 55
Fix AdoptedResource
functionality for FlowLogs
#161
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. |
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.
/ok-to-test
a95bccd
to
f66c263
Compare
f66c263
to
53ec617
Compare
53ec617
to
487fd4e
Compare
@a-hilaly Could you please review this? I have addressed the comments |
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 !
/lgtm
/hold |
AdoptedResource
functionality for FlowLogs
/unhold |
[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 |
Description of changes: This PR creates a release v1.1.1 for ec2-controller, following the merge of PRs: - aws-controllers-k8s#161 - aws-controllers-k8s#163 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue # : aws-controllers-k8s/community#1946
RCA:
Following CR currently fails to adopt the existing FlowLog resource.
The error
comes from https://github.com/aws-controllers-k8s/runtime/blob/main/pkg/runtime/adoption_reconciler.go#L157
SetIdentifiers
function needs to have code to fill uprequired
values of the CR so as to solve this issue.Solution:
2 new fields are defined as
resourceID
andresourceType
and they are initialized inSetIdentifiers
function. These fields need to part ofadditionalKeys
field ofAdoptedResource
CR forFlowLog
.The new CR looks like,
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.