[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to query openshift api-version ?



"oc api-versions" is available on the latest binary. (For example, I tested with v3.11.0-alpha.0+bb11f51-481 as below).
Having said that, both kubectl and oc api-versions should get same result, as both hit to https://<SERVER_URL>/apis.

  $ _output/local/bin/linux/amd64/oc api-versions
  admissionregistration.k8s.io/v1beta1
  apiextensions.k8s.io/v1beta1
  apiregistration.k8s.io/v1
  apiregistration.k8s.io/v1beta1
  apps.openshift.io/v1
  apps/v1
  apps/v1beta1
  apps/v1beta2
  authentication.k8s.io/v1
  authentication.k8s.io/v1beta1
  authorization.k8s.io/v1
  authorization.k8s.io/v1beta1
  authorization.openshift.io/v1
  autoscaling/v1
  autoscaling/v2beta1
  batch/v1
  batch/v1beta1
  build.openshift.io/v1
  certificates.k8s.io/v1beta1
  events.k8s.io/v1beta1
  extensions/v1beta1
  image.openshift.io/v1
  monitoring.coreos.com/v1
  network.openshift.io/v1
  networking.k8s.io/v1
  oauth.openshift.io/v1
  policy/v1beta1
  project.openshift.io/v1
  quota.openshift.io/v1
  rbac.authorization.k8s.io/v1
  rbac.authorization.k8s.io/v1beta1
  route.openshift.io/v1
  security.openshift.io/v1
  settings.k8s.io/v1alpha1
  storage.k8s.io/v1
  storage.k8s.io/v1beta1
  template.openshift.io/v1
  user.openshift.io/v1
  v1
  
  $ _output/local/bin/linux/amd64/oc version
  oc v3.11.0-alpha.0+bb11f51-481
  kubernetes v1.11.0+d4cacc0
  features: Basic-Auth GSSAPI Kerberos SPNEGO


On Thu, Aug 2, 2018 at 10:39 AM, Jack Hu <maidouhu outlook com> wrote:
Hi ,

I know k8s has "kubectl api-versions " , but oc no such command , now 
how to query openshift api-version ?





_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



--
Kenjiro NAKAYAMA <nakayamakenjiro gmail com>
GPG Key fingerprint = ED8F 049D E67A 727D 9A44  8E25 F44B E208 C946 5EB9

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]