Skip to content

Commit

Permalink
Allow insecureEdgeTerminationPolicy set to redirect on passthrough (#293
Browse files Browse the repository at this point in the history
)

* Allow insecureEdgeTerminationPolicy set to redirect on passthrough

Signed-off-by: Jason Yong <jason_yong@uk.ibm.com>

* Set insecureEdgeTerminationPolicy when termination is passthrough

Signed-off-by: Jason Yong <jason_yong@uk.ibm.com>
  • Loading branch information
yongja79 authored Jan 24, 2022
1 parent bec10e4 commit 73885be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ func CustomizeRoute(route *routev1.Route, ba common.BaseComponent, key string, c
route.Spec.TLS.CACertificate = ""
route.Spec.TLS.Key = ""
route.Spec.TLS.DestinationCACertificate = ""
route.Spec.TLS.InsecureEdgeTerminationPolicy = ""
if rt.GetInsecureEdgeTerminationPolicy() != nil {
route.Spec.TLS.InsecureEdgeTerminationPolicy = *rt.GetInsecureEdgeTerminationPolicy()
}
} else if route.Spec.TLS.Termination == routev1.TLSTerminationEdge {
route.Spec.TLS.Certificate = crt
route.Spec.TLS.CACertificate = ca
Expand Down

0 comments on commit 73885be

Please sign in to comment.