fix k8s crd regression (#7728)

Signed-off-by: mclarke47 <matthewclarke47@gmail.com>
This commit is contained in:
Matthew Clarke
2021-10-21 14:21:35 +01:00
committed by GitHub
parent f207c39e41
commit b61c50a12f
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': patch
---
Fix Kubernetes plugin custom objects lookup regression
@@ -124,6 +124,7 @@ export class KubernetesBuilder {
group: c.getString('group'),
apiVersion: c.getString('apiVersion'),
plural: c.getString('plural'),
objectType: 'customresources',
} as CustomResource),
);
@@ -148,7 +148,10 @@ export class KubernetesClientBasedFetcher implements KubernetesFetcher {
labelSelector,
)
.then(r => {
return { type: objectType, resources: (r.body as any).items };
return {
type: objectType,
resources: (r.body as any).items,
};
});
}
}