Skip to content

Commit c80b768

Browse files
authored
Fix: Allow to manage HTTPScaledObjects for KEDA deployer (#15)
1 parent b4d0f2b commit c80b768

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

config/rbac/role.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ rules:
6868
- get
6969
- patch
7070
- update
71+
- apiGroups:
72+
- http.keda.sh
73+
resources:
74+
- httpscaledobjects
75+
verbs:
76+
- create
77+
- delete
78+
- get
79+
- list
80+
- patch
81+
- update
82+
- watch
7183
- apiGroups:
7284
- rbac.authorization.k8s.io
7385
resources:

internal/controller/function_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ type FunctionReconciler struct {
6666
// +kubebuilder:rbac:groups=tekton.dev,resources=pipelines;pipelineruns,verbs=get;list;watch;create;update;patch;delete
6767
// +kubebuilder:rbac:groups=tekton.dev,resources=taskruns,verbs=get;list;watch
6868
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete
69+
// +kubebuilder:rbac:groups=http.keda.sh,resources=httpscaledobjects,verbs=get;list;watch;create;update;patch;delete
6970

7071
// Reconcile a Function with status update
7172
func (r *FunctionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {

0 commit comments

Comments
 (0)