task: removing 10 second poll for optional secrets / configmaps (#31729)

closes: #31680

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
Steven Hawkins 2024-08-08 08:21:04 -04:00 committed by GitHub
parent 7ce6f12fe3
commit a7c71dc0bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,7 @@ public class KeycloakController implements Reconciler<Keycloak>, EventSourceInit
var statefulSet = context.getSecondaryResource(StatefulSet.class);
if (!status.isReady() || statefulSet.filter(watchedResources::hasMissing).isPresent()) {
if (!status.isReady()) {
updateControl.rescheduleAfter(10, TimeUnit.SECONDS);
} else if (statefulSet.filter(watchedResources::isWatching).isPresent()) {
updateControl.rescheduleAfter(config.keycloak().pollIntervalSeconds(), TimeUnit.SECONDS);