kubernetes-client / python-base

Apache License 2.0
70 stars 185 forks source link

ReplicationController delete propagation policy #242

Closed hedrox closed 3 years ago

hedrox commented 3 years ago

When running the function test_replication_controller_apis from dynamic/test_client.py, the test deletes the replication controller, but not the underlying pods. I think this happens because by default the replication controller orphans the pods when deleted, and a solution could be to set the propagation policy to background or foreground.

If you want I can submit a PR here and then also in kubernetes-client/python, because there are replication controller tests in there that suffer from the same issue.

roycaihw commented 3 years ago

Thanks for reporting! I didn't expect the default behavior to be orphan the pods :( It would be awesome if you could open PRs in the repos to fix those tests.

/assign @hedrox