Merge pull request #63837 from roycaihw/fix-rollback-return-object

Automatic merge from submit-queue (batch tested with PRs 65377, 63837, 65370, 65294, 65376). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix openapi spec: posting a rollback returns a deploymentstatus

**What this PR does / why we need it**:
Fix openapi spec and documentation. Posting a rollback doesnt return a rollback object, it instead returns a deployment status.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
ref #56591 

**Release note**:

```release-note
NONE
```

/sig api-machinery
/sig apps
This commit is contained in:
Kubernetes Submit Queue
2018-06-22 16:16:08 -07:00
committed by GitHub
8 changed files with 48 additions and 21 deletions

View File

@@ -29443,19 +29443,19 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStatus"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStatus"
}
},
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStatus"
}
},
"401": {
@@ -47879,19 +47879,19 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStatus"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStatus"
}
},
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback"
"$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStatus"
}
},
"401": {