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

ability to wait on crd deletion before deleting operator #6384

Open
nicks opened this issue May 29, 2024 · 0 comments
Open

ability to wait on crd deletion before deleting operator #6384

nicks opened this issue May 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nicks
Copy link
Member

nicks commented May 29, 2024

Describe the Feature You Want

In the tilt channel, dougbarth says:

I’ve been playing with a k8s operator to create a ClickHouse cluster based on a CRD being installed by Tilt. Creating the cluster works well, but when I run tilt down, the operator is deleted before the cluster is torn down, causing the next usage of tilt up to fail.

Current Behavior

currently, tilt down sorts all the kubernetes manifests in reverse order, and issues delete API requests

it does not wait on one resource to finish deleting before it waits for the next one.

Possible solutions

  • Change the default behavior of tilt down to wait
  • Add a --wait flag with some --timeout flags
  • detect the CRD / operator case in particular, and adjust for that

Current Workaround

You can hack in deletion in a particular order with something like:

if config.tilt_subcommand == 'down':
  local('kubectl delete my-resource --all') 
@nicks nicks added the enhancement New feature or request label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant