Repository navigation
#9730 Clustering support - #10249
Closed
jonathanvila wants to merge 11 commits into
Closed
#9730 Clustering support#10249jonathanvila wants to merge 11 commits into
jonathanvila wants to merge 11 commits into
Conversation
added 10 commits
February 16, 2022 10:41
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
vmuzikar
requested changes
Feb 21, 2022
Contributor
There was a problem hiding this comment.
Thanks @jonathanvila, nice work.
Comment on lines
+83
to
+84
| new KeycloakService(client, kc).createOrUpdateReconciled(); | ||
| new KeycloakDiscoveryService(client, kc).createOrUpdateReconciled(); |
Contributor
There was a problem hiding this comment.
We should probably reflect this in the CR's status. I'd probably call addNotReadyMessage if a service is not found, similarly to:
| import io.quarkus.test.junit.QuarkusTest; | ||
| import org.awaitility.Awaitility; | ||
| import org.junit.jupiter.api.AfterEach; | ||
| import org.junit.jupiter.api.Disabled; |
Contributor
There was a problem hiding this comment.
I believe this is an unnecessary change.
| .inNamespace(namespace) | ||
| .list().getItems().get(0); | ||
|
|
||
| // when scale it to 10 |
Contributor
There was a problem hiding this comment.
We should also test that KC CR is has not ready status when scaling up.
Comment on lines
+58
to
+74
| Service nodeportTestService = new ServiceBuilder(service).build(); | ||
| nodeportTestService.getMetadata().setName(keycloak.getMetadata().getName()+ "-servicenodeport"); | ||
| nodeportTestService.getSpec().getPorts().get(0).setNodePort(31999); | ||
| nodeportTestService.getSpec().setType("NodePort"); | ||
| nodeportTestService.getSpec().setClusterIP(null); | ||
| nodeportTestService.getSpec().setClusterIPs(null); | ||
| k8sclient.services().inNamespace(namespace).createOrReplace(nodeportTestService); | ||
|
|
||
| // check we can reach Keycloak | ||
| URI uri = new URI(k8sclient.getConfiguration() | ||
| .getMasterUrl() | ||
| .replace("8443", "31999") | ||
| .replace("https", "http") + "realms/master") | ||
| ; | ||
| Awaitility.await() | ||
| .atMost(10, TimeUnit.SECONDS) | ||
| .until(() -> given().when().relaxedHTTPSValidation().get(uri).then().extract().statusCode() == 200); |
Contributor
8000
Closes #9730 Signed-off-by: Jonathan Vila <jvilalop@redhat.com>
Contributor
|
Replaced by #10387 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #9730