Skip to content

Commit

Permalink
fixup: rebase changes
Browse files Browse the repository at this point in the history
Signed-off-by: Max Cao <[email protected]>
  • Loading branch information
maxcao13 committed Dec 2, 2024
1 parent e91600a commit 542d918
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.24.3 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.3 // indirect
github.com/aws/smithy-go v1.22.0 // indirect
github.com/aws/smithy-go v1.22.0
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions pkg/scaling/resolver/scale_resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ func resolveBoundServiceAccountToken(ctx context.Context, client client.Client,
logger.Error(err, "error trying to parse expiry duration", "expiry", expiry)
return ""
}
// convert duration to seconds
expirySeconds = ptr.Int64(int64(duration.Seconds()))
}

Expand All @@ -636,7 +635,6 @@ func resolveBoundServiceAccountToken(ctx context.Context, client client.Client,
}

func generateToken(ctx context.Context, serviceAccountName, namespace string, expiry *int64, acs *authentication.AuthClientSet) string {
// create new token and embed it in the secret
token, err := acs.CoreV1Interface.ServiceAccounts(namespace).CreateToken(
ctx,
serviceAccountName,
Expand Down

0 comments on commit 542d918

Please sign in to comment.