Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added kube exception to is_openshift_cluster #444

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/codeflare_sdk/utils/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ def is_openshift_cluster():
return True
else:
return False
except client.ApiException as e: # pragma: no cover
print(f"Error detecting cluster type defaulting to Kubernetes: {e}")
return False
except Exception as e: # pragma: no cover
return _kube_api_error_handling(e)


def update_dashboard_route(route_item, cluster_name, namespace):
Expand Down
Loading