-
Notifications
You must be signed in to change notification settings - Fork 378
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
Implement VPC Endpoint for AWS Provider #817
Implement VPC Endpoint for AWS Provider #817
Conversation
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.
Thanks for your contribution, could you also look at bit at supporting updates?
ed0db62
to
c7116fa
Compare
c7116fa
to
095919a
Compare
@chlunde I've completed the requested changes. Could you help me take a look at the changes please? Thanks! |
0ac68e7
to
8e4b482
Compare
@turkenh, I failed the check-diff job in the previous run. Did a
34 files came appended with |
this happens when you have go 1.17 locally, and the build environment uses go 1.16 or older. A workaround is currently something like |
8e4b482
to
589cd7b
Compare
@chlunde can you take a look at the changes please? |
bfc7d5e
to
010a825
Compare
@AaronME is there an issue in detect-noop? @darryl-sw The tests are not running, when I run them locally I get an issue with a panic in diff --git a/pkg/clients/aws.go b/pkg/clients/aws.go
index 7cd91a7f..83a8b35e 100644
--- a/pkg/clients/aws.go
+++ b/pkg/clients/aws.go
@@ -658,11 +658,11 @@ func IsPolicyUpToDate(local, remote *string) bool {
var remoteUnmarshalled interface{}
var err error
- err = json.Unmarshal([]byte(*local), &localUnmarshalled)
+ err = json.Unmarshal([]byte(StringValue(local)), &localUnmarshalled)
if err != nil {
return false
}
- err = json.Unmarshal([]byte(*remote), &remoteUnmarshalled)
+ err = json.Unmarshal([]byte(StringValue(remote)), &remoteUnmarshalled)
if err != nil {
return false
} @darryl-sw I don't think you have run code gen, I get a diff here, could you run diff --git a/pkg/controller/ec2/vpcendpoint/zz_conversions.go b/pkg/controller/ec2/vpcendpoint/zz_conversions.go
index 2be39997..e52368a3 100644
--- a/pkg/controller/ec2/vpcendpoint/zz_conversions.go
+++ b/pkg/controller/ec2/vpcendpoint/zz_conversions.go
@@ -88,11 +88,6 @@ func GenerateVPCEndpoint(resp *svcsdk.DescribeVpcEndpointsOutput) *svcapitypes.V
} else {
cr.Spec.ForProvider.VPCEndpointType = nil
}
- if elem.VpcId != nil {
- cr.Spec.ForProvider.VPCID = elem.VpcId
- } else {
- cr.Spec.ForProvider.VPCID = nil
- }
found = true
break
}
@@ -177,9 +172,6 @@ func GenerateCreateVpcEndpointInput(cr *svcapitypes.VPCEndpoint) *svcsdk.CreateV
if cr.Spec.ForProvider.VPCEndpointType != nil {
res.SetVpcEndpointType(*cr.Spec.ForProvider.VPCEndpointType)
}
- if cr.Spec.ForProvider.VPCID != nil {
- res.SetVpcId(*cr.Spec.ForProvider.VPCID)
- }
return res
} |
@chlunde I've made the requested changes to |
@darryl-sw can you rebase and run make generate again ? And squash commits ? After that we can merge the feature - thanks |
@haarchri running
I took a look at the file To further isolate the problem, I verified that simply adding "ec2" to Would you, or anybody, be able to advice on how I can fix this please? |
@darryl-sw sorry i missed that we are blocked with ec2 services because of #876 |
Any updates on the PR? Blockers? cc @haarchri |
@darryl-sw you can go forward the blockers are solved in master branch - thanks |
@haarchri what's the ETA for this to be released? :) |
@darryl-sw can rebase and i can have a look - in the next days we will cut next release - so i have time for review since rebase is done |
235282d
to
b9fac42
Compare
@haarchri rebased and completed another round of upstream testing. :) |
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.
Thanks @darryl-sw for your contribution. I was able to create and delete a VPCEndpoint using this.
@haarchri this is good to rebase and merge.
i will rebase now and adjust generated resolvers to get this PR merged ;) |
Signed-off-by: Darryl Sw <[email protected]>
Signed-off-by: haarchri <[email protected]>
b9fac42
to
9d11d80
Compare
@AaronME done! tested also on my side:
|
Signed-off-by: Aaron Eaton <[email protected]>
…e-3.x Update alpine Docker tag to v3.18.3
Description of your changes
Fixes #715 #467
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested