[scheduling] Moved pod affinity and anti-affinity from annotations to api
fields. #25319
This commit is contained in:
@@ -54,7 +54,6 @@ func TestDecodeSinglePod(t *testing.T) {
|
||||
SecurityContext: securitycontext.ValidSecurityContextWithContainerDefaults(),
|
||||
}},
|
||||
SecurityContext: &v1.PodSecurityContext{},
|
||||
Affinity: &v1.Affinity{},
|
||||
},
|
||||
}
|
||||
json, err := runtime.Encode(testapi.Default.Codec(), pod)
|
||||
@@ -115,7 +114,6 @@ func TestDecodePodList(t *testing.T) {
|
||||
SecurityContext: securitycontext.ValidSecurityContextWithContainerDefaults(),
|
||||
}},
|
||||
SecurityContext: &v1.PodSecurityContext{},
|
||||
Affinity: &v1.Affinity{},
|
||||
},
|
||||
}
|
||||
podList := &v1.PodList{
|
||||
|
Reference in New Issue
Block a user