kubevirt: description and properties are missing in swagger JSON

/kind bug

What happened:

description and properties of VirtualMachine, VirtualMachineInstance, etc. are missing in swagger JSON

Only this info is available for VirtualMachine

"io.kubevirt.v1alpha3.VirtualMachine": {
  "type": "object",
  "x-kubernetes-group-version-kind": [
    {
      "group": "kubevirt.io",
      "kind": "VirtualMachine",
      "version": "v1alpha3"
    }
  ]
},

compared to VirtualMachineList

"io.kubevirt.v1alpha3.VirtualMachineList": {
  "description": "VirtualMachineList is a list of VirtualMachine",
  "required": [
    "items"
  ],
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest interna       l value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources",
      "type": "string"

What you expected to happen:

Properties and description should be available.

How to reproduce it (as minimally and precisely as possible):

curl localhost:8001/openapi/v2

Anything else we need to know?:

affects openshift/kubevirt UI: https://bugzilla.redhat.com/show_bug.cgi?id=1732329

Environment:

  • KubeVirt version (use virtctl version):
Client Version: version.Info{GitVersion:"v0.17.4", GitCommit:"adfdb8c07830b99fc79d2fd1d004e862ef70979e", GitTreeState:"clean", BuildDate:"2019-06-27T14:07:33Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.17.4", GitCommit:"adfdb8c07830b99fc79d2fd1d004e862ef70979e", GitTreeState:"clean", BuildDate:"2019-06-27T14:08:17Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.4+509916ce1", GitCommit:"509916ce1", GitTreeState:"clean", BuildDate:"2019-03-28T17:17:29Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.4+0ba401e", GitCommit:"0ba401e", GitTreeState:"clean", BuildDate:"2019-03-31T22:28:12Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (14 by maintainers)

Most upvoted comments

@suomiy @phoracek Thanks for letting me know! If this issue is being closed, then no worries. We will let you know if there are any other issues we would like to work on in the future.

/lifecycle frozen