From 91b3003027ea01acce0a5b10d21bbed1d1d15460 Mon Sep 17 00:00:00 2001 From: Lucjan Bryndza Date: Mon, 22 Jun 2020 14:49:22 +0200 Subject: Fix ingress default http and https ports Change ingress http and https port in the ingress controller default port configuration. Signed-off-by: Lucjan Bryndza Issue-ID: OOM-2434 Change-Id: Ic354510006d9f2d5d56f377d8f628e55a1a4b869 Signed-off-by: Lucjan Bryndza --- test/security/check_for_ingress_and_nodeports.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/security/check_for_ingress_and_nodeports.py b/test/security/check_for_ingress_and_nodeports.py index f357234dc..f3dc128ab 100755 --- a/test/security/check_for_ingress_and_nodeports.py +++ b/test/security/check_for_ingress_and_nodeports.py @@ -72,7 +72,7 @@ class ScanMode(Enum): def __str__(self): return self.name -#Read the ingress controller http and https ports from the kubernetes config +#Read the ingress controller http and https ports from the kubernetes cluster def find_ingress_ports(v1): svc = v1.list_namespaced_service(K8S_INGRESS_NS) http_port = 0 @@ -84,7 +84,9 @@ def find_ingress_ports(v1): http_port = pinfo.node_port elif pinfo and pinfo.name == 'https': https_port = pinfo.node_port - return http_port,https_port + + return http_port,https_port + else: return(80,443) # List all ingress devices def list_ingress(xv1b): -- cgit 1.2.3-korg