diff --git a/backend/src/routes/api/integrations/nim/index.ts b/backend/src/routes/api/integrations/nim/index.ts index 73c08f9628..18791ac9b4 100644 --- a/backend/src/routes/api/integrations/nim/index.ts +++ b/backend/src/routes/api/integrations/nim/index.ts @@ -39,7 +39,7 @@ module.exports = async (fastify: KubeFastifyInstance) => { }); } } else { - fastify.log.error(`An unexpected error occurred: ${e.message || e}`); + fastify.log.error(`An unexpected error occurred: ${e.response.body?.message}`); reply.send({ isInstalled: false, isAppEnabled: false, diff --git a/manifests/core-bases/base/cluster-role.yaml b/manifests/core-bases/base/cluster-role.yaml index 9bbbb2b080..afbdc4c571 100644 --- a/manifests/core-bases/base/cluster-role.yaml +++ b/manifests/core-bases/base/cluster-role.yaml @@ -207,3 +207,15 @@ rules: - delete resources: - modelregistries + - apiGroups: + - nim.opendatahub.io + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + resources: + - accounts