diff --git a/infra/feast-operator/internal/controller/authz/authz.go b/infra/feast-operator/internal/controller/authz/authz.go index 8596d993899..122e9f69457 100644 --- a/infra/feast-operator/internal/controller/authz/authz.go +++ b/infra/feast-operator/internal/controller/authz/authz.go @@ -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",