Skip to content

Commit ae3ce58

Browse files
committed
[operator] mount host udev and uinput into wolf sidecar
1 parent aaeffb6 commit ae3ce58

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

pkg/controllers/session.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ func (c *SessionController) reconcilePod(ctx context.Context, session *v1alpha1t
990990
Name: "wolf-data",
991991
MountPath: "/mnt/data/wolf",
992992
},
993+
{
994+
Name: "dev-input",
995+
MountPath: "/dev/input",
996+
},
997+
// {
998+
// Name: "dev-uinput",
999+
// MountPath: "/dev/uinput",
1000+
// },
1001+
{
1002+
Name: "host-udev",
1003+
MountPath: "/run/udev",
1004+
},
9931005
},
9941006
},
9951007
)
@@ -1025,6 +1037,33 @@ func (c *SessionController) reconcilePod(ctx context.Context, session *v1alpha1t
10251037
},
10261038
},
10271039
},
1040+
corev1.Volume{
1041+
Name: "dev-input",
1042+
VolumeSource: corev1.VolumeSource{
1043+
HostPath: &corev1.HostPathVolumeSource{
1044+
Path: "/dev/input",
1045+
Type: ptr.To(corev1.HostPathDirectory),
1046+
},
1047+
},
1048+
},
1049+
// corev1.Volume{
1050+
// Name: "dev-uinput",
1051+
// VolumeSource: corev1.VolumeSource{
1052+
// HostPath: &corev1.HostPathVolumeSource{
1053+
// Path: "/dev/uinput",
1054+
// Type: ptr.To(corev1.HostPathFile),
1055+
// },
1056+
// },
1057+
// },
1058+
corev1.Volume{
1059+
Name: "host-udev",
1060+
VolumeSource: corev1.VolumeSource{
1061+
HostPath: &corev1.HostPathVolumeSource{
1062+
Path: "/run/udev",
1063+
Type: ptr.To(corev1.HostPathDirectory),
1064+
},
1065+
},
1066+
},
10281067
)
10291068

10301069
// Create deployment scaled to 1 for this pod

0 commit comments

Comments
 (0)