mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[cloud first testing] Purge vault when deployment is removed (#124761)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
1f0f399d65
commit
eb5ab3e23e
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ for (const deployment of deploymentsToPurge) {
|
|||
console.log(`Scheduling deployment for deletion: ${deployment.name} / ${deployment.id}`);
|
||||
try {
|
||||
execSync(`ecctl deployment shutdown --force '${deployment.id}'`, { stdio: 'inherit' });
|
||||
execSync(`vault delete secret/kibana-issues/dev/cloud-deploy/${deployment.name}`, {
|
||||
stdio: 'inherit',
|
||||
});
|
||||
} catch (ex) {
|
||||
console.error(ex.toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue