mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 02:08:13 +00:00 
			
		
		
		
	Change HostPath to EmptyDir for VolumeSubpathEnvExpansion e2e tests
This commit is contained in:
		| @@ -184,7 +184,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 								SubPathExpr: "$(POD_NAME)", | 								SubPathExpr: "$(POD_NAME)", | ||||||
| 							}, | 							}, | ||||||
| 							{ | 							{ | ||||||
| 								Name:      "workdir2", | 								Name:      "workdir1", | ||||||
| 								MountPath: "/testcontainer", | 								MountPath: "/testcontainer", | ||||||
| 							}, | 							}, | ||||||
| 						}, | 						}, | ||||||
| @@ -195,13 +195,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 					{ | 					{ | ||||||
| 						Name: "workdir1", | 						Name: "workdir1", | ||||||
| 						VolumeSource: v1.VolumeSource{ | 						VolumeSource: v1.VolumeSource{ | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, | 							EmptyDir: &v1.EmptyDirVolumeSource{}, | ||||||
| 						}, |  | ||||||
| 					}, |  | ||||||
| 					{ |  | ||||||
| 						Name: "workdir2", |  | ||||||
| 						VolumeSource: v1.VolumeSource{ |  | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, |  | ||||||
| 						}, | 						}, | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
| @@ -353,7 +347,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 								SubPathExpr: "$(ANNOTATION)/$(POD_NAME)", | 								SubPathExpr: "$(ANNOTATION)/$(POD_NAME)", | ||||||
| 							}, | 							}, | ||||||
| 							{ | 							{ | ||||||
| 								Name:      "workdir2", | 								Name:      "workdir1", | ||||||
| 								MountPath: "/volume_mount", | 								MountPath: "/volume_mount", | ||||||
| 							}, | 							}, | ||||||
| 						}, | 						}, | ||||||
| @@ -363,13 +357,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 					{ | 					{ | ||||||
| 						Name: "workdir1", | 						Name: "workdir1", | ||||||
| 						VolumeSource: v1.VolumeSource{ | 						VolumeSource: v1.VolumeSource{ | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, | 							EmptyDir: &v1.EmptyDirVolumeSource{}, | ||||||
| 						}, |  | ||||||
| 					}, |  | ||||||
| 					{ |  | ||||||
| 						Name: "workdir2", |  | ||||||
| 						VolumeSource: v1.VolumeSource{ |  | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, |  | ||||||
| 						}, | 						}, | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
| @@ -443,7 +431,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 								SubPathExpr: "$(ANNOTATION)/$(POD_NAME)", | 								SubPathExpr: "$(ANNOTATION)/$(POD_NAME)", | ||||||
| 							}, | 							}, | ||||||
| 							{ | 							{ | ||||||
| 								Name:      "workdir2", | 								Name:      "workdir1", | ||||||
| 								MountPath: "/volume_mount", | 								MountPath: "/volume_mount", | ||||||
| 							}, | 							}, | ||||||
| 						}, | 						}, | ||||||
| @@ -454,13 +442,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 					{ | 					{ | ||||||
| 						Name: "workdir1", | 						Name: "workdir1", | ||||||
| 						VolumeSource: v1.VolumeSource{ | 						VolumeSource: v1.VolumeSource{ | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, | 							EmptyDir: &v1.EmptyDirVolumeSource{}, | ||||||
| 						}, |  | ||||||
| 					}, |  | ||||||
| 					{ |  | ||||||
| 						Name: "workdir2", |  | ||||||
| 						VolumeSource: v1.VolumeSource{ |  | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, |  | ||||||
| 						}, | 						}, | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
| @@ -536,7 +518,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 								MountPath: "/subpath_mount", | 								MountPath: "/subpath_mount", | ||||||
| 							}, | 							}, | ||||||
| 							{ | 							{ | ||||||
| 								Name:      "workdir2", | 								Name:      "workdir1", | ||||||
| 								MountPath: "/volume_mount", | 								MountPath: "/volume_mount", | ||||||
| 							}, | 							}, | ||||||
| 						}, | 						}, | ||||||
| @@ -566,7 +548,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 								SubPathExpr: "$(POD_NAME)", | 								SubPathExpr: "$(POD_NAME)", | ||||||
| 							}, | 							}, | ||||||
| 							{ | 							{ | ||||||
| 								Name:      "workdir2", | 								Name:      "workdir1", | ||||||
| 								MountPath: "/volume_mount", | 								MountPath: "/volume_mount", | ||||||
| 							}, | 							}, | ||||||
| 						}, | 						}, | ||||||
| @@ -577,13 +559,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() { | |||||||
| 					{ | 					{ | ||||||
| 						Name: "workdir1", | 						Name: "workdir1", | ||||||
| 						VolumeSource: v1.VolumeSource{ | 						VolumeSource: v1.VolumeSource{ | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, | 							EmptyDir: &v1.EmptyDirVolumeSource{}, | ||||||
| 						}, |  | ||||||
| 					}, |  | ||||||
| 					{ |  | ||||||
| 						Name: "workdir2", |  | ||||||
| 						VolumeSource: v1.VolumeSource{ |  | ||||||
| 							HostPath: &v1.HostPathVolumeSource{Path: "/tmp"}, |  | ||||||
| 						}, | 						}, | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kevin Taylor
					Kevin Taylor