Bug 2074836
| Summary: | The kubectl client included in the oc client downloadable file returns "WARNING: version difference between client (0.23) and server (1.22)" | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Nikos Stamatelopoulos <nstamate> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
| Status: | CLOSED DUPLICATE | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, mfojtik |
| Version: | 4.10 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-04-15 14:14:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 2051626 *** |
Description of problem: The kubectl client included in the oc client downloadable file returns the below output when one runs kubectl version: ./kubectl version Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v0.23.0", GitCommit:"346b183f7b5ea13b052f0f7e27e6196b803cde94", GitTreeState:"clean", BuildDate:"2022-03-27T11:28:37Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3+b93fd35", GitCommit:"3a0f2c90b43e6cffd07f57b5b78dd9f083e47ee2", GitTreeState:"clean", BuildDate:"2022-02-11T05:26:59Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (0.23) and server (1.22) exceeds the supported minor version skew of +/-1 When the oc client v4.10.8 was downloaded by our portal [0] and with it is included in the tar file the kubectl client as well. So when i run the "kubectl version" command i can see the above Warning. In the repository there are both tags kubernetes-1.23 (with the Major) and v0.23 (without the Major). Also, i cannot find the commits indicated with each version Version-Release number of selected component (if applicable): The version is 4.10.8 but I reproduced the issue with 4.9 and 4.7 oc clients. [0]https://access.redhat.com/downloads/content/290/ver=4.10/rhel---8/4.10.8/x86_64/product-software How reproducible: Steps to Reproduce: 1. Download the client from our portal [0] 2. Login to a 4.9-4.10 cluster 3. Unzip and run the "kubectl version" Actual results: There is a Warning of version mismatch dispite the fact that the client is the same version with the cluster Expected results: There should be no such warning