Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: auto cleanup clusters #6

Merged
merged 20 commits into from
May 24, 2024
Merged

chore: auto cleanup clusters #6

merged 20 commits into from
May 24, 2024

Conversation

leiicamundi
Copy link
Contributor

@leiicamundi leiicamundi commented May 23, 2024

This pr brings daily cleanup of the clusters, it adds:

  • a script to delete all the rosa clusters referenced in a bucket
  • a daily scheduled action to run this script in the GHA
  • a failing report step in the gha that will open / close an issue in case of failure

GHA where nothing has to be delete: https://github.com/camunda/camunda-tf-rosa/actions/runs/9207072773/job/25326301904?pr=6

GHA deleting clusters: https://github.com/camunda/camunda-tf-rosa/actions/runs/9205840401/job/25322395249

GHA opening an issue: #7 + https://github.com/camunda/camunda-tf-rosa/actions/runs/9205802846/job/25322270545

closes #3

@leiicamundi leiicamundi marked this pull request as ready for review May 23, 2024 11:23
@leiicamundi leiicamundi enabled auto-merge (squash) May 23, 2024 11:24
@leiicamundi leiicamundi requested a review from Langleu May 23, 2024 11:24
@leiicamundi leiicamundi self-assigned this May 23, 2024
@leiicamundi leiicamundi changed the title feat: cleanup cluster chore: auto cleanup cluster May 23, 2024
@leiicamundi leiicamundi changed the title chore: auto cleanup cluster chore: auto cleanup clusters May 23, 2024
Copy link
Member

@Langleu Langleu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty cool 👍.
Checked the runs and everything seems to be working fine.
Also nice addition with the dispatch and input.
Values are also quite reasonable, allowing one to have a cluster for two work days.

@leiicamundi leiicamundi merged commit 6aad569 into main May 24, 2024
5 checks passed
@leiicamundi leiicamundi deleted the feature/cleanup-clusters branch May 24, 2024 08:37
@leiicamundi
Copy link
Contributor Author

Thanks for the review @Langleu :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List and delete orphan clusters
2 participants