From 6e291fe9e52a4bfa5c05684028d3b7ecbc776156 Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Mon, 12 Feb 2018 09:43:32 +0800 Subject: [PATCH] Set default value of report-node-internal-ip-address as true. Using default value of report-node-internal-ip-address as true can make sure the ingress can always return ADDRESS, this also keep backward compatibility with ingress 0.9.0.beta.12 and its previous releases. --- cmd/nginx/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nginx/flags.go b/cmd/nginx/flags.go index e50db1bcbc..51de6cf69e 100644 --- a/cmd/nginx/flags.go +++ b/cmd/nginx/flags.go @@ -106,7 +106,7 @@ func parseFlags() (bool, *controller.Configuration, error) { sortBackends = flags.Bool("sort-backends", false, `Defines if backends and it's endpoints should be sorted`) - useNodeInternalIP = flags.Bool("report-node-internal-ip-address", false, + useNodeInternalIP = flags.Bool("report-node-internal-ip-address", true, `Defines if the nodes IP address to be returned in the ingress status should be the internal instead of the external IP address`) showVersion = flags.Bool("version", false,