From e254c7c1aa3acadb6f23d31d5bec907dc7fba981 Mon Sep 17 00:00:00 2001 From: Jonathan Crowther Date: Wed, 30 Oct 2024 10:29:57 -0400 Subject: [PATCH] add backing namespace logic --- extensions/users/users.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/users/users.go b/extensions/users/users.go index ebd4e8d0..6dc923f3 100644 --- a/extensions/users/users.go +++ b/extensions/users/users.go @@ -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)