kubernetes/pkg/controller
Kubernetes Submit Queue f37cffcf4e Merge pull request #43239 from enisoc/kubectl-controller-ref
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
```
2017-03-17 14:25:38 -07:00
..
bootstrap Small fix to the bootstrap TokenCleaner 2017-03-03 20:49:18 -08:00
certificates react to informer updates 2017-02-13 09:18:32 -05:00
cloud react to informer updates 2017-02-13 09:18:32 -05:00
cronjob Generated changes for cleaning batch/v2alpha1 2017-03-06 12:26:52 +01:00
daemon kubectl: respect DaemonSet strategy parameters for rollout status 2017-03-09 20:02:52 +01:00
deployment Merge pull request #43239 from enisoc/kubectl-controller-ref 2017-03-17 14:25:38 -07:00
disruption react to informer updates 2017-02-13 09:18:32 -05:00
endpoint react to informer updates 2017-02-13 09:18:32 -05:00
garbagecollector construction of GC should not fail for restmapper error caused by tpr 2017-03-16 14:19:17 -07:00
job react to informer updates 2017-02-13 09:18:32 -05:00
namespace Merge pull request #41652 from ncdc/shared-informers-13-namespace 2017-02-23 09:36:38 -08:00
node Fixed incorrect result of getMinTolerationTime. 2017-03-12 20:21:14 +08:00
podautoscaler HPA Controller: Use Custom Metrics API 2017-03-01 10:21:50 -05:00
podgc react to informer updates 2017-02-13 09:18:32 -05:00
replicaset RC/RS: Fix ignoring inactive Pods. 2017-03-06 15:51:53 -08:00
replication RC/RS: Fix ignoring inactive Pods. 2017-03-06 15:51:53 -08:00
resourcequota Switch resourcequota controller to shared informers 2017-02-14 12:20:27 -05:00
route Switch route controller to shared informers 2017-02-13 15:21:33 -05:00
service Switch scheduler to use generated listers/informers 2017-02-23 09:57:12 -05:00
serviceaccount Switch serviceaccounts controller to generated shared informers 2017-02-14 14:21:14 -05:00
statefulset StatefulSet: Check that ControllerRef UID matches. 2017-03-06 10:36:41 -08:00
ttl react to informer updates 2017-02-13 09:18:32 -05:00
volume Merge pull request #41306 from gnufied/implement-interface-bulk-volume-poll 2017-03-03 10:54:38 -08:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD Update bazel 2017-02-27 06:48:13 -05:00
client_builder.go Make controller-manager resilient to stale serviceaccount tokens 2017-02-17 23:59:00 -05:00
controller_ref_manager.go Merge pull request #42175 from enisoc/controller-ref-dep 2017-03-07 20:44:36 -08:00
controller_utils_test.go Deployment: filter out old RSes that are deleted or with non-zero replicas before cleanup 2017-02-16 14:48:10 -08:00
controller_utils.go DaemonSet: Add ControllerRef on all created Pods. 2017-03-07 16:42:28 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS Add janetkuo to approvers for controllers 2017-02-08 14:37:25 -08:00