diff --git a/controllers/util/provider.go b/controllers/util/provider.go index 0c8517ac24..ea0f90be0c 100644 --- a/controllers/util/provider.go +++ b/controllers/util/provider.go @@ -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)