Skip to content

Commit 7476f83

Browse files
M00nF1shTimothy-Dougherty
authored andcommitted
add rbac to read ingressclassparams (kubernetes-sigs#1977)
1 parent 1ee16c3 commit 7476f83

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ rules:
7777
verbs:
7878
- patch
7979
- update
80+
- apiGroups:
81+
- elbv2.k8s.aws
82+
resources:
83+
- ingressclassparams
84+
verbs:
85+
- get
86+
- list
87+
- watch
8088
- apiGroups:
8189
- elbv2.k8s.aws
8290
resources:

controllers/ingress/group_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ type groupReconciler struct {
8989
maxConcurrentReconciles int
9090
}
9191

92+
// +kubebuilder:rbac:groups=elbv2.k8s.aws,resources=ingressclassparams,verbs=get;list;watch
9293
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;update;patch
9394
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses/status,verbs=update;patch
9495
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingressclasses,verbs=get;list;watch

0 commit comments

Comments
 (0)