Add PATCH to supported list of proxy subresource verbs

parent e885c77f
...@@ -4013,6 +4013,33 @@ ...@@ -4013,6 +4013,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Pod",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNamespacedPodProxy",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -4202,6 +4229,33 @@ ...@@ -4202,6 +4229,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Pod",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNamespacedPodProxyWithPath",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -7270,6 +7324,33 @@ ...@@ -7270,6 +7324,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Service",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNamespacedServiceProxy",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -7459,6 +7540,33 @@ ...@@ -7459,6 +7540,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Service",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNamespacedServiceProxyWithPath",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -8570,6 +8678,33 @@ ...@@ -8570,6 +8678,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Node",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNodeProxy",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -8751,6 +8886,33 @@ ...@@ -8751,6 +8886,33 @@
} }
} }
}, },
"patch": {
"description": "connect PATCH requests to proxy of Node",
"consumes": [
"*/*"
],
"produces": [
"*/*"
],
"schemes": [
"https"
],
"tags": [
"core_v1"
],
"operationId": "connectCoreV1PatchNodeProxyWithPath",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
}
}
},
"parameters": [ "parameters": [
{ {
"uniqueItems": true, "uniqueItems": true,
...@@ -5269,6 +5269,36 @@ ...@@ -5269,6 +5269,36 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Node",
"nickname": "connectPatchNodeProxy",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the URL path to use for the current proxy request to node.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Node",
"required": true,
"allowMultiple": false
}
],
"produces": [
"*/*"
],
"consumes": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Node", "summary": "connect DELETE requests to proxy of Node",
"nickname": "connectDeleteNodeProxy", "nickname": "connectDeleteNodeProxy",
...@@ -5479,6 +5509,44 @@ ...@@ -5479,6 +5509,44 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Node",
"nickname": "connectPatchNodeProxyWithPath",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the URL path to use for the current proxy request to node.",
"required": false,
"allowMultiple": false
},
{
"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": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Node", "summary": "connect DELETE requests to proxy of Node",
"nickname": "connectDeleteNodeProxyWithPath", "nickname": "connectDeleteNodeProxyWithPath",
...@@ -9479,6 +9547,44 @@ ...@@ -9479,6 +9547,44 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Pod",
"nickname": "connectPatchNamespacedPodProxy",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the URL path to use for the current proxy request to pod.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"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": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Pod", "summary": "connect DELETE requests to proxy of Pod",
"nickname": "connectDeleteNamespacedPodProxy", "nickname": "connectDeleteNamespacedPodProxy",
...@@ -9737,6 +9843,52 @@ ...@@ -9737,6 +9843,52 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Pod",
"nickname": "connectPatchNamespacedPodProxyWithPath",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the URL path to use for the current proxy request to pod.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"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": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Pod", "summary": "connect DELETE requests to proxy of Pod",
"nickname": "connectDeleteNamespacedPodProxyWithPath", "nickname": "connectDeleteNamespacedPodProxyWithPath",
...@@ -15910,6 +16062,44 @@ ...@@ -15910,6 +16062,44 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Service",
"nickname": "connectPatchNamespacedServiceProxy",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"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": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Service", "summary": "connect DELETE requests to proxy of Service",
"nickname": "connectDeleteNamespacedServiceProxy", "nickname": "connectDeleteNamespacedServiceProxy",
...@@ -16168,6 +16358,52 @@ ...@@ -16168,6 +16358,52 @@
}, },
{ {
"type": "string", "type": "string",
"method": "PATCH",
"summary": "connect PATCH requests to proxy of Service",
"nickname": "connectPatchNamespacedServiceProxyWithPath",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"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": [
"*/*"
]
},
{
"type": "string",
"method": "DELETE", "method": "DELETE",
"summary": "connect DELETE requests to proxy of Service", "summary": "connect DELETE requests to proxy of Service",
"nickname": "connectDeleteNamespacedServiceProxyWithPath", "nickname": "connectDeleteNamespacedServiceProxyWithPath",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -43,7 +43,7 @@ type ProxyREST struct { ...@@ -43,7 +43,7 @@ type ProxyREST struct {
// Implement Connecter // Implement Connecter
var _ = rest.Connecter(&ProxyREST{}) var _ = rest.Connecter(&ProxyREST{})
var proxyMethods = []string{"GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS"} var proxyMethods = []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"}
// New returns an empty service resource // New returns an empty service resource
func (r *ProxyREST) New() runtime.Object { func (r *ProxyREST) New() runtime.Object {
......
...@@ -42,7 +42,7 @@ type ProxyREST struct { ...@@ -42,7 +42,7 @@ type ProxyREST struct {
// Implement Connecter // Implement Connecter
var _ = rest.Connecter(&ProxyREST{}) var _ = rest.Connecter(&ProxyREST{})
var proxyMethods = []string{"GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS"} var proxyMethods = []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"}
// New returns an empty pod resource // New returns an empty pod resource
func (r *ProxyREST) New() runtime.Object { func (r *ProxyREST) New() runtime.Object {
......
...@@ -39,7 +39,7 @@ type ProxyREST struct { ...@@ -39,7 +39,7 @@ type ProxyREST struct {
// Implement Connecter // Implement Connecter
var _ = rest.Connecter(&ProxyREST{}) var _ = rest.Connecter(&ProxyREST{})
var proxyMethods = []string{"GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS"} var proxyMethods = []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"}
// New returns an empty service resource // New returns an empty service resource
func (r *ProxyREST) New() runtime.Object { func (r *ProxyREST) New() runtime.Object {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment