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] Added Cleanup for Launch Configurations #1335

Merged
merged 14 commits into from
Sep 19, 2024
Merged

Conversation

okankoAMZ
Copy link
Contributor

Description of the issue

Currently we do not clean-up after launch configurations are used by our integration test. This leads to waste of resources and also failures in integration test due to maximum amount of launch configurations being reached.

Description of changes

  • Added a new script that checks our launch configurations and if they are more than 2 months old deletes them.
  • Added workflow so that this script is triggered with the other cleanup scripts.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

I ran go run ./clean_launch_configuration/clean_launch_configuration.go(added a break so it only deletes one) and it deleted the launch configurations.
Before the test:
Screenshot 2024-09-04 at 12 42 59 PM
After the test:
Screenshot 2024-09-04 at 12 43 14 PM

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

@okankoAMZ okankoAMZ requested a review from a team as a code owner September 4, 2024 18:23
jefchien
jefchien previously approved these changes Sep 4, 2024
@jefchien
Copy link
Contributor

jefchien commented Sep 4, 2024

mitali-salvi
mitali-salvi previously approved these changes Sep 4, 2024
@okankoAMZ okankoAMZ dismissed stale reviews from mitali-salvi and jefchien via b90ea55 September 4, 2024 21:50
Copy link
Contributor

This PR was marked stale due to lack of activity.

@github-actions github-actions bot added Stale and removed Stale labels Sep 13, 2024
@okankoAMZ okankoAMZ merged commit 8543462 into main Sep 19, 2024
6 checks passed
@okankoAMZ okankoAMZ deleted the fix-clean-launch-config branch September 19, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants