Skip to content

Commit 4b496fb

Browse files
vinceprik8s-ci-robot
authored andcommitted
Rename controller name with - instead of _ (#1149)
Signed-off-by: Vince Prignano <[email protected]>
1 parent 5ffab93 commit 4b496fb

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

config/rbac/role.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ metadata:
66
creationTimestamp: null
77
name: manager-role
88
rules:
9+
- apiGroups:
10+
- ""
11+
resources:
12+
- events
13+
verbs:
14+
- create
15+
- get
16+
- list
17+
- patch
18+
- watch
19+
- apiGroups:
20+
- ""
21+
resources:
22+
- secrets
23+
verbs:
24+
- get
25+
- list
26+
- watch
927
- apiGroups:
1028
- ""
1129
resources:
@@ -50,21 +68,3 @@ rules:
5068
- patch
5169
- update
5270
- watch
53-
- apiGroups:
54-
- ""
55-
resources:
56-
- events
57-
verbs:
58-
- create
59-
- get
60-
- list
61-
- patch
62-
- watch
63-
- apiGroups:
64-
- ""
65-
resources:
66-
- secrets
67-
verbs:
68-
- get
69-
- list
70-
- watch

pkg/controller/cluster/cluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func newReconciler(mgr manager.Manager, actuator Actuator) reconcile.Reconciler
4949
// add adds a new Controller to mgr with r as the reconcile.Reconciler
5050
func add(mgr manager.Manager, r reconcile.Reconciler) error {
5151
// Create a new controller
52-
c, err := controller.New("cluster_controller", mgr, controller.Options{Reconciler: r})
52+
c, err := controller.New("cluster-controller", mgr, controller.Options{Reconciler: r})
5353
if err != nil {
5454
return err
5555
}

pkg/controller/machine/machine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
"sigs.k8s.io/controller-runtime/pkg/source"
4343
)
4444

45-
const controllerName = "machine_controller"
45+
const controllerName = "machine-controller"
4646

4747
// Add creates a new Machine Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller
4848
// and Start it when the Manager is Started.

pkg/controller/machinedeployment/machinedeployment_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
)
4343

4444
// controllerName is the name of this controller
45-
const controllerName = "machinedeployment_controller"
45+
const controllerName = "machinedeployment-controller"
4646

4747
var (
4848
// controllerKind contains the schema.GroupVersionKind for this controller type.

pkg/controller/machineset/machineset_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import (
4646
)
4747

4848
// controllerName is the name of this controller
49-
const controllerName = "machineset_controller"
49+
const controllerName = "machineset-controller"
5050

5151
var (
5252
// controllerKind contains the schema.GroupVersionKind for this controller type.

0 commit comments

Comments
 (0)