change preempting to PreemptionPolicy
This commit is contained in:
@@ -217,7 +217,7 @@ func TestRoundTripTypes(t *testing.T) {
|
||||
func TestEncodePtr(t *testing.T) {
|
||||
grace := int64(30)
|
||||
enableServiceLinks := v1.DefaultEnableServiceLinks
|
||||
preempting := v1.DefaultPreempting
|
||||
preemptNever := api.PreemptNever
|
||||
pod := &api.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Labels: map[string]string{"name": "foo"},
|
||||
@@ -231,7 +231,7 @@ func TestEncodePtr(t *testing.T) {
|
||||
SecurityContext: &api.PodSecurityContext{},
|
||||
SchedulerName: api.DefaultSchedulerName,
|
||||
EnableServiceLinks: &enableServiceLinks,
|
||||
Preempting: &preempting,
|
||||
PreemptionPolicy: &preemptNever,
|
||||
},
|
||||
}
|
||||
obj := runtime.Object(pod)
|
||||
|
Reference in New Issue
Block a user