kubectl version is not showing expected version details in OpenShift 4.9 or 4.10

Solution Verified - Updated -

Issue

  • When running kubectl which is downloaded from the mirror URL, I am seeing the following version details:
$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v0.21.0-beta.1", GitCommit:"3f16530f0bb938bef95b705f6d235e29a892b176", GitTreeState:"clean", BuildDate:"2022-01-21T18:20:08Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3+e790d7f", GitCommit:"3a0f2c90b43e6cffd07f57b5b78dd9f083e47ee2", GitTreeState:"clean", BuildDate:"2021-12-14T02:10:38Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (0.21) and server (1.22) exceeds the supported minor version skew of +/-1
  • The GitVersion value looks like some Beta level version and incorrect.

Environment

  • Red Hat OpenShift Container Platform
    • 4.9.x
    • 4.10.12 or prior

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content