From 4e5eb3face3bed24c33ba8050b3619c366717ac4 Mon Sep 17 00:00:00 2001 From: mmontes11 Date: Thu, 17 Jul 2025 17:33:54 +0200 Subject: [PATCH] Bump requeue intervals in defaults and examples --- examples/manifests/database.yaml | 4 ++-- examples/manifests/grant.yaml | 4 ++-- examples/manifests/maxscale_external.yaml | 2 +- examples/manifests/maxscale_galera.yaml | 2 +- examples/manifests/maxscale_replication.yaml | 2 +- examples/manifests/user.yaml | 4 ++-- pkg/controller/sql/controller.go | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/manifests/database.yaml b/examples/manifests/database.yaml index 20d43c90..9c3f9ee5 100644 --- a/examples/manifests/database.yaml +++ b/examples/manifests/database.yaml @@ -12,5 +12,5 @@ spec: # Delete the resource in the database whenever the CR gets deleted. # Alternatively, you can specify Skip in order to omit deletion. cleanupPolicy: Delete - requeueInterval: 30s - retryInterval: 5s \ No newline at end of file + requeueInterval: 10h + retryInterval: 30s \ No newline at end of file diff --git a/examples/manifests/grant.yaml b/examples/manifests/grant.yaml index 8af6b195..6e40a8cb 100644 --- a/examples/manifests/grant.yaml +++ b/examples/manifests/grant.yaml @@ -18,5 +18,5 @@ spec: # Delete the resource in the database whenever the CR gets deleted. # Alternatively, you can specify Skip in order to omit deletion. cleanupPolicy: Delete - requeueInterval: 30s - retryInterval: 5s \ No newline at end of file + requeueInterval: 10h + retryInterval: 30s \ No newline at end of file diff --git a/examples/manifests/maxscale_external.yaml b/examples/manifests/maxscale_external.yaml index 867db924..c0b36530 100644 --- a/examples/manifests/maxscale_external.yaml +++ b/examples/manifests/maxscale_external.yaml @@ -83,4 +83,4 @@ spec: metrics: enabled: true - requeueInterval: 30s \ No newline at end of file + requeueInterval: 1h \ No newline at end of file diff --git a/examples/manifests/maxscale_galera.yaml b/examples/manifests/maxscale_galera.yaml index d5a89d01..51491139 100644 --- a/examples/manifests/maxscale_galera.yaml +++ b/examples/manifests/maxscale_galera.yaml @@ -54,4 +54,4 @@ spec: metrics: enabled: true - requeueInterval: 30s \ No newline at end of file + requeueInterval: 1h \ No newline at end of file diff --git a/examples/manifests/maxscale_replication.yaml b/examples/manifests/maxscale_replication.yaml index 1d8dfc76..6273da63 100644 --- a/examples/manifests/maxscale_replication.yaml +++ b/examples/manifests/maxscale_replication.yaml @@ -79,4 +79,4 @@ spec: metrics: enabled: true - requeueInterval: 30s \ No newline at end of file + requeueInterval: 1h \ No newline at end of file diff --git a/examples/manifests/user.yaml b/examples/manifests/user.yaml index cb53d9a6..03414e3d 100644 --- a/examples/manifests/user.yaml +++ b/examples/manifests/user.yaml @@ -16,5 +16,5 @@ spec: # Delete the resource in the database whenever the CR gets deleted. # Alternatively, you can specify Skip in order to omit deletion. cleanupPolicy: Delete - requeueInterval: 30s - retryInterval: 5s \ No newline at end of file + requeueInterval: 10h + retryInterval: 30s \ No newline at end of file diff --git a/pkg/controller/sql/controller.go b/pkg/controller/sql/controller.go index f3b2d5f1..cf66d6df 100644 --- a/pkg/controller/sql/controller.go +++ b/pkg/controller/sql/controller.go @@ -63,8 +63,8 @@ func NewSqlReconciler(client ctrlclient.Client, cr *condition.Ready, wr WrappedR WrappedReconciler: wr, Finalizer: f, SqlOptions: SqlOptions{ - RequeueInterval: 30 * time.Second, - RequeueMaxOffset: 0, + RequeueInterval: 10 * time.Hour, + RequeueMaxOffset: 1 * time.Hour, LogSql: false, }, }