feat: add platform desired state manager

This commit is contained in:
2026-04-28 12:18:12 +00:00
parent 84d3e8f52f
commit 3080075811
8 changed files with 422 additions and 18 deletions
+5 -1
View File
@@ -72,10 +72,14 @@ export class CloudlyCoreflowManager {
console.log('trying to get clusterConfigSet');
console.log(dataArg);
const cluster = await this.cloudlyRef.clusterManager.getClusterBy_Identity(identity);
const services = await this.cloudlyRef.serviceManager.CService.getInstances({});
const platformDesiredState = await this.cloudlyRef.platformManager.getPlatformDesiredState();
console.log('got cluster config and sending it back to coreflow');
return {
configData: await cluster.createSavableObject(),
services: [],
services: await Promise.all(services.map((service) => service.createSavableObject())),
platformProviderConfigs: platformDesiredState.providerConfigs,
platformBindings: platformDesiredState.bindings,
};
}
)