Skip to content

Commit 476f01a

Browse files
authored
update controller code to account for V in GVK for watch resources (#169)
Signed-off-by: Adam D. Cornett <[email protected]>
1 parent 69eec07 commit 476f01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ansible/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func Add(mgr manager.Manager, options Options) *controller.Controller {
9292
}
9393

9494
//Create new controller runtime controller and set the controller to watch GVK.
95-
c, err := controller.New(fmt.Sprintf("%v-controller", strings.ToLower(options.GVK.Kind)), mgr,
95+
c, err := controller.New(fmt.Sprintf("%v-%v-controller", strings.ToLower(options.GVK.Kind), strings.ToLower(options.GVK.Version)), mgr,
9696
controller.Options{
9797
Reconciler: aor,
9898
MaxConcurrentReconciles: options.MaxConcurrentReconciles,

0 commit comments

Comments
 (0)