[FEATURE} Adjust error handling and bump versions

This commit is contained in:
Dunemask 2023-12-08 14:19:02 -07:00
parent d47a8c3cc4
commit 360dd32860
19 changed files with 1052 additions and 455 deletions

View file

@ -25,24 +25,24 @@ export default async function deleteServer(req, res) {
// Delete in reverse order
const deleteDeploy = k8sDeps.deleteNamespacedDeployment(
`mcl-${serverSpec.name}`,
namespace
namespace,
);
const deleteService = k8sCore.deleteNamespacedService(
`mcl-${name}-server`,
namespace
namespace,
);
const deleteRconService = k8sCore.deleteNamespacedService(
`mcl-${name}-rcon`,
namespace
namespace,
);
await deleteDeploy.catch(deleteError(res));
const deleteRconSecret = k8sCore.deleteNamespacedSecret(
`mcl-${name}-rcon-secret`,
namespace
namespace,
);
const deleteVolume = k8sCore.deleteNamespacedPersistentVolumeClaim(
`mcl-${name}-volume`,
namespace
namespace,
);
Promise.all([
deleteService,