refactor: use metav1.ObjectMeta in other types
This commit is contained in:
@@ -19,6 +19,7 @@ package e2e_node
|
||||
import (
|
||||
"time"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/kubernetes/pkg/api/v1"
|
||||
"k8s.io/kubernetes/pkg/util/uuid"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
@@ -41,7 +42,7 @@ var _ = framework.KubeDescribe("Kubelet Volume Manager", func() {
|
||||
By("Creating a pod with a memory backed volume that exits success without restart", func() {
|
||||
volumeName = "memory-volume"
|
||||
memoryBackedPod = f.PodClient().Create(&v1.Pod{
|
||||
ObjectMeta: v1.ObjectMeta{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "pod" + string(uuid.NewUUID()),
|
||||
Namespace: f.Namespace.Name,
|
||||
},
|
||||
@@ -80,7 +81,7 @@ var _ = framework.KubeDescribe("Kubelet Volume Manager", func() {
|
||||
// need to create a new verification pod on each pass since updates
|
||||
//to the HostPath volume aren't propogated to the pod
|
||||
pod := f.PodClient().Create(&v1.Pod{
|
||||
ObjectMeta: v1.ObjectMeta{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "pod" + string(uuid.NewUUID()),
|
||||
Namespace: f.Namespace.Name,
|
||||
},
|
||||
|
Reference in New Issue
Block a user