Skip to content

Commit 28b7ac6

Browse files
committed
more rbac
1 parent 5d753db commit 28b7ac6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/rbac/role.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ rules:
99
resources:
1010
- secrets
1111
verbs:
12+
- create
1213
- get
1314
- list
1415
- patch
16+
- update
1517
- watch
1618
- apiGroups:
1719
- boot.ironcore.dev

internal/controller/httpbootconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type HTTPBootConfigReconciler struct {
2929
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=httpbootconfigs,verbs=get;list;watch;create;update;patch;delete
3030
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=httpbootconfigs/status,verbs=get;update;patch
3131
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=httpbootconfigs/finalizers,verbs=update
32-
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;patch
32+
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch
3333

3434
func (r *HTTPBootConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
3535
log := log.FromContext(ctx)

internal/controller/ipxebootconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type IPXEBootConfigReconciler struct {
2929
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=ipxebootconfigs,verbs=get;list;watch;create;update;patch;delete
3030
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=ipxebootconfigs/status,verbs=get;update;patch
3131
//+kubebuilder:rbac:groups=boot.ironcore.dev,resources=ipxebootconfigs/finalizers,verbs=update
32-
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;patch
32+
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch
3333

3434
func (r *IPXEBootConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
3535
log := log.FromContext(ctx)

0 commit comments

Comments
 (0)