Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE]: Abilty to bind a RemoteUser from another namespace #20

Open
damsien opened this issue Oct 16, 2024 · 0 comments
Open

[FE]: Abilty to bind a RemoteUser from another namespace #20

damsien opened this issue Oct 16, 2024 · 0 comments
Labels
feature A feature that is listed in the roadmap

Comments

@damsien
Copy link
Collaborator

damsien commented Oct 16, 2024

Roadmap 2025/02 Abilty to bind a RemoteUser from another namespace
As an application DevOps, I want to create only one RemoteUser and be able to use it in the RemoteSyncer of other namespaces I have access to.

What to do

First, get a RemoteUserBinding list in all of the namespaces the user has access to. Currently, we get a list of all the RemoteUserBindings that are in the same namespace the RemoteSyncer. This is the hardest part.

err = wrc.k8sClient.List(ctx, remoteUserBindings, client.InNamespace(wrc.remoteSyncer.Namespace))

Above the line #L161, you need to list the namespace the user has access to. Then create a list of RemoteUserBinding which are in these namespaces. It can be done in one time or in a loop and then concatenate the lists.

Then, use the namespace of the RemoteUser instead of the RemoteSyncer one: replace namespace by ref.Namespace.

namespacedName := &types.NamespacedName{
Namespace: namespace,
Name: ref.Name,
}

Additional context

If you have any questions, please tag @damsien.

@damsien damsien added enhancement Request for enhancement feature A feature that is listed in the roadmap labels Oct 16, 2024
@damsien damsien removed the enhancement Request for enhancement label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature that is listed in the roadmap
Projects
None yet
Development

No branches or pull requests

1 participant