8000 Switch to StatefulSet by andreaTP · Pull Request #12757 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Switch to StatefulSet - #12757

Merged
abstractj merged 1 commit into
keycloak:mainfrom
andreaTP:switch-statefulset
Jul 13, 2022
Merged

abstractj merged 1 commit into
keycloak:mainfrom
andreaTP:switch-statefulset

Conversation

@andreaTP
Copy link
Copy Markdown
Contributor

Resolves #12700

I sneaked in a couple of improvements necessary to get the green CI:

  • Realm import Job should not have the app=keycloak label
  • Realm Import Job should not connect to the Infinispan cluster
  • testInitialAdminUser better isolation

@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 the PR, nice work! Added a few minor comments.

Comment on lines 604 to 596
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'm not very comfortable with removing the errors checks here, but since it'll be addressed in #10285 in any case, I'm fine with it.

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.

For clarity, I couldn't find the equivalent Condition in the StatefulSet, I think it doesn't have an equivalent.

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 appreciate this check is needed but should we rather tweak the generic cleanup method rather than tackling it for just this one tests? Other tests (in the future) might need this tweak 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.

I was thinking about ... the tradeoff here is that by making it generic we risk increasing every test execution time due to the extra checks

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.

tentatively keeping this implementation for now, not fussy around changing/improving it, but it can be done in a subsequent iteration. (e.g. I won't have time to test it right now)

@andreaTP
andreaTP force-pushed the switch-statefulset branch from 39ef151 to e6f819e Compare June 28, 2022 10:28
@andreaTP
Copy link
Copy Markdown
Contributor Author

@vmuzikar should be ready for the next round 👍

vmuzikar
vmuzikar previously approved these changes Jun 28, 2022
@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 LGTM, thanks.

@andreaTP
Copy link
Copy Markdown
Contributor Author

Rebase on latest main @vmuzikar do you mind checking?

@vmuzikar
vmuzikar requested a review from abstractj July 13, 2022 14:51
@abstractj
abstractj merged commit f2d71cd into keycloak:main Jul 13, 2022
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.

Switch to StatefulSet

3 participants

0