From e7a46a7c81105a831d4348769110c5644a946417 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Mon, 16 May 2016 21:20:46 -0400 Subject: [PATCH] Fix Incorrect response model for pods/{name}/log The swagger spec for pods/{name}/log does not include "text/plain" as a possible content-type for the the response. So we implement ProducesMIMETypes to make sure "text/plain" gets added to the default list ot content-types. the v1.json was generated by running: hack/update-generated-swagger-docs.sh;./hack/update-swagger-spec.sh; Fixes #14071 --- api/swagger-spec/v1.json | 1 + docs/api-reference/v1/operations.html | 3 +++ pkg/registry/pod/rest/log.go | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index ccbf8985a95..8fda570e4c2 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -8817,6 +8817,7 @@ } ], "produces": [ + "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" diff --git a/docs/api-reference/v1/operations.html b/docs/api-reference/v1/operations.html index 47167e7565c..85da91027cc 100755 --- a/docs/api-reference/v1/operations.html +++ b/docs/api-reference/v1/operations.html @@ -8705,6 +8705,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }