feat: push config updates to coreflow
This commit is contained in:
@@ -139,6 +139,7 @@ export class ClusterManager {
|
||||
const clusterUser = new this.cloudlyRef.authManager.CUser({
|
||||
id: await this.cloudlyRef.authManager.CUser.getNewId(),
|
||||
data: {
|
||||
username: `cluster-${configObjectArg.id}`,
|
||||
role: 'cluster',
|
||||
type: 'machine',
|
||||
tokens: [
|
||||
@@ -151,9 +152,7 @@ export class ClusterManager {
|
||||
},
|
||||
});
|
||||
await clusterUser.save();
|
||||
Object.assign(configObjectArg, {
|
||||
userId: clusterUser.id,
|
||||
});
|
||||
configObjectArg.data.userId = clusterUser.id;
|
||||
const clusterInstance = await Cluster.fromConfigObject(configObjectArg);
|
||||
await clusterInstance.save();
|
||||
return clusterInstance;
|
||||
|
||||
Reference in New Issue
Block a user