chore: whoops last bit of docxs

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-08-19 09:42:11 +02:00
parent 85e6fa20a7
commit 0ad6b068bf
+3 -2
View File
@@ -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 });
},
);
},