Skip to content

Commit

Permalink
Update cluster_controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tuladhar committed Nov 9, 2023
1 parent aec7a0e commit f807f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f807f2c

Please sign in to comment.