Closed dimitraz closed 6 years ago
Tested it locally and it does work, although i am seeing issues that i hit as well when doing https://github.com/aerogear/keycloak-operator/pull/23. In particular the use of "omitempty" on all fields is causing some issues.
Also looks like you need to do something similar to what i did here in order to update the spec object with the server side generated user id https://github.com/aerogear/keycloak-operator/pull/23/commits/9093a7838b6eeba277460c02f8382f024648ecaf
@mikenairn Updated, can you take another look? I've kept the update function because I think it works nicely and it performs the merge of kc and spec (including booleans) as expected
Description
reconcileRealms()
function, as declared in thekeycloak.json
keycloak.json
specUsers in the realm that are not declared in the custom resource will be deletedVerification Verify that the above scenarios behave as expected
To do
keycloak.go
as a lot of duplicate code can be extracted. https://github.com/aerogear/keycloak-operator/pull/22If a user or client field is updated in the keycloak console and that property has not been defined in the keycloak spec it will maintain it. (Expected behaviour would be to delete those fields?)