@@ -514,6 +514,17 @@ var _ = Describe("Plugin container creation adjustments", func() {
514514 },
515515 )
516516
517+ case "I/O priority" :
518+ a .SetLinuxIOPriority (& nri.LinuxIOPriority {
519+ Class : api .IOPrioClass_IOPRIO_CLASS_RT ,
520+ Priority : 5 ,
521+ })
522+
523+ case "clear I/O priority" :
524+ a .SetLinuxIOPriority (& nri.LinuxIOPriority {
525+ Class : api .IOPrioClass_IOPRIO_CLASS_NONE ,
526+ })
527+
517528 case "resources/cpu" :
518529 a .SetLinuxCPUShares (123 )
519530 a .SetLinuxCPUQuota (456 )
@@ -700,6 +711,25 @@ var _ = Describe("Plugin container creation adjustments", func() {
700711 },
701712 },
702713 ),
714+
715+ Entry ("adjust I/O priority" , "I/O priority" ,
716+ & api.ContainerAdjustment {
717+ Linux : & api.LinuxContainerAdjustment {
718+ IoPriority : & api.LinuxIOPriority {
719+ Class : api .IOPrioClass_IOPRIO_CLASS_RT ,
720+ Priority : 5 ,
721+ },
722+ },
723+ },
724+ ),
725+ Entry ("clear I/O priority" , "clear I/O priority" ,
726+ & api.ContainerAdjustment {
727+ Linux : & api.LinuxContainerAdjustment {
728+ IoPriority : & api.LinuxIOPriority {},
729+ },
730+ },
731+ ),
732+
703733 Entry ("adjust CPU resources" , "resources/cpu" ,
704734 & api.ContainerAdjustment {
705735 Linux : & api.LinuxContainerAdjustment {
@@ -921,6 +951,7 @@ var _ = Describe("Plugin container creation adjustments", func() {
921951 },
922952 ),
923953 Entry ("adjust resources" , "resources/classes" , false , true , nil ),
954+ Entry ("adjust I/O priority (conflicts)" , "I/O priority" , false , true , nil ),
924955 )
925956 })
926957
0 commit comments