Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
435bc358
Commit
435bc358
authored
Mar 17, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23091 from nikhiljindal/namespaceSwaggerSpec
Auto commit by PR queue bot
parents
d2ae98c0
98b22588
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
autoscaling_v1.json
api/swagger-spec/autoscaling_v1.json
+2
-2
batch_v1.json
api/swagger-spec/batch_v1.json
+2
-2
extensions_v1beta1.json
api/swagger-spec/extensions_v1beta1.json
+12
-12
v1.json
api/swagger-spec/v1.json
+0
-0
api_installer.go
pkg/apiserver/api_installer.go
+1
-1
No files found.
api/swagger-spec/autoscaling_v1.json
View file @
435bc358
...
@@ -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"
:
"list
Namespaced
HorizontalPodAutoscaler"
,
"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"
:
"watch
Namespaced
HorizontalPodAutoscalerList"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
api/swagger-spec/batch_v1.json
View file @
435bc358
...
@@ -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"
:
"list
Namespaced
Job"
,
"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"
:
"watch
Namespaced
JobList"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
api/swagger-spec/extensions_v1beta1.json
View file @
435bc358
...
@@ -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"
:
"list
Namespaced
DaemonSet"
,
"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"
:
"watch
Namespaced
DaemonSetList"
,
"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"
:
"list
Namespaced
Deployment"
,
"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"
:
"watch
Namespaced
DeploymentList"
,
"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"
:
"list
Namespaced
HorizontalPodAutoscaler"
,
"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"
:
"watch
Namespaced
HorizontalPodAutoscalerList"
,
"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"
:
"list
Namespaced
Ingress"
,
"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"
:
"watch
Namespaced
IngressList"
,
"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"
:
"list
Namespaced
Job"
,
"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"
:
"watch
Namespaced
JobList"
,
"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"
:
"list
Namespaced
ReplicaSet"
,
"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"
:
"watch
Namespaced
ReplicaSetList"
,
"parameters"
:
[
"parameters"
:
[
{
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
api/swagger-spec/v1.json
View file @
435bc358
This diff is collapsed.
Click to expand it.
pkg/apiserver/api_installer.go
View file @
435bc358
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment