@@ -1495,13 +1495,29 @@ type AccessLogging struct {
14951495 // +required
14961496 Destination LoggingDestination `json:"destination"`
14971497
1498+ // tcpLogFormat specifies the format of the log message for a TCP
1499+ // request.
1500+ //
1501+ // If this field is empty, log messages use the implementation's default
1502+ // TCP log format. For HAProxy's default TCP log format, see the
1503+ // HAProxy documentation:
1504+ // http//docs.haproxy.org/2.8/configuration.html#8.2.2
1505+ //
1506+ // Note that this format only applies to TCP connections. It only affects
1507+ // the log format for TLS passthrough connections.
1508+ //
1509+ // +kubebuilder:validation:MinLength=1
1510+ // +kubebuilder:validation:MaxLength=1024
1511+ // +optional
1512+ TcpLogFormat string `json:"tcpLogFormat,omitempty"`
1513+
14981514 // httpLogFormat specifies the format of the log message for an HTTP
14991515 // request.
15001516 //
15011517 // If this field is empty, log messages use the implementation's default
15021518 // HTTP log format. For HAProxy's default HTTP log format, see the
15031519 // HAProxy documentation:
1504- // http://cbonte.github.io/haproxy-dconv/2.0 /configuration.html#8.2.3
1520+ // http//docs.haproxy.org/2.8 /configuration.html#8.2.3
15051521 //
15061522 // Note that this format only applies to cleartext HTTP connections
15071523 // and to secure HTTP connections for which the ingress controller
@@ -1512,6 +1528,24 @@ type AccessLogging struct {
15121528 // +optional
15131529 HttpLogFormat string `json:"httpLogFormat,omitempty"`
15141530
1531+ // httpsLogFormat specifies the format of the log messsage for an HTTPS
1532+ // request.
1533+ //
1534+ // If this field is empty, log messages use the implementation's default
1535+ // HTTPS log format. For HAProxy's default HTTPS log format, see the
1536+ // HAProxy documentation:
1537+ // http://docs.haproxy.org/2.8/configuration.html#8.2.4
1538+ //
1539+ // Note that this format only applies to HTTPS connections for which the
1540+ // ingress controller terminates encryption (that is, edge-terminated or
1541+ // reencrypt connections). It does not affect the log format for TLS
1542+ // passthrough connections.
1543+ //
1544+ // +kubebuilder:validation:MinLength=1
1545+ // +kubebuilder:validation:MaxLength=1024
1546+ // +optional
1547+ HttpsLogFormat string `json:"httpsLogFormat,omitempty"`
1548+
15151549 // httpCaptureHeaders defines HTTP headers that should be captured in
15161550 // access logs. If this field is empty, no headers are captured.
15171551 //
0 commit comments