-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
ExecProvider
bug when accessing stderr
before None
type check
#2136
Comments
base/config/exec_provider
bug when accessingstderr
before None
type checkbase/config/exec_provider
bug when accessing stderr
before None
type check
base/config/exec_provider
bug when accessing stderr
before None
type checkExecProvider
bug when accessing stderr
before None
type check
@jonoden Would you like to send a PR? Thanks |
/assign @jonoden |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@roycaihw, I'm happy to send a PR. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened (please include outputs or screenshots):
When authentication method is
exec
and the provider isaws
, the command can sometimes return non-zero status withoutstderr
. Below is an example of the output otconfig.load_kube_config()
in this case:in this case the command returns a
255
return code withstderr: None
. This causesConfigException
to not be raised.Proposing a change to
kubernetes/base/config/exec_provider.py
as such:What you expected to happen:
ConfigException
should be raised if exec failsHow to reproduce it (as minimally and precisely as possible):
Use exec auth configuration with non-valid SSO creds.
Anything else we need to know?:
Environment:
kubectl version
): v1.28.3python --version
): 3.11.6pip list | grep kubernetes
): 28.1.0The text was updated successfully, but these errors were encountered: