Git Product home page Git Product logo

Comments (5)

nicks avatar nicks commented on July 17, 2024

thanks for reporting! I see the problem.

FWIW, the first issue you list:

| Running ctlptl delete -f kind-config.yaml deletes the k8s cluster and the registry even though --cascade says it defaults to false.

is what i would expect, since you YAML file contains both resources. --cascade only affects resources that are NOT explicitly listed.

from ctlptl.

tylermichael avatar tylermichael commented on July 17, 2024

I really appreciate the responsiveness!

Just to be clear, the change you made will make it so that the registry is deleted in this scenario?

The description for this argument wasn't super clear to me that it only affects resources not listed in your cluster definition.

I read it as, IF true, deleting a cluster will delete any connected registries. So then cascade false wouldn't delete the registry.

--cascade string     If 'true', objects will be deleted recursively. For example, deleting a cluster will delete any connected registries. Defaults to 'false'. (default "false")

I understand that ctlptl will automatically create a registry for you if it's not defined, so I suppose it makes sense that this is the behavior.

However, my use case was I wanted to delete the k8s cluster but not the registry because I didn't want to lose the images it had already downloaded.

Any thoughts on how I could accomplish that? I can create a new issue for a new feature if that's what you think should happen. Perhaps if you have defined the registry in your config, cascade false could not delete the registry? Just a thought.

Further more, it would be nice to be able to mount in a volume to the registry so I can cache images in a folder on my host.

from ctlptl.

nicks avatar nicks commented on July 17, 2024

kind-config.yaml contains two objects: a registry and a cluster.

If you tilt delete -f kind-config.yaml, it will delete both objects.

If you want to delete just the cluster, you need a file with one object, or just tilt delete cluster kind

from ctlptl.

tylermichael avatar tylermichael commented on July 17, 2024

Just for posterity sake, doing ctlptl delete cluster kind worked rather than using tilt. Thank you

from ctlptl.

nicks avatar nicks commented on July 17, 2024

oops, sorry, my mistake. ya i meant ctlptl delete

from ctlptl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.