Skip to content

Commit

Permalink
Merge pull request kubevirt#963 from lukas-bednar/fix-preset-api-defi…
Browse files Browse the repository at this point in the history
…nition

api: fix resource kind for vm-preset proxy
  • Loading branch information
rmohr authored Apr 30, 2018
2 parents e628ae3 + 241b0e8 commit 78b2495
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@
"application/yaml",
"application/json;stream=watch"
],
"summary": "Get a list of VirtualMachine objects.",
"operationId": "listNamespacedVirtualMachine",
"summary": "Get a list of VirtualMachinePreset objects.",
"operationId": "listNamespacedVirtualMachinePreset",
"parameters": [
{
"pattern": "[a-z0-9][a-z0-9\\-]*",
Expand Down Expand Up @@ -659,8 +659,8 @@
"application/json",
"application/yaml"
],
"summary": "Create a VirtualMachine object.",
"operationId": "createNamespacedVirtualMachine",
"summary": "Create a VirtualMachinePreset object.",
"operationId": "createNamespacedVirtualMachinePreset",
"parameters": [
{
"name": "body",
Expand Down Expand Up @@ -714,8 +714,8 @@
"application/json",
"application/yaml"
],
"summary": "Delete a collection of VirtualMachine objects.",
"operationId": "deleteCollectionNamespacedVirtualMachine",
"summary": "Delete a collection of VirtualMachinePreset objects.",
"operationId": "deleteCollectionNamespacedVirtualMachinePreset",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -792,8 +792,8 @@
"application/yaml",
"application/json;stream=watch"
],
"summary": "Get a VirtualMachine object.",
"operationId": "readNamespacedVirtualMachine",
"summary": "Get a VirtualMachinePreset object.",
"operationId": "readNamespacedVirtualMachinePreset",
"parameters": [
{
"pattern": "[a-z0-9][a-z0-9\\-]*",
Expand Down Expand Up @@ -851,8 +851,8 @@
"application/json",
"application/yaml"
],
"summary": "Update a VirtualMachine object.",
"operationId": "replaceNamespacedVirtualMachine",
"summary": "Update a VirtualMachinePreset object.",
"operationId": "replaceNamespacedVirtualMachinePreset",
"parameters": [
{
"name": "body",
Expand Down Expand Up @@ -912,8 +912,8 @@
"application/json",
"application/yaml"
],
"summary": "Delete a VirtualMachine object.",
"operationId": "deleteNamespacedVirtualMachine",
"summary": "Delete a VirtualMachinePreset object.",
"operationId": "deleteNamespacedVirtualMachinePreset",
"parameters": [
{
"name": "body",
Expand Down Expand Up @@ -984,8 +984,8 @@
"produces": [
"application/json"
],
"summary": "Patch a VirtualMachine object.",
"operationId": "patchNamespacedVirtualMachine",
"summary": "Patch a VirtualMachinePreset object.",
"operationId": "patchNamespacedVirtualMachinePreset",
"parameters": [
{
"name": "body",
Expand Down Expand Up @@ -2000,8 +2000,8 @@
"application/yaml",
"application/json;stream=watch"
],
"summary": "Get a list of all VirtualMachine objects.",
"operationId": "listVirtualMachineForAllNamespaces",
"summary": "Get a list of all VirtualMachinePreset objects.",
"operationId": "listVirtualMachinePresetForAllNamespaces",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2316,8 +2316,8 @@
"produces": [
"application/json"
],
"summary": "Watch a VirtualMachine object.",
"operationId": "watchNamespacedVirtualMachine",
"summary": "Watch a VirtualMachinePreset object.",
"operationId": "watchNamespacedVirtualMachinePreset",
"parameters": [
{
"pattern": "[a-z0-9][a-z0-9\\-]*",
Expand Down Expand Up @@ -2644,8 +2644,8 @@
"produces": [
"application/json"
],
"summary": "Watch a VirtualMachineList object.",
"operationId": "watchVirtualMachineListForAllNamespaces",
"summary": "Watch a VirtualMachinePresetList object.",
"operationId": "watchVirtualMachinePresetListForAllNamespaces",
"parameters": [
{
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion pkg/virt-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (app *virtAPIApp) composeResources(ctx context.Context) {
panic(err)
}

ws, err = rest.GenericResourceProxy(ws, ctx, vmpGVR, &v1.VirtualMachinePreset{}, v1.VirtualMachineGroupVersionKind.Kind, &v1.VirtualMachinePresetList{})
ws, err = rest.GenericResourceProxy(ws, ctx, vmpGVR, &v1.VirtualMachinePreset{}, v1.VirtualMachinePresetGroupVersionKind.Kind, &v1.VirtualMachinePresetList{})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 78b2495

Please sign in to comment.