diff --git a/images/controller/pkg/controller/nfs_storage_class_watcher.go b/images/controller/pkg/controller/nfs_storage_class_watcher.go index 85d1df3..88e3d0a 100644 --- a/images/controller/pkg/controller/nfs_storage_class_watcher.go +++ b/images/controller/pkg/controller/nfs_storage_class_watcher.go @@ -53,7 +53,7 @@ const ( NFSStorageClassProvisioner = "nfs.csi.k8s.io" - NFSStorageClassFinalizerName = "nfsstorageclass.storage.deckhouse.io" + NFSStorageClassFinalizerName = "storage.deckhouse.io/nfs-storage-class-controller" AllowVolumeExpansionDefaultValue = true @@ -111,7 +111,7 @@ func RunNFSStorageClassWatcherController( }, nil } - log.Info("[NFSStorageClassReconciler] ends Reconcile for the NFSStorageClass %q", request.Name) + log.Info(fmt.Sprintf("[NFSStorageClassReconciler] ends Reconcile for the NFSStorageClass %q", request.Name)) return reconcile.Result{}, nil }), }) diff --git a/templates/controller/rbac-for-us.yaml b/templates/controller/rbac-for-us.yaml index 02fec54..dd65f31 100644 --- a/templates/controller/rbac-for-us.yaml +++ b/templates/controller/rbac-for-us.yaml @@ -22,6 +22,13 @@ rules: - get - list - watch + - apiGroups: + - "" + resources: + - events + verbs: + - create + - list - apiGroups: - coordination.k8s.io resources: