Skip to content

kubectl version --short is not working on Client Version: v1.28.4 Server Version: v1.28.1 #122455

@nitinjagjivan

Description

@nitinjagjivan

What happened: $ kubectl version --short
error: unknown flag: --short
See 'kubectl version --help' for usage.

What you expected to happen: As per documentation https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#version, kubectl version --short command should return just the version number.

How to reproduce it (as minimally and precisely as possible):
Install Client Version: v1.28.4 Server Version: v1.28.1 and run 'kubectl version --short' command

Anything else we need to know?: NA

Environment:

  • Kubernetes client and server versions (use kubectl version): Client Version: v1.28.4 Server Version: v1.28.1
  • Cloud provider or hardware configuration: AWS
  • OS (e.g: cat /etc/os-release): CentOS7.9
  • Containerd latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/cliCategorizes an issue or PR as relevant to SIG CLI.sig/docsCategorizes an issue or PR as relevant to SIG Docs.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions