diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index a5be4f0e6d2..835ee96ed50 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -3365,36 +3365,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Node", - "nickname": "proxyTRACENode", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Node", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -3511,28 +3481,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Node", - "nickname": "proxyTRACENode", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Node", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -5467,44 +5415,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Pod", - "nickname": "proxyTRACEPod", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Pod", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -5661,36 +5571,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Pod", - "nickname": "proxyTRACEPod", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Pod", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -10316,44 +10196,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Service", - "nickname": "proxyTRACEService", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Service", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -10510,36 +10352,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Service", - "nickname": "proxyTRACEService", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Service", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, diff --git a/api/swagger-spec/v1beta3.json b/api/swagger-spec/v1beta3.json index 5b85d1f2b77..011a8050c63 100644 --- a/api/swagger-spec/v1beta3.json +++ b/api/swagger-spec/v1beta3.json @@ -3365,36 +3365,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Node", - "nickname": "proxyTRACENode", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Node", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -3511,28 +3481,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Node", - "nickname": "proxyTRACENode", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Node", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -5467,44 +5415,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Pod", - "nickname": "proxyTRACEPod", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Pod", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -5661,36 +5571,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Pod", - "nickname": "proxyTRACEPod", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Pod", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -10316,44 +10196,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Service", - "nickname": "proxyTRACEService", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Service", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "path:*", - "description": "path to the resource", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, @@ -10510,36 +10352,6 @@ "consumes": [ "*/*" ] - }, - { - "type": "string", - "method": "TRACE", - "summary": "proxy TRACE requests to Service", - "nickname": "proxyTRACEService", - "parameters": [ - { - "type": "string", - "paramType": "path", - "name": "namespaces", - "description": "object name and auth scope, such as for teams and projects", - "required": true, - "allowMultiple": false - }, - { - "type": "string", - "paramType": "path", - "name": "name", - "description": "name of the Service", - "required": true, - "allowMultiple": false - } - ], - "produces": [ - "*/*" - ], - "consumes": [ - "*/*" - ] } ] }, diff --git a/pkg/apiserver/api_installer.go b/pkg/apiserver/api_installer.go index be75150c58d..339315a423a 100644 --- a/pkg/apiserver/api_installer.go +++ b/pkg/apiserver/api_installer.go @@ -571,7 +571,6 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag addProxyRoute(ws, "POST", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params) addProxyRoute(ws, "DELETE", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params) addProxyRoute(ws, "HEAD", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params) - addProxyRoute(ws, "TRACE", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params) case "CONNECT": for _, method := range connecter.ConnectMethods() { doc := "connect " + method + " requests to " + kind