Skip to content

Commit 11e4548

Browse files
authored
fix: Operator - resolve infinite reconciler loop in authz controller (feast-dev#5056)
resolve infinite reconciler loop in authz controller Signed-off-by: Tommy Hughes <[email protected]>
1 parent 6c92447 commit 11e4548

File tree

1 file changed

+2
-2
lines changed
  • infra/feast-operator/internal/controller/authz

1 file changed

+2
-2
lines changed

infra/feast-operator/internal/controller/authz/authz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ func (authz *FeastAuthorization) initFeastRoleBinding() *rbacv1.RoleBinding {
134134

135135
func (authz *FeastAuthorization) setFeastRoleBinding(roleBinding *rbacv1.RoleBinding) error {
136136
roleBinding.Labels = authz.getLabels()
137-
roleBinding.Subjects = append(roleBinding.Subjects, rbacv1.Subject{
137+
roleBinding.Subjects = []rbacv1.Subject{{
138138
Kind: rbacv1.ServiceAccountKind,
139139
Name: services.GetFeastName(authz.Handler.FeatureStore),
140140
Namespace: authz.Handler.FeatureStore.Namespace,
141-
})
141+
}}
142142
roleBinding.RoleRef = rbacv1.RoleRef{
143143
APIGroup: rbacv1.GroupName,
144144
Kind: "Role",

0 commit comments

Comments
 (0)