Skip to content

Commit b436225

Browse files
Bobbins228openshift-merge-robot
authored andcommitted
Disabled Insecure request warning after login
1 parent c0db26e commit b436225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/codeflare_sdk/cluster/auth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import abc
2323
from kubernetes import client, config
2424
import os
25+
import urllib3
2526
from ..utils.kube_api_helpers import _kube_api_error_handling
2627

2728
global api_client
@@ -112,6 +113,7 @@ def login(self) -> str:
112113
api_client = client.ApiClient(configuration)
113114
client.AuthenticationApi(api_client).get_api_group()
114115
config_path = None
116+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
115117
return "Logged into %s" % self.server
116118
except client.ApiException: # pragma: no cover
117119
api_client = None

0 commit comments

Comments
 (0)