From b43f71e7bb63ab54577e4ea0a311b36c51ed566c Mon Sep 17 00:00:00 2001 From: Divya Madala <113469545+Divyaasm@users.noreply.github.com> Date: Fri, 7 Jun 2024 09:32:04 -0700 Subject: [PATCH] Update deprecated assignments (#431) Signed-off-by: Divya Madala --- lib/compute/oidc-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compute/oidc-config.ts b/lib/compute/oidc-config.ts index 3f459e88..3b6e0386 100644 --- a/lib/compute/oidc-config.ts +++ b/lib/compute/oidc-config.ts @@ -79,14 +79,14 @@ export class OidcConfig { roleBased: { roles: { global: [{ - assignments: adminUsers, + entries: adminUsers.map(user => ({ user })), name: 'admin', pattern: '.*', permissions: OidcConfig.adminRolePermissions , }, { - assignments: readOnlyUsers, + entries: readOnlyUsers.map(user => ({ user })), name: 'read', pattern: '.*', permissions: OidcConfig.readOnlyRolePermissions,