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

Missing log message when loadInClusterConfig fails #2053

Closed
maciej-karas-form3 opened this issue Nov 21, 2022 · 0 comments · Fixed by #2051
Closed

Missing log message when loadInClusterConfig fails #2053

maciej-karas-form3 opened this issue Nov 21, 2022 · 0 comments · Fixed by #2051

Comments

@maciej-karas-form3
Copy link
Contributor

Problem

Errors in loadInClusterConfig are swallowed entirely.

Context

The problem was discovered when the custom controller was deployed that did not have access to Service Account token or it was not mounted properly due to automountServiceAccountToken: false setting. This caused the function InClusterConfig to fail with token volume not found, but the error was swallowed. After that we still proceed with default location lookup which then fails with misleading error message:

unable to get kubeconfig: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
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 a pull request may close this issue.

1 participant