In the current system, the daemon set sets states in instance allocation to created (when mig slice is created on GPU with configmap added to pod namespaces) and deleted (when mig slice is deleted from the GPU with configmap deleted from the namespace).
The controller can listen to config map events and move allocation to ungated when a config map create event occurs or remove allocation when a config map delete event occurs. This approach reduces the ping-pong for changing allocation status by two controllers for a pod.
In the current system, the daemon set sets states in instance allocation to
created
(when mig slice is created on GPU with configmap added to pod namespaces) anddeleted
(when mig slice is deleted from the GPU with configmap deleted from the namespace). The controller can listen to config map events and move allocation toungated
when a config map create event occurs or remove allocation when a config map delete event occurs. This approach reduces the ping-pong for changing allocation status by two controllers for a pod.