From e444047d76b6b139698e53d7c9ac14be0025894e Mon Sep 17 00:00:00 2001 From: Rob Heckel Date: Fri, 22 Mar 2024 08:39:09 -0500 Subject: [PATCH] Update README.md to Resolve Errors Adding an additional scheduler option as the previous example was failing to build the backend. Also, the spec was missing in the groupTransformer which caused all insertions of new groups to fail with an error such that: ``` Thanks, this helped. Next error now is: [1] 2024-03-21T21:53:32.085Z catalog warn Policy check failed for group:default/xxxxxxxx; caused by Error: Malformed envelope, must NOT have additional properties type=plugin entity=group:default/xxxxx ``` --- plugins/catalog-backend-module-okta/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/catalog-backend-module-okta/README.md b/plugins/catalog-backend-module-okta/README.md index 95626d4..28a75c4 100644 --- a/plugins/catalog-backend-module-okta/README.md +++ b/plugins/catalog-backend-module-okta/README.md @@ -40,6 +40,7 @@ export default async function createPlugin( logger: env.logger, schedule: env.scheduler.createScheduledTaskRunner({ frequency: { days: 1 }, + timeout: { minutes: 30 }, }), // query params passed to the okta api groups request listGroupsRequest: { @@ -67,10 +68,12 @@ export default async function createPlugin( name: oktaGroup.profile!.name!.toLowerCase(), description: oktaGroup.profile?.description || '', }, - type: 'team', - children: [], - profile: { - displayName: oktaGroup.profile!.name!, + spec: { + type: 'team', + children: [], + profile: { + displayName: oktaGroup.profile!.name!, + }, }, }), }),