You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roadmap 2025/02 Add the associated RemoteUserBinding in the status of the RemoteUser.
As the developer of my team, I want to see the RemoteUserBindings that are associated to my RemoteUser.
2. Set the RemoteUser status from the RemoteUserBinding controller
We already loop over each associated RemoteUsers in the remoteuserbinding-controller. Inside this loop, we already Get() the RemoteUser. For each of these remoteusers, loop over the status.remoteUserBindings field. If the current remoteuserbinding is already present, skip the loop. Otherwise, add it to the list.
Roadmap 2025/02 Add the associated RemoteUserBinding in the status of the RemoteUser.
As the developer of my team, I want to see the
RemoteUserBindings
that are associated to myRemoteUser
.What to do
1. Add the
status.remoteUserBindings
fieldAdd this field her in order to use it later:
syngit/api/v1beta2/remoteuser_types.go
Lines 35 to 55 in 8442bb1
The field is a list of
RemoteUserBindings
.2. Set the
RemoteUser
status from theRemoteUserBinding
controllerWe already loop over each associated
RemoteUsers
in the remoteuserbinding-controller. Inside this loop, we alreadyGet()
theRemoteUser
. For each of these remoteusers, loop over thestatus.remoteUserBindings
field. If the current remoteuserbinding is already present, skip the loop. Otherwise, add it to the list.syngit/internal/controller/remoteuserbinding_controller.go
Lines 83 to 89 in 8442bb1
3. Unset the
RemoteUser
status when the theRemoteUserBinding
is deletedSame as the previous step, but remove the current remoteuserbinding if already exists. The loop does not exist yet, you need to create it.
syngit/internal/controller/remoteuserbinding_controller.go
Lines 53 to 56 in 8442bb1
Additional context
If you have any questions, please tag @damsien.
The text was updated successfully, but these errors were encountered: