duplicated condition update with Unschedulable and Scheduled, just retain one Scheduled is enough.
and add an extended condition to express the Unenqueueable event.
every pg will record a Unschedulable type event fisrt no matter whether resources are enough and then schedule successfully.
Steps to reproduce the issue
Create a vcjob in a cluster with sufficient resources. The vcjob is scheduled normally and is in the running state.
Execute "kubectl describe pg xxx", will see podgroup contains conditions that unschedulable and scheduled.
3.Execute “kubectl get events --sort-by='.metadata.creationTimestamp'”, will see warning event "job xxx unscheduler, reasion:...."
Describe the results you received and expected
expected:
Only one condition is used to describe podgroup scheduling.
No unscheduable warning event occurs in the pod group that is normally scheduled.
Description
Steps to reproduce the issue
Describe the results you received and expected
expected:
What version of Volcano are you using?
v1.9.0
Any other relevant information
No response