1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 02:37:11 +00:00

Revert "test/e2e: drop /boot mount"

This reverts commit 261ab113bf.
This commit is contained in:
Markus Lehtonen 2021-11-23 10:50:20 +02:00
parent 99d3251c42
commit f7b2bcc457

View file

@ -323,6 +323,11 @@ func nfdWorkerPodSpec(image string, extraArgs []string) v1.PodSpec {
},
},
VolumeMounts: []v1.VolumeMount{
{
Name: "host-boot",
MountPath: "/host-boot",
ReadOnly: true,
},
{
Name: "host-os-release",
MountPath: "/host-etc/os-release",
@ -349,6 +354,15 @@ func nfdWorkerPodSpec(image string, extraArgs []string) v1.PodSpec {
ServiceAccountName: "nfd-master-e2e",
DNSPolicy: v1.DNSClusterFirstWithHostNet,
Volumes: []v1.Volume{
{
Name: "host-boot",
VolumeSource: v1.VolumeSource{
HostPath: &v1.HostPathVolumeSource{
Path: "/boot",
Type: newHostPathType(v1.HostPathDirectory),
},
},
},
{
Name: "host-os-release",
VolumeSource: v1.VolumeSource{