aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucjan Bryndza <l.bryndza@samsung.com>2020-06-22 14:49:22 +0200
committerLucjan Bryndza <l.bryndza@samsung.com>2020-07-01 12:13:07 +0200
commit91b3003027ea01acce0a5b10d21bbed1d1d15460 (patch)
treee0924378eaa8b98218a78e386a884cf6222f00e5
parent10ed88c266c0305d0b79c013a80b9dde38b0a7d7 (diff)
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 <l.bryndza@samsung.com> Issue-ID: OOM-2434 Change-Id: Ic354510006d9f2d5d56f377d8f628e55a1a4b869 Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
-rwxr-xr-xtest/security/check_for_ingress_and_nodeports.py6
1 files 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):