Skip to content

Commit d15d12b

Browse files
harsha-mangenaJim Ryan
authored andcommitted
[removes] include-year and includeYear flag (#5817)
* - refer #5776 - commented deprecated include-year and IncludeYear * removed commented code * - made `includeYear` flag as `true` by default. - removed commented code. * - addressed comments * recommit - yaml * removed include-year arg Signed-off-by: harsha-mangena <[email protected]> * removed include-year arg Signed-off-by: harsha-mangena <[email protected]> * removed include-year arg Signed-off-by: harsha-mangena <[email protected]> * removed include-year arg Signed-off-by: harsha-mangena <[email protected]> --------- Signed-off-by: harsha-mangena <[email protected]> Co-authored-by: Jim Ryan <[email protected]>
1 parent 27660da commit d15d12b

File tree

9 files changed

+1
-33
lines changed

9 files changed

+1
-33
lines changed

charts/nginx-ingress/templates/_helpers.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ Build the args for the service binary.
277277
- -service-insight-tls-secret={{ .Values.serviceInsight.secret }}
278278
- -enable-custom-resources={{ .Values.controller.enableCustomResources }}
279279
- -enable-snippets={{ .Values.controller.enableSnippets }}
280-
- -include-year={{ .Values.controller.includeYear }}
281280
- -disable-ipv6={{ .Values.controller.disableIPV6 }}
282281
{{- if .Values.controller.enableCustomResources }}
283282
- -enable-tls-passthrough={{ .Values.controller.enableTLSPassthrough }}

charts/nginx-ingress/values.schema.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -908,14 +908,6 @@
908908
false
909909
]
910910
},
911-
"includeYear": {
912-
"type": "boolean",
913-
"default": false,
914-
"title": "The includeYear",
915-
"examples": [
916-
false
917-
]
918-
},
919911
"enableTLSPassthrough": {
920912
"type": "boolean",
921913
"default": false,
@@ -1728,7 +1720,6 @@
17281720
"watchNamespace": "",
17291721
"enableCustomResources": true,
17301722
"enableOIDC": false,
1731-
"includeYear": false,
17321723
"enableTLSPassthrough": false,
17331724
"tlsPassthroughPort": 443,
17341725
"enableCertManager": false,
@@ -2262,7 +2253,6 @@
22622253
"watchNamespace": "",
22632254
"enableCustomResources": true,
22642255
"enableOIDC": false,
2265-
"includeYear": false,
22662256
"enableTLSPassthrough": false,
22672257
"enableCertManager": false,
22682258
"enableExternalDNS": false,

charts/nginx-ingress/values.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ controller:
343343
## Enable OIDC policies.
344344
enableOIDC: false
345345

346-
## Include year in log header. This parameter will be removed in release 3.7 and the year will be included by default.
347-
includeYear: false
348-
349346
## Enable TLS Passthrough on port 443. Requires controller.enableCustomResources.
350347
enableTLSPassthrough: false
351348

cmd/nginx-ingress/flags.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"net"
77
"os"
88
"regexp"
9-
"strconv"
109
"strings"
1110

1211
"github.com/golang/glog"
@@ -198,9 +197,6 @@ var (
198197
enableExternalDNS = flag.Bool("enable-external-dns", false,
199198
"Enable external-dns controller for VirtualServer resources. Requires -enable-custom-resources")
200199

201-
includeYearInLogs = flag.Bool("include-year", false,
202-
"Option to include the year in the log header")
203-
204200
disableIPV6 = flag.Bool("disable-ipv6", false,
205201
`Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack`)
206202

@@ -305,7 +301,7 @@ func initialChecks() {
305301
glog.Fatalf("Error setting logtostderr to true: %v", err)
306302
}
307303

308-
err = flag.Lookup("include_year").Value.Set(strconv.FormatBool(*includeYearInLogs))
304+
err = flag.Lookup("include_year").Value.Set("true")
309305
if err != nil {
310306
glog.Fatalf("Error setting include_year flag: %v", err)
311307
}

deployments/daemon-set/nginx-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ spec:
9191
- -report-ingress-status
9292
- -external-service=nginx-ingress
9393
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
94-
#- -include-year
9594
#- -v=3 # Enables extensive logging. Useful for troubleshooting.
9695
#- -enable-prometheus-metrics
9796
#- -global-configuration=$(POD_NAMESPACE)/nginx-configuration

deployments/daemon-set/nginx-plus-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ spec:
9292
- -report-ingress-status
9393
- -external-service=nginx-ingress
9494
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
95-
#- -include-year
9695
#- -enable-app-protect
9796
#- -enable-app-protect-dos
9897
#- -v=3 # Enables extensive logging. Useful for troubleshooting.

deployments/deployment/nginx-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ spec:
9090
- -report-ingress-status
9191
- -external-service=nginx-ingress
9292
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
93-
#- -include-year
9493
#- -enable-cert-manager
9594
#- -enable-external-dns
9695
#- -v=3 # Enables extensive logging. Useful for troubleshooting.

deployments/deployment/nginx-plus-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ spec:
9393
- -report-ingress-status
9494
- -external-service=nginx-ingress
9595
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
96-
#- -include-year
9796
#- -enable-cert-manager
9897
#- -enable-external-dns
9998
#- -enable-app-protect

docs/content/configuration/global-configuration/command-line-arguments.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ Default `false`.
8181

8282
---
8383

84-
### -include-year
85-
86-
Adds year to log headers.
87-
88-
Default `false`.
89-
90-
{{< note >}} This flag will be removed in release 3.7 and the year will be included by default. {{< /note >}}
91-
92-
---
93-
9484
### -enable-leader-election
9585

9686
Enables Leader election to avoid multiple replicas of the controller reporting the status of Ingress, VirtualServer and VirtualServerRoute resources -- only one replica will report status.

0 commit comments

Comments
 (0)