Skip to content

Commit

Permalink
Unify workload[s] names in the tmc controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dhanusaputra committed Apr 4, 2023
1 parent e65e243 commit 700c752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tmc/pkg/server/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (s *Server) installSchedulingPlacementController(ctx context.Context, confi
})
}

func (s *Server) installWorkloadsAPIExportController(ctx context.Context, config *rest.Config) error {
func (s *Server) installWorkloadAPIExportController(ctx context.Context, config *rest.Config) error {
config = rest.CopyConfig(config)
config = rest.AddUserAgent(config, workloadsapiexport.ControllerName)
kcpClusterClient, err := kcpclientset.NewForConfig(config)
Expand Down Expand Up @@ -313,7 +313,7 @@ func (s *Server) installWorkloadsAPIExportController(ctx context.Context, config
})
}

func (s *Server) installWorkloadsDefaultLocationController(ctx context.Context, config *rest.Config) error {
func (s *Server) installWorkloadDefaultLocationController(ctx context.Context, config *rest.Config) error {
config = rest.CopyConfig(config)
config = rest.AddUserAgent(config, workloadsdefaultlocation.ControllerName)
kcpClusterClient, err := kcpclientset.NewForConfig(config)
Expand Down Expand Up @@ -343,7 +343,7 @@ func (s *Server) installWorkloadsDefaultLocationController(ctx context.Context,
})
}

func (s *Server) installWorkloadsSyncTargetExportController(ctx context.Context, config *rest.Config) error {
func (s *Server) installWorkloadSyncTargetExportController(ctx context.Context, config *rest.Config) error {
config = rest.CopyConfig(config)
config = rest.AddUserAgent(config, synctargetexports.ControllerName)
kcpClusterClient, err := kcpclientset.NewForConfig(config)
Expand Down
6 changes: 3 additions & 3 deletions tmc/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *Server) Run(ctx context.Context) error {
if err := s.installSyncTargetController(ctx, controllerConfig); err != nil {
return err
}
if err := s.installWorkloadsSyncTargetExportController(ctx, controllerConfig); err != nil {
if err := s.installWorkloadSyncTargetExportController(ctx, controllerConfig); err != nil {
return err
}

Expand Down Expand Up @@ -136,10 +136,10 @@ func (s *Server) Run(ctx context.Context) error {
if err := s.installSchedulingPlacementController(ctx, controllerConfig); err != nil {
return err
}
if err := s.installWorkloadsAPIExportController(ctx, controllerConfig); err != nil {
if err := s.installWorkloadAPIExportController(ctx, controllerConfig); err != nil {
return err
}
if err := s.installWorkloadsDefaultLocationController(ctx, controllerConfig); err != nil {
if err := s.installWorkloadDefaultLocationController(ctx, controllerConfig); err != nil {
return err
}
}
Expand Down

0 comments on commit 700c752

Please sign in to comment.