![]() Automatic merge from submit-queue kubectl: Use v1.5-compatible ownership logic when listing dependents. **What this PR does / why we need it**: This restores compatibility between kubectl 1.6 and clusters running Kubernetes 1.5.x. It introduces transitional ownership logic in which the client considers ControllerRef when it exists, but does not require it to exist. If we were to ignore ControllerRef altogether (pre-1.6 client behavior), we would introduce a new failure mode in v1.6 because controllers that used to get stuck due to selector overlap will now make progress. For example, that means when reaping ReplicaSets of an overlapping Deployment, we would risk deleting ReplicaSets belonging to a different Deployment that we aren't about to delete. This transitional logic avoids such surprises in 1.6 clusters, and does no worse than kubectl 1.5 did in 1.5 clusters. To prevent this when kubectl 1.5 is used against 1.6 clusters, we can cherrypick this change. **Which issue this PR fixes**: Fixes #43159 **Special notes for your reviewer**: **Release note**: ```release-note ``` |
||
---|---|---|
.. | ||
util | ||
BUILD | ||
deployment_controller_test.go | ||
deployment_controller.go | ||
OWNERS | ||
progress_test.go | ||
progress.go | ||
recreate_test.go | ||
recreate.go | ||
rollback.go | ||
rolling_test.go | ||
rolling.go | ||
sync_test.go | ||
sync.go |