containers / nri-plugins

A collection of community maintained NRI plugins
https://containers.github.io/nri-plugins/
Apache License 2.0
67 stars 24 forks source link

resmgr: fix "qosclass" in policy expressions #387

Closed askervin closed 1 month ago

askervin commented 1 month ago

Resolving "qosclass" failed silently and returned an empty string due to error when "casting" object from interface{} to string. This fails because the resolved value behind the interface{} is of type k8s.io/api/core/v1.PodQOSClass and not (directly) a string. Making sure that the interface{} is directly a string solves the problem.