Skip to content

Commit

Permalink
Merge pull request #33007 from smarterclayton/fix_versioned_event
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Correct versioned.Event output in Swagger

Fixes #24240

```release-note
The value of the `versioned.Event` object (returned by watch APIs) in the Swagger 1.2 schemas has been updated from `*versioned.Event` which was not expected by many client tools. The new value is consistent with other structs returned by the API.
```
  • Loading branch information
Kubernetes Submit Queue authored Sep 22, 2016
2 parents b60df6c + 8fd096e commit f230e6c
Show file tree
Hide file tree
Showing 31 changed files with 813 additions and 399 deletions.
29 changes: 20 additions & 9 deletions api/swagger-spec/apps_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"description": "API at /apis/apps/v1alpha1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of PetSet",
"nickname": "watchNamespacedPetSetList",
Expand Down Expand Up @@ -290,7 +290,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -546,7 +546,7 @@
"description": "API at /apis/apps/v1alpha1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch changes to an object of kind PetSet",
"nickname": "watchNamespacedPetSet",
Expand Down Expand Up @@ -620,7 +620,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -717,7 +717,7 @@
"description": "API at /apis/apps/v1alpha1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of PetSet",
"nickname": "watchNamespacedPetSetList",
Expand Down Expand Up @@ -775,7 +775,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -2746,9 +2746,20 @@
}
}
},
"*versioned.Event": {
"id": "*versioned.Event",
"properties": {}
"versioned.Event": {
"id": "versioned.Event",
"required": [
"type",
"object"
],
"properties": {
"type": {
"type": "string"
},
"object": {
"type": "string"
}
}
},
"unversioned.Patch": {
"id": "unversioned.Patch",
Expand Down
29 changes: 20 additions & 9 deletions api/swagger-spec/autoscaling_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"description": "API at /apis/autoscaling/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of HorizontalPodAutoscaler",
"nickname": "watchNamespacedHorizontalPodAutoscalerList",
Expand Down Expand Up @@ -290,7 +290,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -546,7 +546,7 @@
"description": "API at /apis/autoscaling/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch changes to an object of kind HorizontalPodAutoscaler",
"nickname": "watchNamespacedHorizontalPodAutoscaler",
Expand Down Expand Up @@ -620,7 +620,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -717,7 +717,7 @@
"description": "API at /apis/autoscaling/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of HorizontalPodAutoscaler",
"nickname": "watchNamespacedHorizontalPodAutoscalerList",
Expand Down Expand Up @@ -775,7 +775,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -1329,9 +1329,20 @@
}
}
},
"*versioned.Event": {
"id": "*versioned.Event",
"properties": {}
"versioned.Event": {
"id": "versioned.Event",
"required": [
"type",
"object"
],
"properties": {
"type": {
"type": "string"
},
"object": {
"type": "string"
}
}
},
"unversioned.Patch": {
"id": "unversioned.Patch",
Expand Down
29 changes: 20 additions & 9 deletions api/swagger-spec/batch_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"description": "API at /apis/batch/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of Job",
"nickname": "watchNamespacedJobList",
Expand Down Expand Up @@ -290,7 +290,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -546,7 +546,7 @@
"description": "API at /apis/batch/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch changes to an object of kind Job",
"nickname": "watchNamespacedJob",
Expand Down Expand Up @@ -620,7 +620,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -717,7 +717,7 @@
"description": "API at /apis/batch/v1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of Job",
"nickname": "watchNamespacedJobList",
Expand Down Expand Up @@ -775,7 +775,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -2730,9 +2730,20 @@
}
}
},
"*versioned.Event": {
"id": "*versioned.Event",
"properties": {}
"versioned.Event": {
"id": "versioned.Event",
"required": [
"type",
"object"
],
"properties": {
"type": {
"type": "string"
},
"object": {
"type": "string"
}
}
},
"unversioned.Patch": {
"id": "unversioned.Patch",
Expand Down
25 changes: 18 additions & 7 deletions api/swagger-spec/certificates.k8s.io_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"description": "API at /apis/certificates.k8s.io/v1alpha1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch individual changes to a list of CertificateSigningRequest",
"nickname": "watchCertificateSigningRequestList",
Expand Down Expand Up @@ -258,7 +258,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -482,7 +482,7 @@
"description": "API at /apis/certificates.k8s.io/v1alpha1",
"operations": [
{
"type": "*versioned.Event",
"type": "versioned.Event",
"method": "GET",
"summary": "watch changes to an object of kind CertificateSigningRequest",
"nickname": "watchCertificateSigningRequest",
Expand Down Expand Up @@ -548,7 +548,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "*versioned.Event"
"responseModel": "versioned.Event"
}
],
"produces": [
Expand Down Expand Up @@ -1020,9 +1020,20 @@
}
}
},
"*versioned.Event": {
"id": "*versioned.Event",
"properties": {}
"versioned.Event": {
"id": "versioned.Event",
"required": [
"type",
"object"
],
"properties": {
"type": {
"type": "string"
},
"object": {
"type": "string"
}
}
},
"unversioned.Patch": {
"id": "unversioned.Patch",
Expand Down
Loading

0 comments on commit f230e6c

Please sign in to comment.