Skip to content

Commit

Permalink
Fix RBAC creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tstenner committed Nov 21, 2023
1 parent 2a5c8e0 commit 45f9337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- update
- apiGroups:
- db.movetokube.com
resources:
Expand Down Expand Up @@ -56,11 +64,3 @@ rules:
- get
- patch
- update
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- update
1 change: 1 addition & 0 deletions internal/controller/postgres_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (r *PostgresReconciler) GetPrefixedDbName(dbname string) string {
//+kubebuilder:rbac:groups=db.movetokube.com,resources=postgres,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=db.movetokube.com,resources=postgres/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=db.movetokube.com,resources=postgres/finalizers,verbs=update
//+kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=create;get;update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit 45f9337

Please sign in to comment.