Skip to content

Commit

Permalink
Fix controller names
Browse files Browse the repository at this point in the history
  • Loading branch information
guikcd committed May 26, 2023
1 parent befb8e4 commit b4f5e2b
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 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
2 changes: 1 addition & 1 deletion pkg/controllers/metrics/pod/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func NewController(kubeClient client.Client) controller.Controller {
}

func (c *Controller) Name() string {
return "pod_metrics"
return "metrics.pod"
}

// Reconcile executes a termination control loop for the resource
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/metrics/provisioner/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewController(kubeClient client.Client) corecontroller.Controller {
}

func (c *Controller) Name() string {
return "provisioner_metrics"
return "metrics.provisioner"
}

// Reconcile executes a termination control loop for the resource
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/metrics/state/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewController(cluster *state.Cluster) *Controller {
}

func (c *Controller) Name() string {
return "metric_scraper"
return "metrics.state"
}

func (c *Controller) Builder(_ context.Context, mgr manager.Manager) controller.Builder {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewController(kubeClient client.Client, provisioner *Provisioner, recorder
}

func (c *Controller) Name() string {
return "provisioner_trigger"
return "provisioning.trigger"
}

// Reconcile the resource
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func NewProvisioner(kubeClient client.Client, coreV1Client corev1.CoreV1Interfac
}

func (p *Provisioner) Name() string {
return "provisioner"
return "provisioning"
}

func (p *Provisioner) Trigger() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/state/informer/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewDaemonSetController(kubeClient client.Client, cluster *state.Cluster) co
}

func (c *Controller) Name() string {
return "daemonset"
return "state.daemonset"
}

// Reconcile the resource
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/state/informer/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewMachineController(kubeClient client.Client, cluster *state.Cluster) core
}

func (c *MachineController) Name() string {
return "machine-state"
return "state.machine"
}

func (c *MachineController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/state/informer/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewNodeController(kubeClient client.Client, cluster *state.Cluster) corecon
}

func (c *NodeController) Name() string {
return "node_state"
return "state.node"
}

func (c *NodeController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/state/informer/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewPodController(kubeClient client.Client, cluster *state.Cluster) corecont
}

func (c *PodController) Name() string {
return "pod_state"
return "state.pod"
}

func (c *PodController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/state/informer/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewProvisionerController(kubeClient client.Client, cluster *state.Cluster)
}

func (c *ProvisionerController) Name() string {
return "provisioner_state"
return "state.provisioner"
}

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

0 comments on commit b4f5e2b

Please sign in to comment.