Skip to content

Lens should honor kubectl.kubernetes.io/default-container annotation #5391

Open
@rittneje

Description

What would you like to be added:

When opening a pod shell or pod logs, Lens should abide by the kubectl.kubernetes.io/default-container pod annotation if present, instead of defaulting to the first container in the list.

Why is this needed:

This makes Lens consistent with the standard kubectl commands.
See https://kubernetes.io/docs/reference/labels-annotations-taints/#kubectl-kubernetes-io-default-container

Environment you are Lens application on:

  • Kubernetes distribution: EKS
  • Desktop OS: macos 11.6.5

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions