Skip to content

Commit 3fe1fa5

Browse files
authored
ensure AppWrapper controller sets PodsReady condition on Workload (#180)
Need to conservatively set the WaitForPodsReady option to true so that the AppWrapper instance of Kueue's generic reconciller loop will set the PodsReady condition on the Workload instance when pods become ready.
1 parent 465127b commit 3fe1fa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/controller/setup.go

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"github.com/project-codeflare/appwrapper/internal/webhook"
3434
"github.com/project-codeflare/appwrapper/pkg/config"
3535

36+
"sigs.k8s.io/kueue/apis/config/v1beta1"
3637
"sigs.k8s.io/kueue/pkg/controller/jobframework"
3738
)
3839

@@ -43,6 +44,7 @@ func SetupControllers(mgr ctrl.Manager, awConfig *config.AppWrapperConfig) error
4344
mgr.GetClient(),
4445
mgr.GetEventRecorderFor("kueue"),
4546
jobframework.WithManageJobsWithoutQueueName(true),
47+
jobframework.WithWaitForPodsReady(&v1beta1.WaitForPodsReady{Enable: true}),
4648
).SetupWithManager(mgr); err != nil {
4749
return fmt.Errorf("workload controller: %w", err)
4850
}

0 commit comments

Comments
 (0)