You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: