Skip to content

Commit

Permalink
changes to onboarding token to include role in body
Browse files Browse the repository at this point in the history
Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Sep 4, 2024
1 parent 77748d8 commit 29a7364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/util/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ func GenerateOnboardingToken(tokenLifetimeInHours int, privateKeyPath string, st
ExpirationDate: tokenExpirationDate,
SubjectRole: role,
}

if storageQuotaInGiB != nil {
ticket.StorageQuotaInGiB = *storageQuotaInGiB
}

payload, err := json.Marshal(ticket)
if err != nil {
return "", fmt.Errorf("failed to marshal the payload: %v", err)
Expand Down

0 comments on commit 29a7364

Please sign in to comment.