-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support for Vanity Name and Bring Your Own Certificates #85
Conversation
pkg/gateway/model_build_listener.go
Outdated
@@ -51,6 +54,20 @@ func (t *latticeServiceModelBuildTask) extractListnerInfo(ctx context.Context, p | |||
listenerPort = int(section.Port) | |||
protocol = section.Protocol | |||
|
|||
if section.TLS != nil { | |||
if *section.TLS.Mode == v1alpha2.TLSModeTerminate { |
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.
is it possible that section.TLS.Mode
== nil?
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.
Good point. Let me add a check to avoid crash.
@@ -14,9 +14,11 @@ import ( | |||
|
|||
const ( | |||
resourceIDListenerConfig = "ListenerConfig" | |||
|
|||
awsCustomCertARN = "application-networking.k8s.aws/certificate-arn" |
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.
is it possible to specify multiple certificates per gateway?
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.
Today, Lattice only allow one
certificate per lattice-service/HTTPRoute. Gateway can have multiple sections where each section has its own certificates ARN
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
looks good to me from the code perspective.
Issue #16, if available:
Description of changes:
Here are detail
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.