File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ export type CRDResponse = {
66 metadata : {
77 name : string ;
88 creationTimestamp : string ;
9+ ownerReferences : [
10+ {
11+ kind : string ;
12+ name : string ;
13+ } ,
14+ ] ;
915 } ;
1016 status : {
1117 conditions : [
Original file line number Diff line number Diff line change @@ -70,8 +70,12 @@ export const useProvidersConfigResource = (config?: SWRConfiguration) => {
7070
7171 const providerConfigsData : ProviderConfigsData [ ] =
7272 crdWithProviderConfig ?. map ( ( item ) => {
73+ const providerName = item . metadata . ownerReferences . find (
74+ ( x ) => x . kind === 'Provider' ,
75+ ) ?. name ;
76+
7377 return {
74- provider : item . metadata . name ,
78+ provider : providerName ? providerName : '' ,
7579 name : item . spec . group ,
7680 versions : item . spec . versions ,
7781 } ;
You can’t perform that action at this time.
0 commit comments