update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go
This commit is contained in:
@@ -1869,7 +1869,7 @@ func failedState(cName string) api.ContainerStatus {
|
||||
|
||||
func TestPodPhaseWithRestartAlways(t *testing.T) {
|
||||
desiredState := api.PodSpec{
|
||||
Host: "machine",
|
||||
NodeName: "machine",
|
||||
Containers: []api.Container{
|
||||
{Name: "containerA"},
|
||||
{Name: "containerB"},
|
||||
@@ -1944,7 +1944,7 @@ func TestPodPhaseWithRestartAlways(t *testing.T) {
|
||||
|
||||
func TestPodPhaseWithRestartNever(t *testing.T) {
|
||||
desiredState := api.PodSpec{
|
||||
Host: "machine",
|
||||
NodeName: "machine",
|
||||
Containers: []api.Container{
|
||||
{Name: "containerA"},
|
||||
{Name: "containerB"},
|
||||
@@ -2032,7 +2032,7 @@ func TestPodPhaseWithRestartNever(t *testing.T) {
|
||||
|
||||
func TestPodPhaseWithRestartOnFailure(t *testing.T) {
|
||||
desiredState := api.PodSpec{
|
||||
Host: "machine",
|
||||
NodeName: "machine",
|
||||
Containers: []api.Container{
|
||||
{Name: "containerA"},
|
||||
{Name: "containerB"},
|
||||
|
Reference in New Issue
Block a user