8000 Operator Clustering support by andreaTP · Pull Request #10387 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Operator Clustering support - #10387

Merged
pedroigor merged 1 commit into
keycloak:mainfrom
andreaTP:9730-clustering-support
Mar 3, 2022
Merged

pedroigor merged 1 commit into
keycloak:mainfrom
andreaTP:9730-clustering-support

Conversation

@andreaTP
@andreaTP andreaTP commented Feb 22, 2022 •
Copy link
Copy Markdown
Contributor

Resolves #9730
Take over #10249

@vmuzikar I believe that I addressed the review comments in the other PR, this should be ready for the next round of review.

@abstractj
abstractj requested review from abstractj and removed request for jonathanvila February 22, 2022 22:23
@abstractj abstractj left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreaTP could you please rebase?

@andreaTP
andreaTP force-pushed the 9730-clustering-support branch 2 times, most recently from 30b7e48 to 55315c1 Compare February 23, 2022 15:17
@andreaTP
Copy link
Copy Markdown
Contributor Author

@abstractj done

@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreaTP Thanks for overtaking the PR. Added a few comments.

Please also update the commit message with Co-authored-by.

@andreaTP
andreaTP force-pushed the 9730-clustering-support branch from 55315c1 to b1fa7d0 Compare February 23, 2022 17:43
@andreaTP
andreaTP force-pushed the 9730-clustering-support branch 3 times, most recently from f2d20f7 to 9d2da11 Compare March 1, 2022 10:06
@andreaTP
andreaTP commented Mar 1, 2022
Copy link
Copy Markdown
Contributor Author

@vmuzikar ready for next round! 🙂

@andreaTP
andreaTP force-pushed the 9730-clustering-support branch from 9d2da11 to f93e2f0 Compare March 1, 2022 12:46
@abstractj
abstractj requested a review from vmuzikar March 2, 2022 14:22
Comment thread .github/workflows/operator-ci.yml Resolved
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized, using only the constant selectors might not be good. What if there are two KC instances in the same namespace? This applies to the discovery service as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two answers:

  • re: supporting multiple instances in the same namespace

I think that we should have this as a separate task, review all the resources that are created, and have proper testing in place to not break it by accident.

  • re: this specific case

What would you suggest? Should we add a more specific label to the main deployment and propagate it to the Service? Or we can do it as a follow up for supporting multiple instances in one namespace (as this PR is already big enough)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, deal. 👍 This is most probably a bigger task, let's address it separately in #10562.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Co-authored-by: Jonathan Vila <jvilalop@redhat.com>
Co-authored-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
@andreaTP
andreaTP force-pushed the 9730-clustering-support branch from ed0ab05 to 8ca3f24 Compare March 2, 2022 18:31
@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @andreaTP.

@abstractj
Copy link
Copy Markdown
Contributor

@vmuzikar @DGuhr I noticed some failures on [Base testsuite (undertow-map, group3)](https://github.com/keycloak/keycloak/runs/5396681189?check_suite_focus=true#logs), not sure if they are related with the changes here. I triggered the build again just to make sure that tests will pass.

@andreaTP
andreaTP commented Mar 3, 2022
Copy link
Copy Markdown
Contributor Author

@abstractj the changes in this PR are completely self-contained in the operator module.
Any failure other than in Keycloak Operator CI job is not related.

More interestingly 🙂 :
A PR that compromise the clustering functionality of Keycloak can break the Keycloak Operator CI job but changes in the operator module cannot break any of the Keycloak CI jobs (at least so far 😇 ).

@pedroigor
pedroigor merged commit c4b978b into keycloak:main Mar 3, 2022
@abstractj
Copy link
Copy Markdown
Contributor

@andreaTP thanks for clarifying Andrea. Not sure if it's related, but the Operator CI is broken in the main branch after the merge https://github.com/keycloak/keycloak/runs/5413342790?check_suite_focus=true

@andreaTP
andreaTP commented Mar 4, 2022
Copy link
Copy Markdown
Contributor Author

@abstractj opened #10587 , so far, it looks the only failure, but I'll make sure to double check the stability of the Operator CI 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clustering support in operator

5 participants

0