You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/06/22 07:42:37 UTC

[GitHub] [flink-kubernetes-operator] gyfora commented on a diff in pull request #273: [FLINK-28166] Configurable Automatic Retries on Error

gyfora commented on code in PR #273:
URL: https://github.com/apache/flink-kubernetes-operator/pull/273#discussion_r903396030


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/KubernetesOperatorConfigOptions.java:
##########
@@ -203,4 +203,28 @@ public class KubernetesOperatorConfigOptions {
                     .defaultValue(false)
                     .withDescription(
                             "Enables dynamic change of watched/monitored namespaces. Defaults to false");
+
+    public static final ConfigOption<Duration> OPERATOR_RETRY_INITIAL_INTERVAL =
+            ConfigOptions.key("kubernetes.operator.retry.initial.interval")
+                    .durationType()
+                    .defaultValue(Duration.ofSeconds(5))
+                    .withDescription(
+                            "Initial interval of automatic reconcile retries on recoverable errors. Defaults to "
+                                    + Duration.ofSeconds(5));
+
+    public static final ConfigOption<Double> OPERATOR_RETRY_INTERVAL_MULTIPLIER =
+            ConfigOptions.key("kubernetes.operator.retry.interval.multiplier")
+                    .doubleType()
+                    .defaultValue(2.0)
+                    .withDescription(
+                            "Interval multiplier of automatic reconcile retries on recoverable errors. Defaults to "
+                                    + 2.0);
+
+    public static final ConfigOption<Integer> OPERATOR_RETRY_MAX_ATTEMPTS =
+            ConfigOptions.key("kubernetes.operator.retry.max.attempts")
+                    .intType()
+                    .defaultValue(10)
+                    .withDescription(
+                            "Max attempts of automatic reconcile retries on recoverable errors. Defaults to "
+                                    + 10);

Review Comment:
   You don't need to specify default values in the description itself. It is generated automatically in the HTML



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org