Skip to content

Commit c1cfd85

Browse files
authored
Provide option to disable fuse device (#19801)
1 parent f713299 commit c1cfd85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/ws-daemon/pkg/cgroup/plugin_fuse_v2.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ func (c *FuseDeviceEnablerV2) Name() string { return "fuse-device-enabler-v2" }
2929
func (c *FuseDeviceEnablerV2) Type() Version { return Version2 }
3030

3131
func (c *FuseDeviceEnablerV2) Apply(ctx context.Context, opts *PluginOptions) error {
32+
if val, ok := opts.Annotations["gitpod.io/fuse-device"]; ok && val == "false" {
33+
return nil
34+
}
35+
3236
fullCgroupPath := filepath.Join(opts.BasePath, opts.CgroupPath)
3337
log.WithField("cgroupPath", fullCgroupPath).Debug("configuring devices")
3438

0 commit comments

Comments
 (0)