@@ -1495,13 +1495,35 @@ type AccessLogging struct {
14951495 // +required
14961496 Destination LoggingDestination `json:"destination"`
14971497
1498+ // tcpLogFormat specifies the format of the log message for a TCP
1499+ // connection.
1500+ //
1501+ // If this field is empty, log messages use the implementation's default
1502+ // TCP log format. When set, the value must be between 1 and 1024
1503+ // characters long.For HAProxy's default TCP log format, see the
1504+ // HAProxy documentation:
1505+ // http://docs.haproxy.org/2.8/configuration.html#8.2.2
1506+ //
1507+ // Note that this log message is used for the initial TCP connection
1508+ // associated with a TLS session. Note that for edge-terminated and
1509+ // reencrypt routes, you may see a second log message for the HTTP
1510+ // request in addition to the log message for the TCP connection. Use
1511+ // the httpsLogFormat option to customize the log format for the HTTPS
1512+ // request.
1513+ //
1514+ // +kubebuilder:validation:MinLength=1
1515+ // +kubebuilder:validation:MaxLength=1024
1516+ // +openshift:enable:FeatureGate=IngressControllerHTTPSLogFormat
1517+ // +optional
1518+ TcpLogFormat string `json:"tcpLogFormat,omitempty"`
1519+
14981520 // httpLogFormat specifies the format of the log message for an HTTP
14991521 // request.
15001522 //
15011523 // If this field is empty, log messages use the implementation's default
15021524 // HTTP log format. For HAProxy's default HTTP log format, see the
15031525 // HAProxy documentation:
1504- // http://cbonte.github.io/haproxy-dconv/2.0 /configuration.html#8.2.3
1526+ // http://docs.haproxy.org/2.8 /configuration.html#8.2.3
15051527 //
15061528 // Note that this format only applies to cleartext HTTP connections
15071529 // and to secure HTTP connections for which the ingress controller
@@ -1512,6 +1534,26 @@ type AccessLogging struct {
15121534 // +optional
15131535 HttpLogFormat string `json:"httpLogFormat,omitempty"`
15141536
1537+ // httpsLogFormat specifies the format of the log message for an HTTPS
1538+ // request.
1539+ //
1540+ // If this field is empty, log messages use the implementation's default
1541+ // HTTPS log format. When set, the value must be between 1 and 1024
1542+ // characters long.For HAProxy's default HTTPS log format, see the
1543+ // HAProxy documentation:
1544+ // http://docs.haproxy.org/2.8/configuration.html#8.2.4
1545+ //
1546+ // Note that this format only applies to HTTPS connections for which the
1547+ // ingress controller terminates encryption (that is, edge-terminated or
1548+ // reencrypt connections). It does not affect the log format for TLS
1549+ // passthrough connections.
1550+ //
1551+ // +kubebuilder:validation:MinLength=1
1552+ // +kubebuilder:validation:MaxLength=1024
1553+ // +openshift:enable:FeatureGate=IngressControllerHTTPSLogFormat
1554+ // +optional
1555+ HttpsLogFormat string `json:"httpsLogFormat,omitempty"`
1556+
15151557 // httpCaptureHeaders defines HTTP headers that should be captured in
15161558 // access logs. If this field is empty, no headers are captured.
15171559 //
0 commit comments