Fix a db migration bug
This commit fixes a bug in the database migration that creates
a system:pipeline role and role binding for each namespace. The
type of the role binding subject has been correct from "user" to
"Group".
@@ -75,7 +75,7 @@ func MigrateAddPipelineDRoles(ctx context.Context, client *clientv3.Client) erro
binding := &corev2.RoleBinding{
Subjects: []corev2.Subject{
{
- Type: "user",
+ Type: corev2.GroupType,
Name: pipelineRoleName,
},
},
