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

Fall back to load_incluster_config() when load_kube_config() fails #2503

Closed
wants to merge 1 commit into from

Conversation

manning-ncsa
Copy link
Contributor

Description

See kubernetes-client/python#1005 for a good description of the issue.

Fixes # (issue)

Type of change

Choose which options apply, and delete the ones which do not apply.

  • Bug fix (non-breaking change that fixes an issue)

@benclifford
Copy link
Collaborator

This is failing flake8 with:

flake8 parsl/
parsl/providers/kubernetes/kube.py:109:9: E722 do not use bare 'except'

config.load_kube_config()
try:
config.load_kube_config()
except:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is caught by flake8: it catches all exceptions.

In practice in parsl, this sort of thing has caused problems such as ctrl-C handling: #2174

Maybe it should be more narrowly kubernetes.config.config_exception.ConfigException

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable.

@tcbonds
Copy link

tcbonds commented Sep 12, 2023

@manning-ncsa You still working on this? Running into the same problem right now.

@manning-ncsa
Copy link
Contributor Author

@tcbonds No, I am not working on this anymore. Good luck!

@mfisher87
Copy link
Contributor

@benclifford myself and @trey-stafford are dealing with this today, and this looks simple enough for us to re-implement in a superceding PR so we're going to go for that :)

@benclifford
Copy link
Collaborator

closing because #3357 is a replacement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants