Skip to content

oc version format inconsistent between external download and console download #556

@chrisbygrave

Description

@chrisbygrave

If I download an oc binary here and run oc version I get:

Client Version: 4.5.7
Server Version: 4.5.7
Kubernetes Version: v1.18.3+2cf11e2

However if I pull the binary from the OpenShift console of a 4.5.7 server and run oc version I see:

Client Version: openshift-clients-4.5.0-202006231303.p0-4-gb66f2d3a6
Server Version: 4.5.7
Kubernetes Version: v1.18.3+2cf11e2

This makes scripting with oc more complicated. What's the reason for a non-semver client version field in the binary downloaded from the OpenShift console?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions