Pod Sweeper: should allow configuring pod states to sweep #10349
Labels
area/platform
issues related to the platform
autoteam
community
frozen
Not being actively worked on
kubernetes
team/platform-compose-discarded
team/platform-move
type/enhancement
New feature or request
Tell us about the problem you're trying to solve
While trying to understand why pod sweeper doesn't work for us at the moment, I tried running the kubectl command found in
get_worker_pods
in https://github.com/airbytehq/airbyte/blob/master/kube/resources/pod-sweeper.yaml#L10 and noticed that it returns pods in any phase other thanRunning
including pods inPending
phase. Then inairbyte/kube/resources/pod-sweeper.yaml
Line 34 in 838ce14
Succeeded
status is handled differently from other statuses.I would like to have only the pods in phases
Failed
andSucceeded
to be garbage collected.Describe the solution you’d like
A variable with list of phase names maybe and if not in the list then ignore? Or a var to toggle
Pending
pods deletion.Are you willing to submit a PR?
Sure
The text was updated successfully, but these errors were encountered: