Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pkg/controllers/openshift-crd-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ func (s *OpenShiftCRDManager) Dependencies() []string {
}

func (s *OpenShiftCRDManager) Run(ctx context.Context, ready chan<- struct{}, stopped chan<- struct{}) error {
defer close(ready)
// To-DO add readiness check
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the check is already there (waitForCrdEstablishment)

defer close(stopped)

if err := assets.ApplyCRDs(s.cfg); err != nil {
klog.Errorf("%s unable to apply default CRDs: %v", s.Name(), err)
return err
}
klog.Infof("%s applied default CRDs", s.Name())

Expand All @@ -51,5 +52,7 @@ func (s *OpenShiftCRDManager) Run(ctx context.Context, ready chan<- struct{}, st
klog.Errorf("%s unable to confirm all CRDs are ready: %v", s.Name(), err)
}
klog.Infof("%s all CRDs are ready", s.Name())
close(ready)

return ctx.Err()
}