From f807f2c18514afc9eef7756ab2160d71ea907395 Mon Sep 17 00:00:00 2001 From: Puru <5674762+tuladhar@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:16:31 +0545 Subject: [PATCH] Update cluster_controller.go --- internal/controller/cluster_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/cluster_controller.go b/internal/controller/cluster_controller.go index 28fc30aa..e58c46b4 100644 --- a/internal/controller/cluster_controller.go +++ b/internal/controller/cluster_controller.go @@ -82,7 +82,7 @@ func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct log.Info("Teleport identity", "last-read-minutes-ago", minutes, "hash", hashString) - if time.Since(r.Teleport.SecretConfig.LastRead) > 1*time.Minute { + if time.Since(r.Teleport.SecretConfig.LastRead) > 20*time.Minute { log.Info("Retrieving new identity", "secretName", key.TeleportBotSecretName) newSecretConfig, err := teleport.GetConfigFromSecret(ctx, r.Client, r.Namespace)