Skip to content

Commit

Permalink
fix: Operator - resolve infinite reconciler loop in authz controller (f…
Browse files Browse the repository at this point in the history
…east-dev#5056)

resolve infinite reconciler loop in authz controller

Signed-off-by: Tommy Hughes <[email protected]>
  • Loading branch information
tchughesiv authored Feb 14, 2025
1 parent 6c92447 commit 11e4548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/feast-operator/internal/controller/authz/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ func (authz *FeastAuthorization) initFeastRoleBinding() *rbacv1.RoleBinding {

func (authz *FeastAuthorization) setFeastRoleBinding(roleBinding *rbacv1.RoleBinding) error {
roleBinding.Labels = authz.getLabels()
roleBinding.Subjects = append(roleBinding.Subjects, rbacv1.Subject{
roleBinding.Subjects = []rbacv1.Subject{{
Kind: rbacv1.ServiceAccountKind,
Name: services.GetFeastName(authz.Handler.FeatureStore),
Namespace: authz.Handler.FeatureStore.Namespace,
})
}}
roleBinding.RoleRef = rbacv1.RoleRef{
APIGroup: rbacv1.GroupName,
Kind: "Role",
Expand Down

0 comments on commit 11e4548

Please sign in to comment.