Skip to content

Commit

Permalink
Rename expiry delta to tokenExpiryDelta
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankar Gochhayat <saisankargochhayat@gmail.com>
  • Loading branch information
saisankargochhayat committed Dec 2, 2024
1 parent 01e7808 commit 41b5caa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions auth/providers/azure/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var (
)

const (
// Time delta to refresh token before expiry
tokenExpiryDelta = 300 * time.Second
getMemberGroupsTimeout = 23 * time.Second
getterName = "ms-graph"
Expand Down
13 changes: 7 additions & 6 deletions authz/providers/azure/rbac/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ import (
)

const (
managedClusters = "Microsoft.ContainerService/managedClusters"
fleets = "Microsoft.ContainerService/fleets"
connectedClusters = "Microsoft.Kubernetes/connectedClusters"
checkAccessPath = "/providers/Microsoft.Authorization/checkaccess"
checkAccessAPIVersion = "2018-09-01-preview"
remainingSubReadARMHeader = "x-ms-ratelimit-remaining-subscription-reads"
managedClusters = "Microsoft.ContainerService/managedClusters"
fleets = "Microsoft.ContainerService/fleets"
connectedClusters = "Microsoft.Kubernetes/connectedClusters"
checkAccessPath = "/providers/Microsoft.Authorization/checkaccess"
checkAccessAPIVersion = "2018-09-01-preview"
remainingSubReadARMHeader = "x-ms-ratelimit-remaining-subscription-reads"
// Time delta to refresh token before expiry
tokenExpiryDelta = 300 * time.Second
checkaccessContextTimeout = 23 * time.Second
correlationRequestIDHeader = "x-ms-correlation-request-id"
Expand Down

0 comments on commit 41b5caa

Please sign in to comment.