From 0ad6b068bf11b934c74f6629cdca3fbeb2a51ed7 Mon Sep 17 00:00:00 2001 From: benjdlambert Date: Tue, 19 Aug 2025 09:42:11 +0200 Subject: [PATCH] chore: whoops last bit of docxs Signed-off-by: benjdlambert --- docs/features/kubernetes/installation.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/features/kubernetes/installation.md b/docs/features/kubernetes/installation.md index 6649ff78c1..fa37253cd6 100644 --- a/docs/features/kubernetes/installation.md +++ b/docs/features/kubernetes/installation.md @@ -123,7 +123,8 @@ export const kubernetesModuleCustomClusterDiscovery = createBackendModule({ clusterSupplier: kubernetesClusterSupplierExtensionPoint, serviceLocator: kubernetesServiceLocatorExtensionPoint, }, - async init({ clusterSupplier }) { + async init({ clusterSupplier, serviceLocator }) { + // simple replace of the internal dependency clusterSupplier.addClusterSupplier( CustomClustersSupplier.create(Duration.fromObject({ minutes: 60 })), ); @@ -136,7 +137,7 @@ export const kubernetesModuleCustomClusterDiscovery = createBackendModule({ const defaultImplementation = await getDefault(); // build your own with the clusterSupplier dependency: - return MyNewServiceLocator({ clusterSupplier }); + return new MyNewServiceLocator({ clusterSupplier }); }, ); },