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
16e1de6d
Commit
16e1de6d
authored
Dec 23, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18859 from deads2k/gv-grab-bag
Auto commit by PR queue bot
parents
be235e87
d41e7ecf
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
37 additions
and
37 deletions
+37
-37
conversion.go
cmd/genconversion/conversion.go
+5
-2
deep_copy.go
cmd/gendeepcopy/deep_copy.go
+5
-2
copy_test.go
pkg/api/copy_test.go
+2
-2
serialization_test.go
pkg/api/serialization_test.go
+8
-8
testapi.go
pkg/api/testapi/testapi.go
+4
-1
fuzzer.go
pkg/api/testing/fuzzer.go
+1
-1
group_version.go
pkg/api/unversioned/group_version.go
+0
-9
schema_test.go
pkg/api/validation/schema_test.go
+1
-1
dns.go
test/e2e/dns.go
+1
-1
empty_dir.go
test/e2e/empty_dir.go
+1
-1
host_path.go
test/e2e/host_path.go
+1
-1
kubelet_etc_hosts.go
test/e2e/kubelet_etc_hosts.go
+2
-2
kubeproxy.go
test/e2e/kubeproxy.go
+2
-2
pd.go
test/e2e/pd.go
+1
-1
privileged.go
test/e2e/privileged.go
+1
-1
resize_nodes.go
test/e2e/resize_nodes.go
+1
-1
util.go
test/e2e/util.go
+1
-1
No files found.
cmd/genconversion/conversion.go
View file @
16e1de6d
...
@@ -84,9 +84,12 @@ func main() {
...
@@ -84,9 +84,12 @@ func main() {
data
:=
new
(
bytes
.
Buffer
)
data
:=
new
(
bytes
.
Buffer
)
gv
:=
unversioned
.
ParseGroupVersionOrDie
(
*
groupVersion
)
gv
,
err
:=
unversioned
.
ParseGroupVersion
(
*
groupVersion
)
if
err
!=
nil
{
glog
.
Fatalf
(
"Error parsing groupversion %v: %v"
,
*
groupVersion
,
err
)
}
_
,
err
:
=
data
.
WriteString
(
fmt
.
Sprintf
(
"package %v
\n
"
,
gv
.
Version
))
_
,
err
=
data
.
WriteString
(
fmt
.
Sprintf
(
"package %v
\n
"
,
gv
.
Version
))
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Error while writing package line: %v"
,
err
)
glog
.
Fatalf
(
"Error while writing package line: %v"
,
err
)
}
}
...
...
cmd/gendeepcopy/deep_copy.go
View file @
16e1de6d
...
@@ -94,7 +94,10 @@ func main() {
...
@@ -94,7 +94,10 @@ func main() {
data
:=
new
(
bytes
.
Buffer
)
data
:=
new
(
bytes
.
Buffer
)
gv
:=
unversioned
.
ParseGroupVersionOrDie
(
*
groupVersion
)
gv
,
err
:=
unversioned
.
ParseGroupVersion
(
*
groupVersion
)
if
err
!=
nil
{
glog
.
Fatalf
(
"Error parsing groupversion %v: %v"
,
*
groupVersion
,
err
)
}
registerTo
:=
destScheme
(
gv
)
registerTo
:=
destScheme
(
gv
)
var
pkgname
string
var
pkgname
string
...
@@ -108,7 +111,7 @@ func main() {
...
@@ -108,7 +111,7 @@ func main() {
pkgname
=
gv
.
Version
pkgname
=
gv
.
Version
}
}
_
,
err
:
=
data
.
WriteString
(
fmt
.
Sprintf
(
"package %s
\n
"
,
pkgname
))
_
,
err
=
data
.
WriteString
(
fmt
.
Sprintf
(
"package %s
\n
"
,
pkgname
))
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Error while writing package line: %v"
,
err
)
glog
.
Fatalf
(
"Error while writing package line: %v"
,
err
)
}
}
...
...
pkg/api/copy_test.go
View file @
16e1de6d
...
@@ -33,7 +33,7 @@ import (
...
@@ -33,7 +33,7 @@ import (
func
TestDeepCopyApiObjects
(
t
*
testing
.
T
)
{
func
TestDeepCopyApiObjects
(
t
*
testing
.
T
)
{
for
i
:=
0
;
i
<
*
fuzzIters
;
i
++
{
for
i
:=
0
;
i
<
*
fuzzIters
;
i
++
{
for
_
,
version
:=
range
[]
unversioned
.
GroupVersion
{
testapi
.
Default
.
InternalGroupVersion
(),
*
testapi
.
Default
.
GroupVersion
()}
{
for
_
,
version
:=
range
[]
unversioned
.
GroupVersion
{
testapi
.
Default
.
InternalGroupVersion
(),
*
testapi
.
Default
.
GroupVersion
()}
{
f
:=
apitesting
.
FuzzerFor
(
t
,
version
.
String
()
,
rand
.
NewSource
(
rand
.
Int63
()))
f
:=
apitesting
.
FuzzerFor
(
t
,
version
,
rand
.
NewSource
(
rand
.
Int63
()))
for
kind
:=
range
api
.
Scheme
.
KnownTypes
(
version
)
{
for
kind
:=
range
api
.
Scheme
.
KnownTypes
(
version
)
{
doDeepCopyTest
(
t
,
version
.
WithKind
(
kind
),
f
)
doDeepCopyTest
(
t
,
version
.
WithKind
(
kind
),
f
)
}
}
...
@@ -61,7 +61,7 @@ func doDeepCopyTest(t *testing.T, kind unversioned.GroupVersionKind, f *fuzz.Fuz
...
@@ -61,7 +61,7 @@ func doDeepCopyTest(t *testing.T, kind unversioned.GroupVersionKind, f *fuzz.Fuz
func
TestDeepCopySingleType
(
t
*
testing
.
T
)
{
func
TestDeepCopySingleType
(
t
*
testing
.
T
)
{
for
i
:=
0
;
i
<
*
fuzzIters
;
i
++
{
for
i
:=
0
;
i
<
*
fuzzIters
;
i
++
{
for
_
,
version
:=
range
[]
unversioned
.
GroupVersion
{
testapi
.
Default
.
InternalGroupVersion
(),
*
testapi
.
Default
.
GroupVersion
()}
{
for
_
,
version
:=
range
[]
unversioned
.
GroupVersion
{
testapi
.
Default
.
InternalGroupVersion
(),
*
testapi
.
Default
.
GroupVersion
()}
{
f
:=
apitesting
.
FuzzerFor
(
t
,
version
.
String
()
,
rand
.
NewSource
(
rand
.
Int63
()))
f
:=
apitesting
.
FuzzerFor
(
t
,
version
,
rand
.
NewSource
(
rand
.
Int63
()))
doDeepCopyTest
(
t
,
version
.
WithKind
(
"Pod"
),
f
)
doDeepCopyTest
(
t
,
version
.
WithKind
(
"Pod"
),
f
)
}
}
}
}
...
...
pkg/api/serialization_test.go
View file @
16e1de6d
...
@@ -41,13 +41,13 @@ import (
...
@@ -41,13 +41,13 @@ import (
var
fuzzIters
=
flag
.
Int
(
"fuzz-iters"
,
20
,
"How many fuzzing iterations to do."
)
var
fuzzIters
=
flag
.
Int
(
"fuzz-iters"
,
20
,
"How many fuzzing iterations to do."
)
var
codecsToTest
=
[]
func
(
version
string
,
item
runtime
.
Object
)
(
runtime
.
Codec
,
error
){
var
codecsToTest
=
[]
func
(
version
unversioned
.
GroupVersion
,
item
runtime
.
Object
)
(
runtime
.
Codec
,
error
){
func
(
version
string
,
item
runtime
.
Object
)
(
runtime
.
Codec
,
error
)
{
func
(
version
unversioned
.
GroupVersion
,
item
runtime
.
Object
)
(
runtime
.
Codec
,
error
)
{
return
testapi
.
GetCodecForObject
(
item
)
return
testapi
.
GetCodecForObject
(
item
)
},
},
}
}
func
fuzzInternalObject
(
t
*
testing
.
T
,
forVersion
string
,
item
runtime
.
Object
,
seed
int64
)
runtime
.
Object
{
func
fuzzInternalObject
(
t
*
testing
.
T
,
forVersion
unversioned
.
GroupVersion
,
item
runtime
.
Object
,
seed
int64
)
runtime
.
Object
{
apitesting
.
FuzzerFor
(
t
,
forVersion
,
rand
.
NewSource
(
seed
))
.
Fuzz
(
item
)
apitesting
.
FuzzerFor
(
t
,
forVersion
,
rand
.
NewSource
(
seed
))
.
Fuzz
(
item
)
j
,
err
:=
meta
.
TypeAccessor
(
item
)
j
,
err
:=
meta
.
TypeAccessor
(
item
)
...
@@ -99,9 +99,9 @@ func roundTrip(t *testing.T, codec runtime.Codec, item runtime.Object) {
...
@@ -99,9 +99,9 @@ func roundTrip(t *testing.T, codec runtime.Codec, item runtime.Object) {
func
roundTripSame
(
t
*
testing
.
T
,
item
runtime
.
Object
,
except
...
string
)
{
func
roundTripSame
(
t
*
testing
.
T
,
item
runtime
.
Object
,
except
...
string
)
{
set
:=
sets
.
NewString
(
except
...
)
set
:=
sets
.
NewString
(
except
...
)
seed
:=
rand
.
Int63
()
seed
:=
rand
.
Int63
()
fuzzInternalObject
(
t
,
testapi
.
Default
.
InternalGroupVersion
()
.
String
()
,
item
,
seed
)
fuzzInternalObject
(
t
,
testapi
.
Default
.
InternalGroupVersion
(),
item
,
seed
)
version
:=
testapi
.
Default
.
GroupVersion
()
.
String
()
version
:=
*
testapi
.
Default
.
GroupVersion
()
codecs
:=
[]
runtime
.
Codec
{}
codecs
:=
[]
runtime
.
Codec
{}
for
_
,
fn
:=
range
codecsToTest
{
for
_
,
fn
:=
range
codecsToTest
{
codec
,
err
:=
fn
(
version
,
item
)
codec
,
err
:=
fn
(
version
,
item
)
...
@@ -112,7 +112,7 @@ func roundTripSame(t *testing.T, item runtime.Object, except ...string) {
...
@@ -112,7 +112,7 @@ func roundTripSame(t *testing.T, item runtime.Object, except ...string) {
codecs
=
append
(
codecs
,
codec
)
codecs
=
append
(
codecs
,
codec
)
}
}
if
!
set
.
Has
(
version
)
{
if
!
set
.
Has
(
version
.
String
()
)
{
fuzzInternalObject
(
t
,
version
,
item
,
seed
)
fuzzInternalObject
(
t
,
version
,
item
,
seed
)
for
_
,
codec
:=
range
codecs
{
for
_
,
codec
:=
range
codecs
{
roundTrip
(
t
,
codec
,
item
)
roundTrip
(
t
,
codec
,
item
)
...
@@ -183,7 +183,7 @@ func doRoundTripTest(kind string, t *testing.T) {
...
@@ -183,7 +183,7 @@ func doRoundTripTest(kind string, t *testing.T) {
roundTripSame
(
t
,
item
,
nonRoundTrippableTypesByVersion
[
kind
]
...
)
roundTripSame
(
t
,
item
,
nonRoundTrippableTypesByVersion
[
kind
]
...
)
}
}
if
!
nonInternalRoundTrippableTypes
.
Has
(
kind
)
{
if
!
nonInternalRoundTrippableTypes
.
Has
(
kind
)
{
roundTrip
(
t
,
api
.
Codec
,
fuzzInternalObject
(
t
,
testapi
.
Default
.
InternalGroupVersion
()
.
String
()
,
item
,
rand
.
Int63
()))
roundTrip
(
t
,
api
.
Codec
,
fuzzInternalObject
(
t
,
testapi
.
Default
.
InternalGroupVersion
(),
item
,
rand
.
Int63
()))
}
}
}
}
...
@@ -266,7 +266,7 @@ func TestUnversionedTypes(t *testing.T) {
...
@@ -266,7 +266,7 @@ func TestUnversionedTypes(t *testing.T) {
const
benchmarkSeed
=
100
const
benchmarkSeed
=
100
func
benchmarkItems
()
[]
v1
.
Pod
{
func
benchmarkItems
()
[]
v1
.
Pod
{
apiObjectFuzzer
:=
apitesting
.
FuzzerFor
(
nil
,
""
,
rand
.
NewSource
(
benchmarkSeed
))
apiObjectFuzzer
:=
apitesting
.
FuzzerFor
(
nil
,
api
.
SchemeGroupVersion
,
rand
.
NewSource
(
benchmarkSeed
))
items
:=
make
([]
v1
.
Pod
,
2
)
items
:=
make
([]
v1
.
Pod
,
2
)
for
i
:=
range
items
{
for
i
:=
range
items
{
apiObjectFuzzer
.
Fuzz
(
&
items
[
i
])
apiObjectFuzzer
.
Fuzz
(
&
items
[
i
])
...
...
pkg/api/testapi/testapi.go
View file @
16e1de6d
...
@@ -50,7 +50,10 @@ func init() {
...
@@ -50,7 +50,10 @@ func init() {
if
kubeTestAPI
!=
""
{
if
kubeTestAPI
!=
""
{
testGroupVersions
:=
strings
.
Split
(
kubeTestAPI
,
","
)
testGroupVersions
:=
strings
.
Split
(
kubeTestAPI
,
","
)
for
_
,
gvString
:=
range
testGroupVersions
{
for
_
,
gvString
:=
range
testGroupVersions
{
groupVersion
:=
unversioned
.
ParseGroupVersionOrDie
(
gvString
)
groupVersion
,
err
:=
unversioned
.
ParseGroupVersion
(
gvString
)
if
err
!=
nil
{
panic
(
fmt
.
Sprintf
(
"Error parsing groupversion %v: %v"
,
gvString
,
err
))
}
Groups
[
groupVersion
.
Group
]
=
TestGroup
{
Groups
[
groupVersion
.
Group
]
=
TestGroup
{
externalGroupVersion
:
groupVersion
,
externalGroupVersion
:
groupVersion
,
...
...
pkg/api/testing/fuzzer.go
View file @
16e1de6d
...
@@ -39,7 +39,7 @@ import (
...
@@ -39,7 +39,7 @@ import (
)
)
// FuzzerFor can randomly populate api objects that are destined for version.
// FuzzerFor can randomly populate api objects that are destined for version.
func
FuzzerFor
(
t
*
testing
.
T
,
version
string
,
src
rand
.
Source
)
*
fuzz
.
Fuzzer
{
func
FuzzerFor
(
t
*
testing
.
T
,
version
unversioned
.
GroupVersion
,
src
rand
.
Source
)
*
fuzz
.
Fuzzer
{
f
:=
fuzz
.
New
()
.
NilChance
(
.5
)
.
NumElements
(
1
,
1
)
f
:=
fuzz
.
New
()
.
NilChance
(
.5
)
.
NumElements
(
1
,
1
)
if
src
!=
nil
{
if
src
!=
nil
{
f
.
RandSource
(
src
)
f
.
RandSource
(
src
)
...
...
pkg/api/unversioned/group_version.go
View file @
16e1de6d
...
@@ -162,15 +162,6 @@ func ParseGroupVersion(gv string) (GroupVersion, error) {
...
@@ -162,15 +162,6 @@ func ParseGroupVersion(gv string) (GroupVersion, error) {
}
}
}
}
func
ParseGroupVersionOrDie
(
gv
string
)
GroupVersion
{
ret
,
err
:=
ParseGroupVersion
(
gv
)
if
err
!=
nil
{
panic
(
err
)
}
return
ret
}
// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind.
// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind.
func
(
gv
GroupVersion
)
WithKind
(
kind
string
)
GroupVersionKind
{
func
(
gv
GroupVersion
)
WithKind
(
kind
string
)
GroupVersionKind
{
return
GroupVersionKind
{
Group
:
gv
.
Group
,
Version
:
gv
.
Version
,
Kind
:
kind
}
return
GroupVersionKind
{
Group
:
gv
.
Group
,
Version
:
gv
.
Version
,
Kind
:
kind
}
...
...
pkg/api/validation/schema_test.go
View file @
16e1de6d
...
@@ -67,7 +67,7 @@ func TestValidateOk(t *testing.T) {
...
@@ -67,7 +67,7 @@ func TestValidateOk(t *testing.T) {
}
}
seed
:=
rand
.
Int63
()
seed
:=
rand
.
Int63
()
apiObjectFuzzer
:=
apitesting
.
FuzzerFor
(
nil
,
""
,
rand
.
NewSource
(
seed
))
apiObjectFuzzer
:=
apitesting
.
FuzzerFor
(
nil
,
testapi
.
Default
.
InternalGroupVersion
()
,
rand
.
NewSource
(
seed
))
for
i
:=
0
;
i
<
5
;
i
++
{
for
i
:=
0
;
i
<
5
;
i
++
{
for
_
,
test
:=
range
tests
{
for
_
,
test
:=
range
tests
{
testObj
:=
test
.
obj
testObj
:=
test
.
obj
...
...
test/e2e/dns.go
View file @
16e1de6d
...
@@ -42,7 +42,7 @@ func createDNSPod(namespace, wheezyProbeCmd, jessieProbeCmd string) *api.Pod {
...
@@ -42,7 +42,7 @@ func createDNSPod(namespace, wheezyProbeCmd, jessieProbeCmd string) *api.Pod {
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"dns-test-"
+
string
(
util
.
NewUUID
()),
Name
:
"dns-test-"
+
string
(
util
.
NewUUID
()),
...
...
test/e2e/empty_dir.go
View file @
16e1de6d
...
@@ -313,7 +313,7 @@ func testPodWithVolume(image, path string, source *api.EmptyDirVolumeSource) *ap
...
@@ -313,7 +313,7 @@ func testPodWithVolume(image, path string, source *api.EmptyDirVolumeSource) *ap
return
&
api
.
Pod
{
return
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
...
test/e2e/host_path.go
View file @
16e1de6d
...
@@ -111,7 +111,7 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
...
@@ -111,7 +111,7 @@ func testPodWithHostVol(path string, source *api.HostPathVolumeSource) *api.Pod
return
&
api
.
Pod
{
return
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
...
test/e2e/kubelet_etc_hosts.go
View file @
16e1de6d
...
@@ -143,7 +143,7 @@ func (config *KubeletManagedHostConfig) createPodSpec(podName string) *api.Pod {
...
@@ -143,7 +143,7 @@ func (config *KubeletManagedHostConfig) createPodSpec(podName string) *api.Pod {
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
@@ -204,7 +204,7 @@ func (config *KubeletManagedHostConfig) createPodSpecWithHostNetwork(podName str
...
@@ -204,7 +204,7 @@ func (config *KubeletManagedHostConfig) createPodSpecWithHostNetwork(podName str
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
...
test/e2e/kubeproxy.go
View file @
16e1de6d
...
@@ -256,7 +256,7 @@ func (config *KubeProxyTestConfig) createNetShellPodSpec(podName string, node st
...
@@ -256,7 +256,7 @@ func (config *KubeProxyTestConfig) createNetShellPodSpec(podName string, node st
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
@@ -296,7 +296,7 @@ func (config *KubeProxyTestConfig) createTestPodSpec() *api.Pod {
...
@@ -296,7 +296,7 @@ func (config *KubeProxyTestConfig) createTestPodSpec() *api.Pod {
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
testPodName
,
Name
:
testPodName
,
...
...
test/e2e/pd.go
View file @
16e1de6d
...
@@ -413,7 +413,7 @@ func testPDPod(diskNames []string, targetHost string, readOnly bool, numContaine
...
@@ -413,7 +413,7 @@ func testPDPod(diskNames []string, targetHost string, readOnly bool, numContaine
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"pd-test-"
+
string
(
util
.
NewUUID
()),
Name
:
"pd-test-"
+
string
(
util
.
NewUUID
()),
...
...
test/e2e/privileged.go
View file @
16e1de6d
...
@@ -102,7 +102,7 @@ func (config *PrivilegedPodTestConfig) createPrivilegedPodSpec() *api.Pod {
...
@@ -102,7 +102,7 @@ func (config *PrivilegedPodTestConfig) createPrivilegedPodSpec() *api.Pod {
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
privilegedPodName
,
Name
:
privilegedPodName
,
...
...
test/e2e/resize_nodes.go
View file @
16e1de6d
...
@@ -188,7 +188,7 @@ func rcByNameContainer(name string, replicas int, image string, labels map[strin
...
@@ -188,7 +188,7 @@ func rcByNameContainer(name string, replicas int, image string, labels map[strin
return
&
api
.
ReplicationController
{
return
&
api
.
ReplicationController
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"ReplicationController"
,
Kind
:
"ReplicationController"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
name
,
Name
:
name
,
...
...
test/e2e/util.go
View file @
16e1de6d
...
@@ -2149,7 +2149,7 @@ func NewHostExecPodSpec(ns, name string) *api.Pod {
...
@@ -2149,7 +2149,7 @@ func NewHostExecPodSpec(ns, name string) *api.Pod {
pod
:=
&
api
.
Pod
{
pod
:=
&
api
.
Pod
{
TypeMeta
:
unversioned
.
TypeMeta
{
TypeMeta
:
unversioned
.
TypeMeta
{
Kind
:
"Pod"
,
Kind
:
"Pod"
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
Version
,
APIVersion
:
latest
.
GroupOrDie
(
api
.
GroupName
)
.
GroupVersion
.
String
()
,
},
},
ObjectMeta
:
api
.
ObjectMeta
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
name
,
Name
:
name
,
...
...
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