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
fae7a7a1
Commit
fae7a7a1
authored
Oct 25, 2017
by
Maru Newby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update vendored kube-openapi to latest
parent
54295026
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
49 additions
and
34 deletions
+49
-34
Godeps.json
Godeps/Godeps.json
+7
-7
Godeps.json
staging/src/k8s.io/api/Godeps/Godeps.json
+1
-1
Godeps.json
...ing/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
+4
-4
Godeps.json
staging/src/k8s.io/apimachinery/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/apiserver/Godeps/Godeps.json
+4
-4
Godeps.json
staging/src/k8s.io/client-go/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/code-generator/Godeps/Godeps.json
+2
-2
Godeps.json
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
+5
-5
Godeps.json
staging/src/k8s.io/metrics/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
+4
-4
Godeps.json
staging/src/k8s.io/sample-controller/Godeps/Godeps.json
+1
-1
openapi.go
vendor/k8s.io/kube-openapi/pkg/generators/openapi.go
+18
-3
No files found.
Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -3084,31 +3084,31 @@
...
@@ -3084,31 +3084,31 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/aggregator"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/aggregator"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/generators"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/generators"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util/proto"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util/proto"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/utils/exec"
,
"ImportPath"
:
"k8s.io/utils/exec"
,
...
...
staging/src/k8s.io/api/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/apimachinery/pkg/api/resource"
,
"ImportPath"
:
"k8s.io/apimachinery/pkg/api/resource"
,
...
...
staging/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -1548,19 +1548,19 @@
...
@@ -1548,19 +1548,19 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/apimachinery/pkg/api/equality"
,
"ImportPath"
:
"k8s.io/apimachinery/pkg/api/equality"
,
...
...
staging/src/k8s.io/apimachinery/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/apiserver/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -1608,19 +1608,19 @@
...
@@ -1608,19 +1608,19 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/client-go/discovery"
,
"ImportPath"
:
"k8s.io/client-go/discovery"
,
...
...
staging/src/k8s.io/client-go/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -692,7 +692,7 @@
...
@@ -692,7 +692,7 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/code-generator/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -252,11 +252,11 @@
...
@@ -252,11 +252,11 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/generators"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/generators"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -1536,23 +1536,23 @@
...
@@ -1536,23 +1536,23 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/aggregator"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/aggregator"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/metrics/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -520,7 +520,7 @@
...
@@ -520,7 +520,7 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -1524,19 +1524,19 @@
...
@@ -1524,19 +1524,19 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/builder"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/handler"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/util"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
staging/src/k8s.io/sample-controller/Godeps/Godeps.json
View file @
fae7a7a1
...
@@ -940,7 +940,7 @@
...
@@ -940,7 +940,7 @@
},
},
{
{
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"ImportPath"
:
"k8s.io/kube-openapi/pkg/common"
,
"Rev"
:
"
89ae48fe8691077463af5b7fb3b6f194632c5946
"
"Rev"
:
"
61b46af70dfed79c6d24530cd23b41440a7f22a5
"
}
}
]
]
}
}
vendor/k8s.io/kube-openapi/pkg/generators/openapi.go
View file @
fae7a7a1
...
@@ -118,17 +118,32 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
...
@@ -118,17 +118,32 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
`
)
...
)
`
)
...
)
if
err
:=
context
.
AddDir
(
arguments
.
OutputPackagePath
);
err
!=
nil
{
outputPath
:=
arguments
.
OutputPackagePath
if
err
:=
context
.
AddDir
(
outputPath
);
err
!=
nil
{
glog
.
Fatalf
(
"Failed to load output package: %v"
,
err
)
glog
.
Fatalf
(
"Failed to load output package: %v"
,
err
)
}
}
pkg
:=
context
.
Universe
[
arguments
.
OutputPackagePath
]
// Compute the canonical output path to allow retrieval of the
// package for a vendored output path.
const
vendorPath
=
"/vendor/"
canonicalOutputPath
:=
outputPath
if
strings
.
Contains
(
outputPath
,
vendorPath
)
{
canonicalOutputPath
=
outputPath
[
strings
.
Index
(
outputPath
,
vendorPath
)
+
len
(
vendorPath
)
:
]
}
// The package for outputPath is mapped to the canonical path
pkg
:=
context
.
Universe
[
canonicalOutputPath
]
if
pkg
==
nil
{
if
pkg
==
nil
{
glog
.
Fatalf
(
"Got nil output package: %v"
,
err
)
glog
.
Fatalf
(
"Got nil output package: %v"
,
err
)
}
}
return
generator
.
Packages
{
return
generator
.
Packages
{
&
generator
.
DefaultPackage
{
&
generator
.
DefaultPackage
{
PackageName
:
strings
.
Split
(
filepath
.
Base
(
pkg
.
Path
),
"."
)[
0
],
PackageName
:
strings
.
Split
(
filepath
.
Base
(
pkg
.
Path
),
"."
)[
0
],
PackagePath
:
pkg
.
Path
,
// Use the supplied output path rather than the canonical
// one to allow generation into the path of a
// vendored package.
PackagePath
:
outputPath
,
HeaderText
:
header
,
HeaderText
:
header
,
GeneratorFunc
:
func
(
c
*
generator
.
Context
)
(
generators
[]
generator
.
Generator
)
{
GeneratorFunc
:
func
(
c
*
generator
.
Context
)
(
generators
[]
generator
.
Generator
)
{
return
[]
generator
.
Generator
{
NewOpenAPIGen
(
arguments
.
OutputFileBaseName
,
pkg
,
context
)}
return
[]
generator
.
Generator
{
NewOpenAPIGen
(
arguments
.
OutputFileBaseName
,
pkg
,
context
)}
...
...
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