diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 16bd438..5346d21 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -12,6 +12,7 @@ rules: verbs: - get - list + - watch - apiGroups: - "" resources: diff --git a/controllers/swiftstorage_controller.go b/controllers/swiftstorage_controller.go index ffaebf3..324d72f 100644 --- a/controllers/swiftstorage_controller.go +++ b/controllers/swiftstorage_controller.go @@ -83,7 +83,7 @@ type Netconfig struct { //+kubebuilder:rbac:groups=memcached.openstack.org,resources=memcacheds,verbs=get;list;watch; //+kubebuilder:rbac:groups=network.openstack.org,resources=dnsdata,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list -//+kubebuilder:rbac:groups="",resources=pods,verbs=get;list +//+kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch; // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state.