Skip to content

Commit

Permalink
chore: rewrite machine controller names (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
guikcd authored Jun 1, 2023
1 parent 39ce952 commit 1e56dd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/machine/garbagecollection/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewController(c clock.Clock, kubeClient client.Client, cloudProvider cloudp
}

func (c *Controller) Name() string {
return "machine_garbagecollection"
return "machine.garbagecollection"
}

func (c *Controller) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/machine/lifecycle/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func NewController(clk clock.Clock, kubeClient client.Client, cloudProvider clou
}

func (*Controller) Name() string {
return "machine_lifecycle"
return "machine.lifecycle"
}

func (c *Controller) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/machine/termination/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewController(kubeClient client.Client, cloudProvider cloudprovider.CloudPr
}

func (*Controller) Name() string {
return "machine_termination"
return "machine.termination"
}

func (c *Controller) Reconcile(_ context.Context, _ *v1alpha5.Machine) (reconcile.Result, error) {
Expand Down

0 comments on commit 1e56dd5

Please sign in to comment.