From 0f7d284d8368c493f58d796725ebeb1d5f31038a Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Mon, 14 Oct 2024 10:48:05 +0200 Subject: [PATCH] feat: update controller retry configuration --- ...-data-orchestrator-operator-extensions.adoc | 18 +++++++++--------- .../orchestrator/operator/DataController.java | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/modules/onecx-data-orchestrator-operator/pages/onecx-data-orchestrator-operator-extensions.adoc b/docs/modules/onecx-data-orchestrator-operator/pages/onecx-data-orchestrator-operator-extensions.adoc index aa20dc1..e4417fc 100644 --- a/docs/modules/onecx-data-orchestrator-operator/pages/onecx-data-orchestrator-operator-extensions.adoc +++ b/docs/modules/onecx-data-orchestrator-operator/pages/onecx-data-orchestrator-operator-extensions.adoc @@ -11,20 +11,20 @@ h| Version | tkit-quarkus-log-cdi | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-cdi.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link] -| 2.33.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link] +| 2.36.0 | tkit-quarkus-log-rs | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-rs.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link] -| 2.33.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link] +| 2.36.0 | tkit-quarkus-log-json | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-json.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link] -| 2.33.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link] +| 2.36.0 | quarkus-arc @@ -71,14 +71,14 @@ h| Version | tkit-quarkus-security | https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-security.html[Link] -| https://github.com/1000kit/tkit-quarkus/blob/2.33.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link] -| 2.33.0 +| https://github.com/1000kit/tkit-quarkus/blob/2.36.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-security.adoc[Link] +| 2.36.0 | onecx-core | https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-core.html[Link] | -| 0.31.0 +| 0.32.0 | quarkus-smallrye-health diff --git a/src/main/java/org/tkit/onecx/data/orchestrator/operator/DataController.java b/src/main/java/org/tkit/onecx/data/orchestrator/operator/DataController.java index 22c4568..7c08be8 100644 --- a/src/main/java/org/tkit/onecx/data/orchestrator/operator/DataController.java +++ b/src/main/java/org/tkit/onecx/data/orchestrator/operator/DataController.java @@ -6,7 +6,6 @@ import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; -import io.javaoperatorsdk.operator.processing.retry.GradualRetry; import jakarta.inject.Inject; import jakarta.ws.rs.WebApplicationException; import jakarta.xml.bind.DatatypeConverter; @@ -19,9 +18,10 @@ import io.javaoperatorsdk.operator.api.reconciler.*; import io.javaoperatorsdk.operator.processing.event.source.filter.OnAddFilter; import io.javaoperatorsdk.operator.processing.event.source.filter.OnUpdateFilter; +import io.javaoperatorsdk.operator.processing.retry.GradualRetry; import io.smallrye.config.SmallRyeConfig; -@GradualRetry(intervalMultiplier = 3, initialInterval = 5000L, maxAttempts = 10, maxInterval = 300000L ) +@GradualRetry(intervalMultiplier = 3, initialInterval = 5000L, maxAttempts = 10, maxInterval = 300000L) @ControllerConfiguration(name = "data", maxReconciliationInterval = @MaxReconciliationInterval(interval = Constants.NO_MAX_RECONCILIATION_INTERVAL), namespaces = WATCH_CURRENT_NAMESPACE, onAddFilter = DataController.SlotAddFilter.class, onUpdateFilter = DataController.SlotUpdateFilter.class) public class DataController implements Reconciler, ErrorStatusHandler {