Skip to content

Commit

Permalink
(chore) double token expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucam76 committed Feb 6, 2025
1 parent 0f58e7d commit 92c6e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
//nolint: gosec // this is just postfix of the secret name
sveltosKubeconfigSecretNamePostfix = "-sveltos-kubeconfig"
projectsveltos = "projectsveltos"
secondsInDay = 3600
tokenExpirationInSeconds = 7200
kubeconfigKey = "kubeconfig"
)

Expand Down Expand Up @@ -118,7 +118,7 @@ func registerManagementCluster(ctx context.Context, restConfig *rest.Config, c c
caData []byte, logger logr.Logger) error {

kubeconfig, err := generateKubeconfigForServiceAccount(ctx, restConfig, c, projectsveltos,
projectsveltos, secondsInDay, caData, logger)
projectsveltos, tokenExpirationInSeconds, caData, logger)
if err != nil {
logger.V(logs.LogInfo).Info(fmt.Sprintf("failed to get kubeconfig: %v", err))
return err
Expand Down

0 comments on commit 92c6e44

Please sign in to comment.