Enable publishNotReadyAddresses for discovery service (#21511)
Closes #21493
This commit is contained in:
parent
a25df4afea
commit
165c36f9ff
2 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,7 @@ public class KeycloakDiscoveryService extends OperatorManagedResource implements
|
|||
.endPort()
|
||||
.withSelector(getInstanceLabels())
|
||||
.withClusterIP("None")
|
||||
.withPublishNotReadyAddresses(Boolean.TRUE)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -100,6 +100,8 @@ public class KeycloakServicesTest extends BaseOperatorTest {
|
|||
Log.info("Trying to modify the service");
|
||||
|
||||
var currentDiscoveryService = discoveryServiceSelector.get();
|
||||
// check publishNotReadyAddresses is set
|
||||
assertThat(currentDiscoveryService.getSpec().getPublishNotReadyAddresses()).isTrue();
|
||||
var labels = Map.of("address", "EvergreenTerrace742");
|
||||
// ignoring current IP/s
|
||||
currentDiscoveryService.getSpec().setClusterIP(null);
|
||||
|
|
Loading…
Reference in a new issue