@@ -16,7 +16,7 @@ import { formatDateAsTimeAgo } from '../../utils/i18n/timeAgo';
1616
1717import { YamlViewButton } from '../Yaml/YamlViewButton.tsx' ;
1818
19- import { Fragment , useCallback , useMemo , useRef } from 'react' ;
19+ import { Fragment , useCallback , useContext , useMemo , useRef } from 'react' ;
2020import { Resource } from '../../utils/removeManagedFieldsAndFilterData.ts' ;
2121import { ProviderConfigItem } from '../../lib/shared/types.ts' ;
2222import { ActionsMenu , type ActionItem } from './ActionsMenu' ;
@@ -25,6 +25,7 @@ import { YamlSidePanel } from '../Yaml/YamlSidePanel.tsx';
2525import { useHandleResourcePatch } from '../../hooks/useHandleResourcePatch.ts' ;
2626import { ErrorDialog , ErrorDialogHandle } from '../Shared/ErrorMessageBox.tsx' ;
2727import { useAuthMcp } from '../../spaces/mcp/auth/AuthContextMcp.tsx' ;
28+ import { ApiConfigContext } from '../Shared/k8s' ;
2829
2930type Rows = {
3031 parent : string ;
@@ -39,7 +40,7 @@ export function ProvidersConfig() {
3940 const { openInAside } = useSplitter ( ) ;
4041 const errorDialogRef = useRef < ErrorDialogHandle > ( null ) ;
4142 const handlePatch = useHandleResourcePatch ( errorDialogRef ) ;
42-
43+ const apiConfig = useContext ( ApiConfigContext ) ;
4344 const rows : Rows [ ] = [ ] ;
4445
4546 const { data : providerConfigsList , isLoading } = useProvidersConfigResource ( {
@@ -69,6 +70,7 @@ export function ProvidersConfig() {
6970 isEdit = { true }
7071 resource = { item as unknown as Resource }
7172 filename = { `${ item . kind } _${ item . metadata . name } ` }
73+ apiConfig = { apiConfig }
7274 onApply = { async ( parsed ) => await handlePatch ( item , parsed ) }
7375 />
7476 </ Fragment > ,
0 commit comments