Add reconciliation of authorization services in KeycloakClients #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GH Issue
Closes #11
Additional Information
In KeycloakClients, you can specify settings for authorization services. In its current state, the operator is not able to handle them correctly. keycloak/keycloak#16998 also addresses an issue with the client REST API because if the exported client.json contains authorization settings with policies referring to roles, the import fails because Keycloak cannot find the relevant roles at import time.
This MR adds a reconciliation logic explicitly for authorization settings and tries to maintain its state, regardless of the former mentioned issue.
Verification Steps
KeycloakClient
CR containingauthorizationSettings
. This can be easily obtained by configuring authorization in Keycloak, then exporting the realm either via Admin Console or CLI.Checklist:
Documentation changes if necessary