intel / kubernetes-power-manager

Apache License 2.0
76 stars 18 forks source link

Container deletion from the workload #57

Open ejalberti opened 11 months ago

ejalberti commented 11 months ago

When deleting pods that use the resources of a given power profile, the workload may be incorrectly updated, removing all existing container entries. This error can be observed whenever containers with the same name, but different pods, share resources of the same workload.

This commit changes the container identification of a workload, searching for its UID instead of its name, as well as including workload information when admitting a powerpod.