Skip to content

Commit e4a580f

Browse files
Fix KubernetesProvider configuration - add required restEndpoint
- Add initialConfig with restEndpoint: 'http://localhost:8001' to KubernetesProvider - Matches default endpoint used in kubernetes-client.ts for consistency - Resolves 'useKubernetes must be used within a KubernetesProvider' error Co-Authored-By: Dan Lynch <[email protected]>
1 parent 82551a2 commit e4a580f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/app/providers.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ interface ProvidersProps {
99

1010
export function Providers({ children }: ProvidersProps) {
1111
return (
12-
<KubernetesProvider>
12+
<KubernetesProvider
13+
initialConfig={{
14+
restEndpoint: 'http://localhost:8001'
15+
}}
16+
>
1317
<NamespaceProvider>
1418
{children}
1519
</NamespaceProvider>

0 commit comments

Comments
 (0)