We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32cb751 commit 8471812Copy full SHA for 8471812
src/codeflare_sdk/cluster/auth.py
@@ -101,12 +101,16 @@ def login(self) -> str:
101
"""
102
global config_path
103
global api_client
104
+ odh_ca_path = "/etc/pki/tls/custom-certs/ca-bundle.crt"
105
try:
106
configuration = client.Configuration()
107
configuration.api_key_prefix["authorization"] = "Bearer"
108
configuration.host = self.server
109
configuration.api_key["authorization"] = self.token
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
114
configuration.verify_ssl = True
115
elif self.skip_tls == False:
116
configuration.ssl_ca_cert = self.ca_cert_path
0 commit comments