Skip to content

Commit

Permalink
add backing namespace logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCrowther committed Oct 30, 2024
1 parent 0c3d8d0 commit e254c7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func AddProjectMember(rancherClient *rancher.Client, project *management.Project

projectID := strings.Split(project.ID, ":")
namespace := string(projectID[0])
if project.BackingNamespace != "" {
namespace = project.BackingNamespace
}
name := string(projectID[1])

adminClient, err := rancher.NewClient(rancherClient.RancherConfig.AdminToken, rancherClient.Session)
Expand Down

0 comments on commit e254c7c

Please sign in to comment.