From 4441ee44440587c3d2888f66763f3147035875db Mon Sep 17 00:00:00 2001 From: hustrust Date: Tue, 2 Sep 2025 21:20:17 +0800 Subject: [PATCH] chore: fix some typos in comment (#42279) Signed-off-by: hustrust --- .../controllers/KeycloakDeploymentDependentResource.java | 2 +- .../operator/crds/v2alpha1/deployment/KeycloakSpec.java | 2 +- .../java/org/keycloak/operator/testsuite/utils/CRAssert.java | 2 +- .../org/keycloak/broker/saml/SAMLIdentityProviderConfig.java | 2 +- .../java/org/keycloak/services/managers/CodeGenerateUtil.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeploymentDependentResource.java b/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeploymentDependentResource.java index 8b2498f7ee3..0b78d7b23b2 100644 --- a/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeploymentDependentResource.java +++ b/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeploymentDependentResource.java @@ -353,7 +353,7 @@ public class KeycloakDeploymentDependentResource extends CRUDKubernetesDependent && (customImage.isPresent() || operatorConfig.keycloak().startOptimized())) { containerBuilder.addToArgs(OPTIMIZED_ARG); } - // Set bind address as this is required for JGroups to form a cluster in IPv6 envionments + // Set bind address as this is required for JGroups to form a cluster in IPv6 environments containerBuilder.addToArgs(0, "-Djgroups.bind.address=$(%s)".formatted(POD_IP)); boolean tls = isTlsConfigured(keycloakCR); diff --git a/operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/KeycloakSpec.java b/operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/KeycloakSpec.java index 05813cfbcb7..57bf7513894 100644 --- a/operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/KeycloakSpec.java +++ b/operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/KeycloakSpec.java @@ -125,7 +125,7 @@ public class KeycloakSpec { private SchedulingSpec schedulingSpec; @JsonProperty("bootstrapAdmin") - @JsonPropertyDescription("In this section you can configure Keycloak's bootstrap admin - will be used only for inital cluster creation.") + @JsonPropertyDescription("In this section you can configure Keycloak's bootstrap admin - will be used only for initial cluster creation.") private BootstrapAdminSpec bootstrapAdminSpec; @JsonProperty("networkPolicy") diff --git a/operator/src/test/java/org/keycloak/operator/testsuite/utils/CRAssert.java b/operator/src/test/java/org/keycloak/operator/testsuite/utils/CRAssert.java index 9f08017c584..b50e76e3762 100644 --- a/operator/src/test/java/org/keycloak/operator/testsuite/utils/CRAssert.java +++ b/operator/src/test/java/org/keycloak/operator/testsuite/utils/CRAssert.java @@ -297,7 +297,7 @@ public final class CRAssert { } public static CompletableFuture eventuallyRollingUpdateStatus(KubernetesClient client, Keycloak keycloak, String reason) { - // test the statefulset, rather that the keycloak status as the events with the local api server may happen too quickly and the keycloak status may not get upddated + // test the statefulset, rather that the keycloak status as the events with the local api server may happen too quickly and the keycloak status may not get updated var cf1 = client.apps().statefulSets().withName(keycloak.getMetadata().getName()).informOnCondition(ss -> { return !ss.isEmpty() && KeycloakController.isRolling(ss.get(0)); }); diff --git a/services/src/main/java/org/keycloak/broker/saml/SAMLIdentityProviderConfig.java b/services/src/main/java/org/keycloak/broker/saml/SAMLIdentityProviderConfig.java index 6cf06863662..a80467b6537 100755 --- a/services/src/main/java/org/keycloak/broker/saml/SAMLIdentityProviderConfig.java +++ b/services/src/main/java/org/keycloak/broker/saml/SAMLIdentityProviderConfig.java @@ -251,7 +251,7 @@ public class SAMLIdentityProviderConfig extends IdentityProviderModel { public boolean isPostBindingLogout() { String postBindingLogout = getConfig().get(POST_BINDING_LOGOUT); if (postBindingLogout == null) { - // To maintain unchanged behavior when adding this field, we set the inital value to equal that + // To maintain unchanged behavior when adding this field, we set the initial value to equal that // of the binding for the response: return isPostBindingResponse(); } diff --git a/services/src/main/java/org/keycloak/services/managers/CodeGenerateUtil.java b/services/src/main/java/org/keycloak/services/managers/CodeGenerateUtil.java index ea9e3320b14..851e21dd387 100644 --- a/services/src/main/java/org/keycloak/services/managers/CodeGenerateUtil.java +++ b/services/src/main/java/org/keycloak/services/managers/CodeGenerateUtil.java @@ -38,7 +38,7 @@ import java.util.Map; import java.util.function.Supplier; /** - * TODO: Remove this and probably also ClientSessionParser. It's uneccessary genericity and abstraction, which is not needed anymore when clientSessionModel was fully removed. + * TODO: Remove this and probably also ClientSessionParser. It's unnecessary genericity and abstraction, which is not needed anymore when clientSessionModel was fully removed. * * @author Marek Posolda */