mirror of
https://github.com/paralus/paralus.git
synced 2026-08-20 11:56:18 +00:00
added forcereset in the init script
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
This commit is contained in:
@@ -303,11 +303,22 @@ retry:
|
||||
_, err = us.Create(context.Background(), &userv3.User{
|
||||
Metadata: &commonv3.Metadata{Name: *oae, Partner: *partner, Organization: *org},
|
||||
Spec: &userv3.UserSpec{
|
||||
FirstName: *oafn,
|
||||
LastName: *oaln,
|
||||
Password: utils.GetRandomPassword(8),
|
||||
Groups: []string{admingrp.Metadata.Name, localUsersGrp.Metadata.Name},
|
||||
ProjectNamespaceRoles: []*userv3.ProjectNamespaceRole{{Role: "ADMIN", Group: &admingrp.Metadata.Name}}},
|
||||
|
||||
// FirstName: *oafn,
|
||||
// LastName: *oaln,
|
||||
// Password: utils.GetRandomPassword(8),
|
||||
// Groups: []string{admingrp.Metadata.Name, localUsersGrp.Metadata.Name},
|
||||
// ProjectNamespaceRoles: []*userv3.ProjectNamespaceRole{{Role: "ADMIN", Group: &admingrp.Metadata.Name}}},
|
||||
|
||||
FirstName: *oafn,
|
||||
LastName: *oaln,
|
||||
Password: utils.GetRandomPassword(8),
|
||||
Groups: []string{admingrp.Metadata.Name, localUsersGrp.Metadata.Name},
|
||||
ProjectNamespaceRoles: []*userv3.ProjectNamespaceRole{
|
||||
{Role: "ADMIN", Group: &admingrp.Metadata.Name},
|
||||
},
|
||||
ForceReset: true,
|
||||
},
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user