@@ -184,7 +184,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
184
184
SubPathExpr : "$(POD_NAME)" ,
185
185
},
186
186
{
187
- Name : "workdir2 " ,
187
+ Name : "workdir1 " ,
188
188
MountPath : "/testcontainer" ,
189
189
},
190
190
},
@@ -195,13 +195,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
195
195
{
196
196
Name : "workdir1" ,
197
197
VolumeSource : v1.VolumeSource {
198
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
199
- },
200
- },
201
- {
202
- Name : "workdir2" ,
203
- VolumeSource : v1.VolumeSource {
204
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
198
+ EmptyDir : & v1.EmptyDirVolumeSource {},
205
199
},
206
200
},
207
201
},
@@ -353,7 +347,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
353
347
SubPathExpr : "$(ANNOTATION)/$(POD_NAME)" ,
354
348
},
355
349
{
356
- Name : "workdir2 " ,
350
+ Name : "workdir1 " ,
357
351
MountPath : "/volume_mount" ,
358
352
},
359
353
},
@@ -363,13 +357,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
363
357
{
364
358
Name : "workdir1" ,
365
359
VolumeSource : v1.VolumeSource {
366
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
367
- },
368
- },
369
- {
370
- Name : "workdir2" ,
371
- VolumeSource : v1.VolumeSource {
372
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
360
+ EmptyDir : & v1.EmptyDirVolumeSource {},
373
361
},
374
362
},
375
363
},
@@ -443,7 +431,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
443
431
SubPathExpr : "$(ANNOTATION)/$(POD_NAME)" ,
444
432
},
445
433
{
446
- Name : "workdir2 " ,
434
+ Name : "workdir1 " ,
447
435
MountPath : "/volume_mount" ,
448
436
},
449
437
},
@@ -454,13 +442,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
454
442
{
455
443
Name : "workdir1" ,
456
444
VolumeSource : v1.VolumeSource {
457
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
458
- },
459
- },
460
- {
461
- Name : "workdir2" ,
462
- VolumeSource : v1.VolumeSource {
463
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
445
+ EmptyDir : & v1.EmptyDirVolumeSource {},
464
446
},
465
447
},
466
448
},
@@ -536,7 +518,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
536
518
MountPath : "/subpath_mount" ,
537
519
},
538
520
{
539
- Name : "workdir2 " ,
521
+ Name : "workdir1 " ,
540
522
MountPath : "/volume_mount" ,
541
523
},
542
524
},
@@ -566,7 +548,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
566
548
SubPathExpr : "$(POD_NAME)" ,
567
549
},
568
550
{
569
- Name : "workdir2 " ,
551
+ Name : "workdir1 " ,
570
552
MountPath : "/volume_mount" ,
571
553
},
572
554
},
@@ -577,13 +559,7 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
577
559
{
578
560
Name : "workdir1" ,
579
561
VolumeSource : v1.VolumeSource {
580
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
581
- },
582
- },
583
- {
584
- Name : "workdir2" ,
585
- VolumeSource : v1.VolumeSource {
586
- HostPath : & v1.HostPathVolumeSource {Path : "/tmp" },
562
+ EmptyDir : & v1.EmptyDirVolumeSource {},
587
563
},
588
564
},
589
565
},
0 commit comments