Skip to content

Commit

Permalink
Merge pull request #2099 from pszczerbik/fix/2097
Browse files Browse the repository at this point in the history
🐛 Add missing update permissions for HostUpdatePolicy CR to BMH controller
  • Loading branch information
metal3-io-bot authored Dec 9, 2024
2 parents 43bc68f + 2f7c42e commit ca8e696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/base/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ rules:
verbs:
- get
- list
- update
- watch
1 change: 1 addition & 0 deletions config/render/capm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2431,6 +2431,7 @@ rules:
verbs:
- get
- list
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion controllers/metal3.io/baremetalhost_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (info *reconcileInfo) publishEvent(reason, message string) {
// +kubebuilder:rbac:groups=metal3.io,resources=dataimages/status,verbs=get;update;patch

// Allow for updating hostupdatepolicies
//+kubebuilder:rbac:groups=metal3.io,resources=hostupdatepolicies,verbs=get;list;watch
//+kubebuilder:rbac:groups=metal3.io,resources=hostupdatepolicies,verbs=get;list;watch;update

// Reconcile handles changes to BareMetalHost resources.
func (r *BareMetalHostReconciler) Reconcile(ctx context.Context, request ctrl.Request) (result ctrl.Result, err error) {
Expand Down

0 comments on commit ca8e696

Please sign in to comment.