Skip to content

Commit

Permalink
Merge pull request #2941 from dhanusaputra/rename-workload
Browse files Browse the repository at this point in the history
🌱 Unify workload[s] names in the tmc controller.go
  • Loading branch information
openshift-merge-robot authored Apr 4, 2023
2 parents e65e243 + 700c752 commit 096dd14
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 096dd14

Please sign in to comment.