Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26919

OC binary: should warn if 3.x is used for an OpenShift 4 cluster (and vice versa)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.12.0.Final
    • openshift

      OC 4.x does not fully work with an OpenShift 3.x cluster. The opposite is also true:

      In a mail on the mailing list on the 17th of October ([openshift-sme] 4.x oc client is not compatible with OCP 3.11.)

      The open shift 4.1 CLI can't get SecurityContextConstraints from 3.11 openshift. Is this expected? or we need to fix this?

      $ oc get SecurityContextConstraints restricted -o name
      error: attempt to print an ungroupified object: /v1, Kind=SecurityContextConstraints

      $ oc version
      Client Version: version.Info

      Unknown macro: {Major}

      Server Version: version.Info

      Unknown macro: {Major}

      answered by saying that one should use the oc binary that matches the cluster in terms of version:

      API's change per each OpenShift version. You should always be sure to match the version of the CLI to the target cluster version (at least to the minor version) and have experienced errors similar to what you are receiving in the past.

              Unassigned Unassigned
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: