webhook: validate certificateRefs when tls
is set and mode
is Terminate
#1441
Labels
Milestone
tls
is set and mode
is Terminate
#1441
What would you like to be added:
The
TLSModeType
documentation states:gateway-api/apis/v1beta1/gateway_types.go
Lines 290 to 305 in 006a257
In particular, when the
TLSConfig
is set, and theTLSModeType
is terminate, thecertificateRefs
field must always be set and contain at least one reference to an object.To ensure this condition, the Gateway validation should be improved to ensure that such a condition is always verified.
Why this is needed:
When the
TLSModeType
is set to terminate, there is always the need for a valid certificate to terminate the TLS connection.The text was updated successfully, but these errors were encountered: