Skip to content

Commit

Permalink
[removes] include-year and includeYear flag (#5817)
Browse files Browse the repository at this point in the history
* - 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]>
  • Loading branch information
harsha-mangena and j1m-ryan authored Jun 27, 2024
1 parent 0ee025f commit a991a93
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 33 deletions.
1 change: 0 additions & 1 deletion charts/nginx-ingress/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ Build the args for the service binary.
- -service-insight-tls-secret={{ .Values.serviceInsight.secret }}
- -enable-custom-resources={{ .Values.controller.enableCustomResources }}
- -enable-snippets={{ .Values.controller.enableSnippets }}
- -include-year={{ .Values.controller.includeYear }}
- -disable-ipv6={{ .Values.controller.disableIPV6 }}
{{- if .Values.controller.enableCustomResources }}
- -enable-tls-passthrough={{ .Values.controller.enableTLSPassthrough }}
Expand Down
10 changes: 0 additions & 10 deletions charts/nginx-ingress/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,14 +908,6 @@
false
]
},
"includeYear": {
"type": "boolean",
"default": false,
"title": "The includeYear",
"examples": [
false
]
},
"enableTLSPassthrough": {
"type": "boolean",
"default": false,
Expand Down Expand Up @@ -1728,7 +1720,6 @@
"watchNamespace": "",
"enableCustomResources": true,
"enableOIDC": false,
"includeYear": false,
"enableTLSPassthrough": false,
"tlsPassthroughPort": 443,
"enableCertManager": false,
Expand Down Expand Up @@ -2262,7 +2253,6 @@
"watchNamespace": "",
"enableCustomResources": true,
"enableOIDC": false,
"includeYear": false,
"enableTLSPassthrough": false,
"enableCertManager": false,
"enableExternalDNS": false,
Expand Down
3 changes: 0 additions & 3 deletions charts/nginx-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ controller:
## Enable OIDC policies.
enableOIDC: false

## Include year in log header. This parameter will be removed in release 3.7 and the year will be included by default.
includeYear: false

## Enable TLS Passthrough on port 443. Requires controller.enableCustomResources.
enableTLSPassthrough: false

Expand Down
6 changes: 1 addition & 5 deletions cmd/nginx-ingress/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net"
"os"
"regexp"
"strconv"
"strings"

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

includeYearInLogs = flag.Bool("include-year", false,
"Option to include the year in the log header")

disableIPV6 = flag.Bool("disable-ipv6", false,
`Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack`)

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

err = flag.Lookup("include_year").Value.Set(strconv.FormatBool(*includeYearInLogs))
err = flag.Lookup("include_year").Value.Set("true")
if err != nil {
glog.Fatalf("Error setting include_year flag: %v", err)
}
Expand Down
1 change: 0 additions & 1 deletion deployments/daemon-set/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ spec:
- -report-ingress-status
- -external-service=nginx-ingress
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
#- -include-year
#- -v=3 # Enables extensive logging. Useful for troubleshooting.
#- -enable-prometheus-metrics
#- -global-configuration=$(POD_NAMESPACE)/nginx-configuration
Expand Down
1 change: 0 additions & 1 deletion deployments/daemon-set/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ spec:
- -report-ingress-status
- -external-service=nginx-ingress
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
#- -include-year
#- -enable-app-protect
#- -enable-app-protect-dos
#- -v=3 # Enables extensive logging. Useful for troubleshooting.
Expand Down
1 change: 0 additions & 1 deletion deployments/deployment/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ spec:
- -report-ingress-status
- -external-service=nginx-ingress
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
#- -include-year
#- -enable-cert-manager
#- -enable-external-dns
#- -v=3 # Enables extensive logging. Useful for troubleshooting.
Expand Down
1 change: 0 additions & 1 deletion deployments/deployment/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ spec:
- -report-ingress-status
- -external-service=nginx-ingress
#- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
#- -include-year
#- -enable-cert-manager
#- -enable-external-dns
#- -enable-app-protect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ Default `false`.

---

### -include-year

Adds year to log headers.

Default `false`.

{{< note >}} This flag will be removed in release 3.7 and the year will be included by default. {{< /note >}}

---

### -enable-leader-election

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.
Expand Down

0 comments on commit a991a93

Please sign in to comment.