Retry Configuration #1278
-
We are using io.javaoperatorsdk version 2.1.4 to create kubernates operator How can we configure retry configuration. I went through the doc but didnot understand the way how to configure. could some one help on this ? I have code like below @ControllerConfiguration .... KubernetesClient client = new DefaultKubernetesClient(config); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You'd do something like: operator.register(new ApplicationsReconciler(client), configOverrider -> configOverrider
.withRetry(new RetryConfiguration() {
@Override
public int getMaxAttempts() {
return 10;
}
})); In this example, you'd be overriding the maximum number of retry attempts to 10 instead of the default value. |
Beta Was this translation helpful? Give feedback.
-
The retry instance can be used directly, also: operator.register(schemaReconciler,
configOverrider -> configOverrider.withRetry(new GenericRetry().setMaxAttempts(10))); |
Beta Was this translation helpful? Give feedback.
The retry instance can be used directly, also: