Skip to content

Commit

Permalink
Merge pull request #91 from gianlucam76/token
Browse files Browse the repository at this point in the history
Extend token renewal to every 3 hours
  • Loading branch information
gianlucam76 authored Jan 21, 2025
2 parents 196623f + 038134c commit 8bacffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func onboardManagementCluster(ctx context.Context, c client.Client, clusterNames
func patchSveltosCluster(ctx context.Context, c client.Client, clusterNamespace, clusterName string,
labels map[string]string, logger logr.Logger) error {

const renewalInterval = 3600 * time.Second
const renewalInterval = 3 * 3600 * time.Second // every 3 hours
currentSveltosCluster := &libsveltosv1beta1.SveltosCluster{}
err := c.Get(ctx, types.NamespacedName{Namespace: clusterNamespace, Name: clusterName},
currentSveltosCluster)
Expand Down

0 comments on commit 8bacffa

Please sign in to comment.