kubenix icon indicating copy to clipboard operation
kubenix copied to clipboard

Unable to remove the last defined resource with bulit-in deploy tool

Open pizzapim opened this issue 1 year ago • 0 comments

Let's say I have two simple resources:

{
  kubernetes.resources.pods.web1.spec.containers.nginx.image = "nginx";
  kubernetes.resources.pods.web2.spec.containers.nginx.image = "nginx";
}

Running this with nix run .#kubenix creates these resources. If I remove one line, say the web2 pod, it gets removed on the next run. However, if I then remove the line of the web1 pod, nothing happens and the pod is not removed.

pizzapim avatar Nov 28 '23 20:11 pizzapim