Skip to content

Commit

Permalink
fix(rbac): add back endpoints to role for controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Vo committed Aug 28, 2022
1 parent 5f24347 commit 4af11c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ rules:
- ""
resources:
- configmaps
- endpoints
- events
- persistentvolumeclaims
- pods
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/cryostat_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ var reportsDeploymentConditions = deploymentConditionTypeMap{
operatorv1beta1.ConditionTypeReportsDeploymentReplicaFailure: appsv1.DeploymentReplicaFailure,
}

// +kubebuilder:rbac:namespace=system,groups="",resources=pods;services;services/finalizers;persistentvolumeclaims;events;configmaps;secrets;serviceaccounts,verbs=*
// +kubebuilder:rbac:namespace=system,groups="",resources=pods;services;services/finalizers;endpoints;persistentvolumeclaims;events;configmaps;secrets;serviceaccounts,verbs=*
// +kubebuilder:rbac:namespace=system,groups="",resources=replicationcontrollers,verbs=get
// +kubebuilder:rbac:namespace=system,groups=rbac.authorization.k8s.io,resources=roles;rolebindings,verbs=create;get;list;update;watch;delete
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=create;get;list;update;watch;delete
Expand Down

0 comments on commit 4af11c4

Please sign in to comment.