Skip to content

Empty KUBERNETES_EXEC_INFO warning when running aws eks get-token #6935

@timfallmk

Description

@timfallmk

Describe the bug

This is likely related to kubernetes/kubectl#1210

Using the newest update contained the in above patch, kubectl auth commands run as expected. However any requests to aws eks get-token that don't come from kubectl itself (or a tool using a similar mechanism) result in the following warning:

Empty KUBERNETES_EXEC_INFO, defaulting to client.authentication.k8s.io/v1alpha1. This is likely a bug in your Kubernetes client. Please update your Kubernetes client.

This might just need some documentation to prevent confusion, but I'm already seeing users run into it and ask. And the usual reddit suspects

Expected Behavior

  • More detailed warning message?
  • Suppression of warnings when an interactive prompt is detected?
  • Documentation notes?

Current Behavior

aws eks get-token (with valid credentials)
Output:

Empty KUBERNETES_EXEC_INFO, defaulting to client.authentication.k8s.io/v1alpha1. This is likely a bug in your Kubernetes client. Please update your Kubernetes client.
<token>

Reproduction Steps

aws eks get-token

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.6.3 Python/3.9.12 Darwin/21.4.0 source/arm64 prompt/off

Environment details (OS name and version, etc.)

macOS 12.3.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions