kubernetes/pkg
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
..
api Add a test that verifies all structs have protobuf tags 2017-03-17 00:29:14 -04:00
apimachinery/tests API 2017-02-28 23:05:40 -08:00
apis Merge pull request #42991 from jsafrane/fix-default-beta 2017-03-14 13:52:41 -07:00
auth Update authn/authz owners and reviewers 2017-01-27 08:55:44 -05:00
bootstrap/api kubeadm: Implement the kubeadm token command fully and move it out of the experimental subsection 2017-02-27 12:56:03 +02:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
client Use Histogram instead of Summary 2017-03-10 07:24:38 +01:00
cloudprovider Merge pull request #42444 from jingxu97/Mar/deleteVolume 2017-03-10 12:50:24 -08:00
controller Merge pull request #43239 from enisoc/kubectl-controller-ref 2017-03-17 14:25:38 -07:00
conversion Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
credentialprovider Merge pull request #40142 from colemickens/colemickens-acr-login-server 2017-01-25 00:40:02 -08:00
features Move taint eviction feature flag to feature-gates 2017-03-08 10:04:18 +01:00
fieldpath Merge pull request #34533 from yuexiao-wang/fix-commends 2017-01-30 09:05:22 -08:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated update-all.sh 2017-03-16 15:58:30 -07:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
kubectl kubectl: Use v1.5-compatible ownership logic when listing dependents. 2017-03-16 12:28:38 -07:00
kubelet Setup fluentd-ds-ready label in startup script not in kubelet 2017-03-16 13:18:31 +01:00
kubemark kubemark: enable CRI in the hollow kubelet 2017-03-09 09:52:17 -08:00
labels add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
master Ensure patched objects are defaulted correctly 2017-03-10 22:07:10 -05:00
metrics Update to use proxy subresource consistently 2017-02-13 22:05:00 -05:00
printers Merge pull request #43239 from enisoc/kubectl-controller-ref 2017-03-17 14:25:38 -07:00
probe Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
proxy kube-proxy/iptables: use a type for endpoints info map 2017-03-07 13:51:58 -06:00
quota Regenerate everything 2017-03-02 10:23:58 +01:00
registry Fix polarity of a test in NodePort allocation 2017-03-16 17:19:26 -07:00
routes Update to use proxy subresource consistently 2017-02-13 22:05:00 -05:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security Addition of ScaleIO Kubernetes Volume Plugin 2017-03-03 15:47:19 -05:00
securitycontext securitycontext: move docker-specific logic into kubelet/dockertools 2017-01-27 12:25:46 -08:00
serviceaccount Move Private Key parsing to k8s.io/client-go/util/cert 2017-02-03 17:41:34 -08:00
ssh use apimachinery packages instead of client-go packages 2017-01-13 14:04:54 -05:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util pkg/util/flock: Fix the flock so it actually locks. 2017-03-13 14:24:59 -07:00
version genericapiserver: cut off kube pkg/version dependency 2017-01-17 12:34:05 +01:00
volume Merge pull request #42949 from wenlxie/master 2017-03-16 02:41:11 -07:00
watch add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
BUILD Regenerate everything 2017-03-02 08:56:26 +01:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00