Commit 435bc358 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #23091 from nikhiljindal/namespaceSwaggerSpec

Auto commit by PR queue bot
parents d2ae98c0 98b22588
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
"type": "v1.HorizontalPodAutoscalerList", "type": "v1.HorizontalPodAutoscalerList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind HorizontalPodAutoscaler", "summary": "list or watch objects of kind HorizontalPodAutoscaler",
"nickname": "listHorizontalPodAutoscaler", "nickname": "listNamespacedHorizontalPodAutoscaler",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -702,7 +702,7 @@ ...@@ -702,7 +702,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of HorizontalPodAutoscaler", "summary": "watch individual changes to a list of HorizontalPodAutoscaler",
"nickname": "watchHorizontalPodAutoscalerList", "nickname": "watchNamespacedHorizontalPodAutoscalerList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
......
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
"type": "v1.JobList", "type": "v1.JobList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind Job", "summary": "list or watch objects of kind Job",
"nickname": "listJob", "nickname": "listNamespacedJob",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -702,7 +702,7 @@ ...@@ -702,7 +702,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of Job", "summary": "watch individual changes to a list of Job",
"nickname": "watchJobList", "nickname": "watchNamespacedJobList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
......
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
"type": "v1beta1.DaemonSetList", "type": "v1beta1.DaemonSetList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind DaemonSet", "summary": "list or watch objects of kind DaemonSet",
"nickname": "listDaemonSet", "nickname": "listNamespacedDaemonSet",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -702,7 +702,7 @@ ...@@ -702,7 +702,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of DaemonSet", "summary": "watch individual changes to a list of DaemonSet",
"nickname": "watchDaemonSetList", "nickname": "watchNamespacedDaemonSetList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -1451,7 +1451,7 @@ ...@@ -1451,7 +1451,7 @@
"type": "v1beta1.DeploymentList", "type": "v1beta1.DeploymentList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind Deployment", "summary": "list or watch objects of kind Deployment",
"nickname": "listDeployment", "nickname": "listNamespacedDeployment",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -1527,7 +1527,7 @@ ...@@ -1527,7 +1527,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of Deployment", "summary": "watch individual changes to a list of Deployment",
"nickname": "watchDeploymentList", "nickname": "watchNamespacedDeploymentList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -2498,7 +2498,7 @@ ...@@ -2498,7 +2498,7 @@
"type": "v1beta1.HorizontalPodAutoscalerList", "type": "v1beta1.HorizontalPodAutoscalerList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind HorizontalPodAutoscaler", "summary": "list or watch objects of kind HorizontalPodAutoscaler",
"nickname": "listHorizontalPodAutoscaler", "nickname": "listNamespacedHorizontalPodAutoscaler",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -2574,7 +2574,7 @@ ...@@ -2574,7 +2574,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of HorizontalPodAutoscaler", "summary": "watch individual changes to a list of HorizontalPodAutoscaler",
"nickname": "watchHorizontalPodAutoscalerList", "nickname": "watchNamespacedHorizontalPodAutoscalerList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -3323,7 +3323,7 @@ ...@@ -3323,7 +3323,7 @@
"type": "v1beta1.IngressList", "type": "v1beta1.IngressList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind Ingress", "summary": "list or watch objects of kind Ingress",
"nickname": "listIngress", "nickname": "listNamespacedIngress",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -3399,7 +3399,7 @@ ...@@ -3399,7 +3399,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of Ingress", "summary": "watch individual changes to a list of Ingress",
"nickname": "watchIngressList", "nickname": "watchNamespacedIngressList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -4148,7 +4148,7 @@ ...@@ -4148,7 +4148,7 @@
"type": "v1beta1.JobList", "type": "v1beta1.JobList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind Job", "summary": "list or watch objects of kind Job",
"nickname": "listJob", "nickname": "listNamespacedJob",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -4224,7 +4224,7 @@ ...@@ -4224,7 +4224,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of Job", "summary": "watch individual changes to a list of Job",
"nickname": "watchJobList", "nickname": "watchNamespacedJobList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -4973,7 +4973,7 @@ ...@@ -4973,7 +4973,7 @@
"type": "v1beta1.ReplicaSetList", "type": "v1beta1.ReplicaSetList",
"method": "GET", "method": "GET",
"summary": "list or watch objects of kind ReplicaSet", "summary": "list or watch objects of kind ReplicaSet",
"nickname": "listReplicaSet", "nickname": "listNamespacedReplicaSet",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
...@@ -5049,7 +5049,7 @@ ...@@ -5049,7 +5049,7 @@
"type": "json.WatchEvent", "type": "json.WatchEvent",
"method": "GET", "method": "GET",
"summary": "watch individual changes to a list of ReplicaSet", "summary": "watch individual changes to a list of ReplicaSet",
"nickname": "watchReplicaSetList", "nickname": "watchNamespacedReplicaSetList",
"parameters": [ "parameters": [
{ {
"type": "string", "type": "string",
......
...@@ -464,7 +464,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag ...@@ -464,7 +464,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
for _, action := range actions { for _, action := range actions {
reqScope.Namer = action.Namer reqScope.Namer = action.Namer
namespaced := "" namespaced := ""
if strings.Contains(action.Path, scope.ArgumentName()) { if apiResource.Namespaced {
namespaced = "Namespaced" namespaced = "Namespaced"
} }
switch action.Verb { switch action.Verb {
......
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