refactor(cloudly): consume external interfaces package
This commit is contained in:
@@ -305,8 +305,13 @@ export class DeploymentManager {
|
||||
const node = await this.cloudlyRef.nodeManager.CClusterNode.getInstance({
|
||||
id: nodeId,
|
||||
});
|
||||
if (node && node.data.publicIp) {
|
||||
await this.cloudlyRef.dnsManager.updateServiceDnsEntriesIp(serviceId, node.data.publicIp);
|
||||
if (node?.data.baremetalId) {
|
||||
const baremetal = await this.cloudlyRef.baremetalManager.CBareMetal.getInstance({
|
||||
id: node.data.baremetalId,
|
||||
});
|
||||
if (baremetal?.data.primaryIp) {
|
||||
await this.cloudlyRef.dnsManager.updateServiceDnsEntriesIp(serviceId, baremetal.data.primaryIp);
|
||||
}
|
||||
}
|
||||
|
||||
return deployment;
|
||||
@@ -321,4 +326,4 @@ export class DeploymentManager {
|
||||
// Cleanup if needed
|
||||
console.log('DeploymentManager stopped');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user