Documentation
¶
Overview ¶
This script cleans up all GKE clusters that could be potentially orphaned by our tests (e.g. unexpected crash that didn't allow a test's teardown to be completed correctly). It's meant to be installed as a cronjob and run repeatedly throughout the day to catch any orphaned clusters: however tests should be trying to delete the clusters they create themselves.
A cluster is considered orphaned when all conditions are satisfied: 1. Its name begins with a predefined prefix (`gke-e2e-`). 2. It was created more than 1h ago.
Click to show internal directories.
Click to hide internal directories.