Skip to content

Commit 3caf807

Browse files
authored
SDK Info Rework (status, details, wait, etc.) (#63)
* Status update, details adjust * Format fix * Test fixes * Functioning details and minor improvements * Fixed/completed functionality, more bug fixes * tests pt1 * Tests pt2 * tests pt3 and final bugfixes
1 parent d07f63d commit 3caf807

File tree

5 files changed

+1561
-117
lines changed

5 files changed

+1561
-117
lines changed

Diff for: src/codeflare_sdk/cluster/auth.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, token: str = None, server: str = None, skip_tls: bool = False
5959
self.server = server
6060
self.skip_tls = skip_tls
6161

62-
def login(self):
62+
def login(self) -> str:
6363
"""
6464
This function is used to login to an OpenShift cluster using the user's API token and API server address.
6565
Depending on the cluster, a user can choose to login in with "--insecure-skip-tls-verify` by setting `skip_tls`
@@ -78,7 +78,7 @@ def login(self):
7878
return error_msg
7979
return response.out()
8080

81-
def logout(self):
81+
def logout(self) -> str:
8282
"""
8383
This function is used to logout of an OpenShift cluster.
8484
"""
@@ -104,14 +104,14 @@ def __init__(
104104
self.username = username
105105
self.password = password
106106

107-
def login(self):
107+
def login(self) -> str:
108108
"""
109109
This function is used to login to an OpenShift cluster using the user's `username` and `password`.
110110
"""
111111
response = oc.login(self.username, self.password)
112112
return response.out()
113113

114-
def logout(self):
114+
def logout(self) -> str:
115115
"""
116116
This function is used to logout of an OpenShift cluster.
117117
"""

0 commit comments

Comments
 (0)