From 1e56dd5da03cff9c5f54d1b099de1e786636b7e7 Mon Sep 17 00:00:00 2001 From: Guillaume Delacour Date: Thu, 1 Jun 2023 23:29:58 +0200 Subject: [PATCH] chore: rewrite machine controller names (#351) --- pkg/controllers/machine/garbagecollection/controller.go | 2 +- pkg/controllers/machine/lifecycle/controller.go | 2 +- pkg/controllers/machine/termination/controller.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controllers/machine/garbagecollection/controller.go b/pkg/controllers/machine/garbagecollection/controller.go index 44c79b8a517e..511aded57aa8 100644 --- a/pkg/controllers/machine/garbagecollection/controller.go +++ b/pkg/controllers/machine/garbagecollection/controller.go @@ -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) { diff --git a/pkg/controllers/machine/lifecycle/controller.go b/pkg/controllers/machine/lifecycle/controller.go index c1b81dc196a1..188a2b18de7b 100644 --- a/pkg/controllers/machine/lifecycle/controller.go +++ b/pkg/controllers/machine/lifecycle/controller.go @@ -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) { diff --git a/pkg/controllers/machine/termination/controller.go b/pkg/controllers/machine/termination/controller.go index b8083724f8db..efd32c279d2c 100644 --- a/pkg/controllers/machine/termination/controller.go +++ b/pkg/controllers/machine/termination/controller.go @@ -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) {