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
What did you do to encounter the bug?
Applying a project with teams managed outside of k8s and empty project.spec.teams unassigns all teams from project.
What did you expect?
I would expect the operator to only manage the teams it has knowledge of, perhaps via status.
What happened instead?
All teams managed outside k8s get unassigned from project.
Operator Information
2.8.0
Additional context
I will give more context on the underlying issue: User invitation + invitation acceptance detection + team assignment cannot be managed via the operator, so we're looking at potentially a different way of managing that flow, which leads to trying to manage atlas team outside the operator.
The project controller tries to reconcile all team assignments vs the project spec when in my opinion it should try to reconcile against what the project object knowledge of, perhaps via status. This is where it detects what to delete:
What did you do to encounter the bug?
Applying a project with teams managed outside of k8s and empty project.spec.teams unassigns all teams from project.
What did you expect?
I would expect the operator to only manage the teams it has knowledge of, perhaps via status.
What happened instead?
All teams managed outside k8s get unassigned from project.
Operator Information
Additional context
I will give more context on the underlying issue: User invitation + invitation acceptance detection + team assignment cannot be managed via the operator, so we're looking at potentially a different way of managing that flow, which leads to trying to manage atlas team outside the operator.
The project controller tries to reconcile all team assignments vs the project spec when in my opinion it should try to reconcile against what the project object knowledge of, perhaps via status. This is where it detects what to delete:
mongodb-atlas-kubernetes/internal/controller/atlasproject/teams.go
Lines 91 to 95 in 8b30aee
The text was updated successfully, but these errors were encountered: