terraform-provider-iterative
terraform-provider-iterative copied to clipboard
Kubernetes task deletion logic is flawed
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.