File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/codeflare_sdk/cluster Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,16 @@ def login(self) -> str:
101
101
"""
102
102
global config_path
103
103
global api_client
104
+ odh_ca_path = "/etc/pki/tls/custom-certs/ca-bundle.crt"
104
105
try :
105
106
configuration = client .Configuration ()
106
107
configuration .api_key_prefix ["authorization" ] = "Bearer"
107
108
configuration .host = self .server
108
109
configuration .api_key ["authorization" ] = self .token
109
110
if self .skip_tls == False and self .ca_cert_path == None :
111
+ if os .path .isfile (odh_ca_path ):
112
+ print (f"Authenticated with certificate located at { odh_ca_path } " )
113
+ configuration .ssl_ca_cert = odh_ca_path
110
114
configuration .verify_ssl = True
111
115
elif self .skip_tls == False :
112
116
configuration .ssl_ca_cert = self .ca_cert_path
You can’t perform that action at this time.
0 commit comments