mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #9970 from nikhiljindal/validSwagger
Fix path parameter swagger validation errors
This commit is contained in:
commit
838bb75183
@ -5850,7 +5850,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to exec of Pod",
|
"summary": "connect GET requests to exec of Pod",
|
||||||
"nickname": "connectGetPodExec",
|
"nickname": "connectGetPodExec",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5920,7 +5937,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to portforward of Pod",
|
"summary": "connect GET requests to portforward of Pod",
|
||||||
"nickname": "connectGetPodPortforward",
|
"nickname": "connectGetPodPortforward",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5939,7 +5973,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to proxy of Pod",
|
"summary": "connect GET requests to proxy of Pod",
|
||||||
"nickname": "connectGetPodProxy",
|
"nickname": "connectGetPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5952,7 +6003,24 @@
|
|||||||
"method": "POST",
|
"method": "POST",
|
||||||
"summary": "connect POST requests to proxy of Pod",
|
"summary": "connect POST requests to proxy of Pod",
|
||||||
"nickname": "connectPostPodProxy",
|
"nickname": "connectPostPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5965,7 +6033,24 @@
|
|||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "connect PUT requests to proxy of Pod",
|
"summary": "connect PUT requests to proxy of Pod",
|
||||||
"nickname": "connectPutPodProxy",
|
"nickname": "connectPutPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5978,7 +6063,24 @@
|
|||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "connect DELETE requests to proxy of Pod",
|
"summary": "connect DELETE requests to proxy of Pod",
|
||||||
"nickname": "connectDeletePodProxy",
|
"nickname": "connectDeletePodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5991,7 +6093,24 @@
|
|||||||
"method": "HEAD",
|
"method": "HEAD",
|
||||||
"summary": "connect HEAD requests to proxy of Pod",
|
"summary": "connect HEAD requests to proxy of Pod",
|
||||||
"nickname": "connectHeadPodProxy",
|
"nickname": "connectHeadPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6004,7 +6123,24 @@
|
|||||||
"method": "OPTIONS",
|
"method": "OPTIONS",
|
||||||
"summary": "connect OPTIONS requests to proxy of Pod",
|
"summary": "connect OPTIONS requests to proxy of Pod",
|
||||||
"nickname": "connectOptionsPodProxy",
|
"nickname": "connectOptionsPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6023,7 +6159,32 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to proxy of Pod",
|
"summary": "connect GET requests to proxy of Pod",
|
||||||
"nickname": "connectGetPodProxy",
|
"nickname": "connectGetPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6036,7 +6197,32 @@
|
|||||||
"method": "POST",
|
"method": "POST",
|
||||||
"summary": "connect POST requests to proxy of Pod",
|
"summary": "connect POST requests to proxy of Pod",
|
||||||
"nickname": "connectPostPodProxy",
|
"nickname": "connectPostPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6049,7 +6235,32 @@
|
|||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "connect PUT requests to proxy of Pod",
|
"summary": "connect PUT requests to proxy of Pod",
|
||||||
"nickname": "connectPutPodProxy",
|
"nickname": "connectPutPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6062,7 +6273,32 @@
|
|||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "connect DELETE requests to proxy of Pod",
|
"summary": "connect DELETE requests to proxy of Pod",
|
||||||
"nickname": "connectDeletePodProxy",
|
"nickname": "connectDeletePodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6075,7 +6311,32 @@
|
|||||||
"method": "HEAD",
|
"method": "HEAD",
|
||||||
"summary": "connect HEAD requests to proxy of Pod",
|
"summary": "connect HEAD requests to proxy of Pod",
|
||||||
"nickname": "connectHeadPodProxy",
|
"nickname": "connectHeadPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6088,7 +6349,32 @@
|
|||||||
"method": "OPTIONS",
|
"method": "OPTIONS",
|
||||||
"summary": "connect OPTIONS requests to proxy of Pod",
|
"summary": "connect OPTIONS requests to proxy of Pod",
|
||||||
"nickname": "connectOptionsPodProxy",
|
"nickname": "connectOptionsPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
|
@ -5850,7 +5850,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to exec of Pod",
|
"summary": "connect GET requests to exec of Pod",
|
||||||
"nickname": "connectGetPodExec",
|
"nickname": "connectGetPodExec",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5920,7 +5937,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to portforward of Pod",
|
"summary": "connect GET requests to portforward of Pod",
|
||||||
"nickname": "connectGetPodPortforward",
|
"nickname": "connectGetPodPortforward",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5939,7 +5973,24 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to proxy of Pod",
|
"summary": "connect GET requests to proxy of Pod",
|
||||||
"nickname": "connectGetPodProxy",
|
"nickname": "connectGetPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5952,7 +6003,24 @@
|
|||||||
"method": "POST",
|
"method": "POST",
|
||||||
"summary": "connect POST requests to proxy of Pod",
|
"summary": "connect POST requests to proxy of Pod",
|
||||||
"nickname": "connectPostPodProxy",
|
"nickname": "connectPostPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5965,7 +6033,24 @@
|
|||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "connect PUT requests to proxy of Pod",
|
"summary": "connect PUT requests to proxy of Pod",
|
||||||
"nickname": "connectPutPodProxy",
|
"nickname": "connectPutPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5978,7 +6063,24 @@
|
|||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "connect DELETE requests to proxy of Pod",
|
"summary": "connect DELETE requests to proxy of Pod",
|
||||||
"nickname": "connectDeletePodProxy",
|
"nickname": "connectDeletePodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -5991,7 +6093,24 @@
|
|||||||
"method": "HEAD",
|
"method": "HEAD",
|
||||||
"summary": "connect HEAD requests to proxy of Pod",
|
"summary": "connect HEAD requests to proxy of Pod",
|
||||||
"nickname": "connectHeadPodProxy",
|
"nickname": "connectHeadPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6004,7 +6123,24 @@
|
|||||||
"method": "OPTIONS",
|
"method": "OPTIONS",
|
||||||
"summary": "connect OPTIONS requests to proxy of Pod",
|
"summary": "connect OPTIONS requests to proxy of Pod",
|
||||||
"nickname": "connectOptionsPodProxy",
|
"nickname": "connectOptionsPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6023,7 +6159,32 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"summary": "connect GET requests to proxy of Pod",
|
"summary": "connect GET requests to proxy of Pod",
|
||||||
"nickname": "connectGetPodProxy",
|
"nickname": "connectGetPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6036,7 +6197,32 @@
|
|||||||
"method": "POST",
|
"method": "POST",
|
||||||
"summary": "connect POST requests to proxy of Pod",
|
"summary": "connect POST requests to proxy of Pod",
|
||||||
"nickname": "connectPostPodProxy",
|
"nickname": "connectPostPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6049,7 +6235,32 @@
|
|||||||
"method": "PUT",
|
"method": "PUT",
|
||||||
"summary": "connect PUT requests to proxy of Pod",
|
"summary": "connect PUT requests to proxy of Pod",
|
||||||
"nickname": "connectPutPodProxy",
|
"nickname": "connectPutPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6062,7 +6273,32 @@
|
|||||||
"method": "DELETE",
|
"method": "DELETE",
|
||||||
"summary": "connect DELETE requests to proxy of Pod",
|
"summary": "connect DELETE requests to proxy of Pod",
|
||||||
"nickname": "connectDeletePodProxy",
|
"nickname": "connectDeletePodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6075,7 +6311,32 @@
|
|||||||
"method": "HEAD",
|
"method": "HEAD",
|
||||||
"summary": "connect HEAD requests to proxy of Pod",
|
"summary": "connect HEAD requests to proxy of Pod",
|
||||||
"nickname": "connectHeadPodProxy",
|
"nickname": "connectHeadPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
@ -6088,7 +6349,32 @@
|
|||||||
"method": "OPTIONS",
|
"method": "OPTIONS",
|
||||||
"summary": "connect OPTIONS requests to proxy of Pod",
|
"summary": "connect OPTIONS requests to proxy of Pod",
|
||||||
"nickname": "connectOptionsPodProxy",
|
"nickname": "connectOptionsPodProxy",
|
||||||
"parameters": [],
|
"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": [
|
"produces": [
|
||||||
"*/*"
|
"*/*"
|
||||||
],
|
],
|
||||||
|
@ -278,7 +278,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector)
|
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector)
|
||||||
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector)
|
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector)
|
||||||
actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter)
|
actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter)
|
||||||
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", nameParams, namer}, isConnecter && connectSubpath)
|
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer}, isConnecter && connectSubpath)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// v1beta3+ format with namespace in path
|
// v1beta3+ format with namespace in path
|
||||||
@ -316,7 +316,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector)
|
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector)
|
||||||
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector)
|
actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector)
|
||||||
actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter)
|
actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter)
|
||||||
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", nameParams, namer}, isConnecter && connectSubpath)
|
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer}, isConnecter && connectSubpath)
|
||||||
|
|
||||||
// list or post across namespace.
|
// list or post across namespace.
|
||||||
// TODO: more strongly type whether a resource allows these actions on "all namespaces" (bulk delete)
|
// TODO: more strongly type whether a resource allows these actions on "all namespaces" (bulk delete)
|
||||||
@ -556,6 +556,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addParams(route, action.Params)
|
||||||
ws.Route(route)
|
ws.Route(route)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user