Skip to content

Avoid calls to Control Plane when the secondary resource is in cache #21109

Closed

Description

@mabartos

Description

We can avoid HTTP calls to the Control Plane kube-apiserver when the secondary resource is already in a cache.

Also mentioned on this line, where the attached issue is already resolved:
https://github.com/keycloak/keycloak/blob/2beedcc4c7222ac8498e582ff3175a9e6f60f416/operator/src/main/java/org/keycloak/operator/controllers/KeycloakController.java#L106-L108C1

Activity

  1. added
    area/operator
    on Jun 20, 2023
  2. shawkins commented on Jun 20, 2023

    @shawkins
    Contributor

    I had worked through this a little more broadly with 39dda13 but was getting ahead of myself since it was built on top of changes from #20933 which haven't been included yet.

    The only real problems to usage of the cache are making decisions like the one in #20906 to delete the stateful set - if the statefulset is coming from the cache we'll want to do one final fetch before making the decision to delete the old one, or change the logic to be reactive to a 422 error. Otherwise until the cache is updated, which in some corner cases may take a while, we'll keep re-deleting the statefulset if we're still getting other events.

  3. added a commit that references this issue on Jun 22, 2023
    13a463f
  4. moved this from Backlog 🗃 to Done ✅ in Keycloak.X: Operatoron Jun 22, 2023
  5. added this to the 22.0.0 milestone on Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/operatorkind/taskteam/cloud-native

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions