fix: preventing statefulset infinite reconciliation loop (#38849)

closes: #38846

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
Steven Hawkins 2025-04-11 12:33:30 -04:00 committed by GitHub
parent 72fb7ce905
commit 0afe3aa14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -518,7 +518,7 @@ public class KeycloakDeploymentDependentResource extends CRUDKubernetesDependent
}
envVars.add(new EnvVarBuilder().withName(POD_IP).withNewValueFrom().withNewFieldRef()
.withFieldPath("status.podIP").endFieldRef().endValueFrom().build());
.withFieldPath("status.podIP").withApiVersion("v1").endFieldRef().endValueFrom().build());
return envVars;
}