terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

Kubernetes task deletion logic is flawed

Open 0x2b3bfa0 opened this issue 1 year ago • 0 comments

Extracted from https://github.com/iterative/terraform-provider-iterative/pull/645#discussion_r952928197

It's either a bug or some weird workaround @0x2b3bfa0 forgot to document. Sounds like a bug.

https://github.com/iterative/terraform-provider-iterative/blob/7b27c579a56813c6f48627fe6da777d63f46808b/task/k8s/task.go#L205-L207

Should read t.Resources.Job.Delete instead of t.Resources.Job.Create but changing it breaks the tests.

0x2b3bfa0 avatar Aug 29 '22 10:08 0x2b3bfa0