Skip to content

Commit 542d918

Browse files
committed
fixup: rebase changes
Signed-off-by: Max Cao <macao@redhat.com>
1 parent e91600a commit 542d918

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ require (
197197
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.3 // indirect
198198
github.com/aws/aws-sdk-go-v2/service/sso v1.24.3 // indirect
199199
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.3 // indirect
200-
github.com/aws/smithy-go v1.22.0 // indirect
200+
github.com/aws/smithy-go v1.22.0
201201
github.com/beorn7/perks v1.0.1 // indirect
202202
github.com/blang/semver/v4 v4.0.0 // indirect
203203
github.com/cenkalti/backoff/v4 v4.3.0 // indirect

pkg/scaling/resolver/scale_resolvers.go

-2
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ func resolveBoundServiceAccountToken(ctx context.Context, client client.Client,
621621
logger.Error(err, "error trying to parse expiry duration", "expiry", expiry)
622622
return ""
623623
}
624-
// convert duration to seconds
625624
expirySeconds = ptr.Int64(int64(duration.Seconds()))
626625
}
627626

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

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

0 commit comments

Comments
 (0)