Skip to content

Commit

Permalink
fix: missing caller for ray to init images
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw committed Oct 31, 2024
1 parent a1f0e62 commit b474691
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"flag"
"os"

"github.com/hashicorp/go-multierror"
addonv1alpha1 "github.com/openshift/addon-operator/apis/addons/v1alpha1"
ocappsv1 "github.com/openshift/api/apps/v1" //nolint:importas //reason: conflicts with appsv1 "k8s.io/api/apps/v1"
buildv1 "github.com/openshift/api/build/v1"
Expand Down Expand Up @@ -112,7 +113,15 @@ func init() { //nolint:gochecknoinits
}

func initComponents(_ context.Context, p cluster.Platform) error {
return dashboardctrl.Init(p)
var multiErr *multierror.Error

if err := dashboardctrl.Init(p); err != nil {
multiErr = multierror.Append(multiErr, err)
}
if err := rayctrl.Init(p); err != nil {
multiErr = multierror.Append(multiErr, err)
}
return multiErr.ErrorOrNil()
}

func main() { //nolint:funlen,maintidx
Expand Down

0 comments on commit b474691

Please sign in to comment.