@@ -18,8 +18,13 @@ export type TEnrichedTableProviderProps = {
1818 dataItems : TJSON [ ]
1919 resourceSchema ?: TJSON
2020
21- isNamespaced ?: boolean
22- isNamespacedLoading ?: boolean
21+ k8sResource ?: {
22+ resource : string
23+ apiGroup ?: string
24+ apiVersion : string
25+ }
26+ // isNamespaced?: boolean
27+ // isNamespacedLoading?: boolean
2328
2429 dataForControls ?: {
2530 cluster : string
@@ -61,8 +66,9 @@ export const EnrichedTableProvider: FC<TEnrichedTableProviderProps> = ({
6166 baseprefix,
6267 dataItems,
6368 resourceSchema,
64- isNamespaced,
65- isNamespacedLoading,
69+ k8sResource,
70+ // isNamespaced,
71+ // isNamespacedLoading,
6672 dataForControls,
6773 dataForControlsInternal,
6874 customizationId,
@@ -103,7 +109,9 @@ export const EnrichedTableProvider: FC<TEnrichedTableProviderProps> = ({
103109 customizationId,
104110 tableMappingsReplaceValues,
105111 forceDefaultAdditionalPrinterColumns,
106- namespaceScopedWithoutNamespace : isNamespaced && ! namespace ,
112+ namespace,
113+ k8sResource,
114+ // namespaceScopedWithoutNamespace: isNamespaced && !namespace,
107115 }
108116 axios
109117 . post < TPrepareTableRes > ( `/api/clusters/${ cluster } /openapi-bff/tables/tablePrepare/prepareTableProps` , payload )
@@ -122,17 +130,18 @@ export const EnrichedTableProvider: FC<TEnrichedTableProviderProps> = ({
122130 customizationId ,
123131 tableMappingsReplaceValues ,
124132 forceDefaultAdditionalPrinterColumns ,
125- isNamespaced ,
126133 namespace ,
134+ k8sResource ,
135+ // isNamespaced,
127136 ] )
128137
129- if ( isNamespacedLoading ) {
130- return (
131- < Flex justify = "center" >
132- < Spin />
133- </ Flex >
134- )
135- }
138+ // if (isNamespacedLoading) {
139+ // return (
140+ // <Flex justify="center">
141+ // <Spin />
142+ // </Flex>
143+ // )
144+ // }
136145
137146 if ( ! preparedProps && isLoading ) {
138147 return (
0 commit comments