Skip to content

Commit

Permalink
Remove not necessary roles
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Oct 5, 2023
1 parent 3d7551e commit f547e32
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
12 changes: 0 additions & 12 deletions config/operator/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@ metadata:
name: operator
namespace: keda
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand Down
15 changes: 0 additions & 15 deletions config/scaler/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,3 @@ rules:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: scaler
namespace: keda
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
1 change: 0 additions & 1 deletion operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func init() {
}

// +kubebuilder:rbac:groups="",namespace=keda,resources=events,verbs=create;patch
// +kubebuilder:rbac:groups="",namespace=keda,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=coordination.k8s.io,namespace=keda,resources=leases,verbs=get;list;watch;create;update;patch;delete

func main() {
Expand Down
1 change: 0 additions & 1 deletion scaler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"github.com/kedacore/http-add-on/pkg/util"
)

// +kubebuilder:rbac:groups="",namespace=keda,resources=configmaps,verbs=get;list;watch
// +kubebuilder:rbac:groups="",resources=endpoints,verbs=get;list;watch
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch
// +kubebuilder:rbac:groups=http.keda.sh,resources=httpscaledobjects,verbs=get;list;watch
Expand Down

0 comments on commit f547e32

Please sign in to comment.