Comments (5)
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.
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.
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.
Just for posterity sake, doing ctlptl delete cluster kind
worked rather than using tilt
. Thank you
from ctlptl.
oops, sorry, my mistake. ya i meant ctlptl delete
from ctlptl.
Related Issues (20)
- Modification with `ctlptl docker-desktop set` results in `status code 400` HOT 1
- Support for ingress with kind HOT 1
- Registry support for htpasswd
- Support Kind v0.19.0 HOT 1
- K3D schema upgrade to v1alpha5 Simple. HOT 1
- Support minikube addons HOT 2
- Unable to set up registry with minikube HOT 10
- ctlptl doesn't authenticate requests when creating registry HOT 2
- ctlptl get registries -oname do not return a list of registry names
- ctlptl get registries -oname do return prefixed names HOT 1
- Support MiniKube with different drivers HOT 1
- kind containerd config patch should be updated HOT 2
- K3d config file formating HOT 4
- Registry not reachable with fixed port HOT 2
- ctlptl v0.8.25 has broken cluster config with containerdConfigPatches HOT 3
- should kind be called as a library and not via exec HOT 2
- feat: another container image using ctlptl only HOT 1
- Update kind to 0.22.0 so Kubernetes 1.29 is available
- Support Kind v0.23.0
- Registry image is overridden when referencing registry from cluster HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctlptl.