Remove cloud cleaner
cloud cleaner is now being executed in it's own repo.
This commit is contained in:
parent
197cd47e0b
commit
5a62453190
3 changed files with 4 additions and 25 deletions
|
|
@ -3,7 +3,6 @@ stages:
|
||||||
- rpmbuild
|
- rpmbuild
|
||||||
- prepare-rhel-internal
|
- prepare-rhel-internal
|
||||||
- test
|
- test
|
||||||
- cleanup
|
|
||||||
- finish
|
- finish
|
||||||
|
|
||||||
.base:
|
.base:
|
||||||
|
|
@ -765,19 +764,6 @@ Manifest-diff:
|
||||||
paths:
|
paths:
|
||||||
- manifests.diff
|
- manifests.diff
|
||||||
|
|
||||||
SCHEDULED_CLOUD_CLEANER:
|
|
||||||
stage: cleanup
|
|
||||||
tags:
|
|
||||||
- terraform
|
|
||||||
variables:
|
|
||||||
RUNNER: aws/centos-stream-8-x86_64
|
|
||||||
INTERNAL_NETWORK: "true"
|
|
||||||
rules:
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CLEANUP == "true"'
|
|
||||||
script:
|
|
||||||
- schutzbot/deploy.sh
|
|
||||||
- schutzbot/scheduled_cloud_cleaner.sh
|
|
||||||
|
|
||||||
SonarQube:
|
SonarQube:
|
||||||
stage: test
|
stage: test
|
||||||
extends: .terraform
|
extends: .terraform
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
git clone https://github.com/osbuild/cloud-cleaner.git
|
|
||||||
|
|
||||||
|
|
||||||
./cloud-cleaner/cloud_cleaner.sh
|
|
||||||
|
|
@ -260,13 +260,11 @@ the first line!
|
||||||
|
|
||||||
### Cloud cleaner
|
### Cloud cleaner
|
||||||
|
|
||||||
Some tests deploy images to different clouds. After the tests run, these images
|
[Cloud cleaner](https://github.com/osbuild/cloud-cleaner) is a tool designed to clean leftover cloud resources in order to reduce our costs.
|
||||||
get removed by cloud cleaner (`cmd/cloud-cleaner`). But if something fails during the tests, or the
|
|
||||||
pipeline gets canceled, that image could get left behind in the cloud, wasting
|
|
||||||
resources.
|
|
||||||
|
|
||||||
To deal with this problem, we have scheduled cloud cleaner (`schutzbot/scheduled_cloud_cleaner.sh`), that goes through all
|
Some tests deploy images to different clouds. After the tests run, these images get removed by the same tests. But if something fails during these, or a pipeline gets canceled, those images could get left behind in the cloud, wasting resources.
|
||||||
the clouds looking for testing resources that were not removed.
|
|
||||||
|
Cloud cleaner is being executed every hour (on the CI of it's own repo), and it cleans resources that are not tagged with `persist=true`
|
||||||
|
|
||||||
## Integration testing
|
## Integration testing
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue