Skip to content

Commit ec23d04

Browse files
committed
NE-2117: Add httpsLogFormat and tcpLogFormat to API
1 parent 1f2fa3f commit ec23d04

21 files changed

Lines changed: 19976 additions & 5 deletions

features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
| GCPCustomAPIEndpointsInstall| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6565
| GCPDualStackInstall| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6666
| GatewayAPIWithoutOLM| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
67+
| HTTPSLogFormat| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6768
| HyperShiftOnlyDynamicResourceAllocation| <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | |
6869
| ImageModeStatusReporting| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6970
| IngressControllerDynamicConfigurationManager| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |

features/features.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,4 +1020,12 @@ var (
10201020
enhancementPR("https://github.com/openshift/enhancements/pull/1910").
10211021
enable(inDevPreviewNoUpgrade(), inTechPreviewNoUpgrade()).
10221022
mustRegister()
1023+
1024+
FeatureGateHTTPSLogFormat = newFeatureGate("HTTPSLogFormat").
1025+
reportProblemsToJiraComponent("Networking/router").
1026+
contactPerson("rohara").
1027+
productScope(ocpSpecific).
1028+
enhancementPR("https://github.com/openshift/enhancements/pull/1832").
1029+
enable(inDevPreviewNoUpgrade(), inTechPreviewNoUpgrade()).
1030+
mustRegister()
10231031
)

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/v1/types_ingress.go

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)