Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/actions/install-chrome/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
version:
description: The version of Chrome and Chromedriver to install. By default none is installed.
required: false
default: default # E.g. 135.0.7049.84 (fixed version), default (chrome provided by GHA box)
default: "135.0.7049.114" # E.g. 135.0.7049.84 (fixed version), default (chrome provided by GHA box)

runs:
using: composite
Expand All @@ -29,3 +29,11 @@ runs:
unzip -j /tmp/chromedriver.zip -d /tmp
sudo mv -f /tmp/chromedriver $CHROMEWEBDRIVER/chromedriver
sudo chmod +x $CHROMEWEBDRIVER/chromedriver

- id: show-version
name: Show Version
if: inputs.version == 'default'
shell: bash
run: |
google-chrome --version
$CHROMEWEBDRIVER/chromedriver --version
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public final class JGroupsConfigurator {
private static final String TLS_PROTOCOL_VERSION = "TLSv1.3";
private static final String TLS_PROTOCOL = "TLS";

private static final String KUBERNETES_STACK = "kubernetes";
private static final String KUBERNETES_PATCHED_STACK = "kubernetes-patched";

private JGroupsConfigurator() {
}

Expand All @@ -88,6 +91,25 @@ public static void configureJGroups(Config.Scope config, ConfigurationBuilderHol
configureDiscovery(holder, session);
configureTls(holder, session);
warnDeprecatedStack(holder);
patchKubernetesStack(holder);
}

/**
* Patch for <a href="https://github.com/keycloak/keycloak/issues/39023">GHI#39023</a> and <a
* href="https://github.com/keycloak/keycloak/issues/39454">GHI#39454</a>
*/
private static void patchKubernetesStack(ConfigurationBuilderHolder holder) {
var stackXmlAttribute = transportStackOf(holder);
if (!Objects.equals(KUBERNETES_STACK, stackXmlAttribute.get())) {
// not the kubernetes stack
return;
}
logger.info("[PATCH] Patching kubernetes stack.");
// patch port range
var attributes = Map.of("port_range", "0");
var patch = List.of(new ProtocolConfiguration("TCP", attributes));
holder.addJGroupsStack(new EmbeddedJGroupsChannelConfigurator(KUBERNETES_PATCHED_STACK, patch, null), KUBERNETES_STACK);
transportOf(holder).stack(KUBERNETES_PATCHED_STACK);
}

/**
Expand Down
Loading