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 }); }, ); },