Skip to content
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 Certificate refs for https listeners #1211

Merged

Conversation

EdgeJ
Copy link
Contributor

@EdgeJ EdgeJ commented Mar 15, 2022

Signed-off-by: EdgeJ 5093048+EdgeJ@users.noreply.github.com

Description of your changes

This change adds references and selectors for ACM certificates to automate the creation of HTTPS listeners.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Created and deleted listeners using example YAML.

@@ -71,18 +71,33 @@ spec:
items:
type: string
type: array
certificates:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EdgeJ this is a breaking change - can we use certificates here instead of certificateArn ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely. I thought about this after I threw up the Pr, but I wanted to gauge the reaction here before going back to fix it up. I don't see any reason the old API and the new selector can't live side by side. Will fix this up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haarchri I updated the changes to insert the ARN refs in the certificates field instead of creating new fields to address backwards compatibility.

@EdgeJ EdgeJ force-pushed the edgej/elbv2-certificate-ref branch from b2e2e03 to 561de19 Compare March 28, 2022 15:20
@EdgeJ EdgeJ requested a review from haarchri March 28, 2022 15:38
@EdgeJ
Copy link
Contributor Author

EdgeJ commented Mar 28, 2022

Not sure why e2e tests are failing here. Setup problems?
image

Copy link
Member

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EdgeJ they are failing due to crossplane/crossplane#2944 -- fix is incoming 👍🏻

Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
@EdgeJ EdgeJ force-pushed the edgej/elbv2-certificate-ref branch from 561de19 to 45ef7e0 Compare March 30, 2022 18:58
@EdgeJ
Copy link
Contributor Author

EdgeJ commented Mar 30, 2022

@EdgeJ they are failing due to crossplane/crossplane#2944 -- fix is incoming 👍🏻

Rebased on master and pushed. Seems like it's fixed.

Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EdgeJ thanks for this enhancement ;)

@haarchri haarchri merged commit 73e0639 into crossplane-contrib:master Apr 12, 2022
febarbosa182 pushed a commit to febarbosa182/provider-aws that referenced this pull request May 23, 2022
* Add Certificate refs for https listeners

Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
Signed-off-by: Felipe Barbosa <lybrbarbosa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants