Skip to content

Commit

Permalink
Added kube exception to is_openshift_cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 authored and openshift-merge-bot[bot] committed Jan 18, 2024
1 parent 8a5ea19 commit 1677fae
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 1677fae

Please sign in to comment.