File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -2111,30 +2111,3 @@ def setup_byoidc_user_context(username, password):
21112111 except Exception as e :
21122112 print (f"Error setting up BYOIDC user context: { e } " )
21132113 return False
2114-
2115-
2116- def verify_authentication_stability ():
2117- """
2118- Verify that authentication is stable and working before critical operations.
2119- Simplified version for kube-authkit.
2120-
2121- Returns:
2122- bool: True if authentication is stable, False otherwise
2123- """
2124- try :
2125- # Test basic Kubernetes API access
2126- k8s_client = initialize_kubernetes_client_standalone ()
2127- if not k8s_client :
2128- print ("WARNING: Could not get authenticated Kubernetes client" )
2129- return False
2130-
2131- # Test API connectivity with a simple call
2132- v1 = client .CoreV1Api (k8s_client )
2133- v1 .list_namespace (limit = 1 )
2134-
2135- print ("✓ Authentication stability verified" )
2136- return True
2137-
2138- except Exception as e :
2139- print (f"WARNING: Authentication stability check failed: { e } " )
2140- return False
You can’t perform that action at this time.
0 commit comments