Skip to content

Commit

Permalink
Merge pull request #1000 from bdunne/automation_role_pods_logs
Browse files Browse the repository at this point in the history
Give the operator permission to give permission to pod/logs get
  • Loading branch information
Fryguy authored Oct 10, 2023
2 parents d80208a + 4a7896c commit a281143
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manageiq-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods/logs
verbs:
- get
- apiGroups:
- apps
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type ManageIQReconciler struct {
}

//+kubebuilder:rbac:namespace=changeme,groups="",resources=configmaps;events;persistentvolumeclaims;pods;pods/finalizers;secrets;serviceaccounts;services;services/finalizers,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:namespace=changeme,groups="",resources=pods/logs,verbs=get
//+kubebuilder:rbac:namespace=changeme,groups=apps,resources=deployments;deployments/scale;replicasets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:namespace=changeme,groups=apps,resources=deployments/finalizers,resourceNames=manageiq-operator,verbs=update
//+kubebuilder:rbac:namespace=changeme,groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update;delete
Expand Down

0 comments on commit a281143

Please sign in to comment.