kubernetes/pkg
Kubernetes Submit Queue 3ef674188d
Merge pull request #56864 from juanvallejo/jvallejo/add-selector-kubectl-drain
Automatic merge from submit-queue (batch tested with PRs 55751, 57337, 56406, 56864, 57347). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add pod-selector kubectl drain

**Release note**:
```release-note
Added the ability to select pods in a chosen node to be drained, based on given pod label-selector
```

This patch adds the ability to select pods in a chosen node to be drained, based on given pod label-selector. Related downstream issue: https://github.com/openshift/origin/issues/17554

Further, it removes explicit, specific, pod-controller check. The `drain` command currently fails if a pod has a controller of a `kind` [not explicitly handled in the command itself](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/drain.go#L331). This causes `drain` to be unusable if a node contains pods managed by third-party, or "unknown" controllers.

Based on [this comment](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/drain.go#L353), the expectation was to fail if a pod's controller was not found for whatever reason. I believe that the `drain` command should not care about the existence of a pod controller. It should only care whether a pod has one, and act according to that controller kind. This solves a downstream bug: https://github.com/openshift/origin/issues/17563

cc @fabianofranz @deads2k @kubernetes/sig-cli-misc
2017-12-18 18:50:45 -08:00
..
api Merge pull request #54174 from thockin/gcr-vanity 2017-12-18 14:45:45 -08:00
apis Merge pull request #54530 from sjenning/validate-state-transition 2017-12-18 17:45:43 -08:00
auth Remove unused directories. 2017-11-24 02:37:32 -08:00
bootstrap/api Validate usage strings when creating bootstrap tokens via kubeadm 2017-11-13 09:37:20 +08:00
capabilities update BUILD files 2017-10-15 18:18:13 -07:00
client generated 2017-11-22 18:40:09 +00:00
cloudprovider Merge pull request #56406 from stewart-yu/cloudprovide-refactorfunction 2017-12-18 18:50:42 -08:00
controller Merge pull request #56872 from davidz627/logImprovement 2017-12-17 05:33:41 -08:00
credentialprovider fix awsStandardDNSSuffix 2017-11-15 16:39:48 +08:00
features Merge pull request #55977 from ConnorDoyle/cpu-manager-feature-gate-default-on 2017-12-17 08:26:45 -08:00
fieldpath Validate key subscript for metadata.annotations and metadata.labels separately 2017-11-22 15:50:40 -08:00
generated generated 2017-11-22 18:40:09 +00:00
kubeapiserver Merge pull request #56691 from sttts/sttts-fix-runtime-config-docs 2017-12-18 00:29:29 -08:00
kubectl Merge pull request #56864 from juanvallejo/jvallejo/add-selector-kubectl-drain 2017-12-18 18:50:45 -08:00
kubelet Merge pull request #57309 from CaoShuFeng/hasHostPortConflicts 2017-12-18 14:45:47 -08:00
kubemark Move ungated 'alpha' KubeletConfiguration fields and self-registration fields to KubeletFlags 2017-11-15 17:47:10 -08:00
master Merge pull request #54304 from frodenas/repair-events 2017-12-15 02:04:37 -08:00
printers Merge pull request #57202 from php-coder/fix_vsphere_volume_describer 2017-12-17 08:26:50 -08:00
probe Test probe for redirect endpoint 2017-12-13 14:15:24 -08:00
proxy Merge pull request #56685 from m1093782566/fix-nodeport 2017-12-18 14:45:42 -08:00
quota add deads to quota owner 2017-12-18 09:39:25 -05:00
registry Merge pull request #56409 from porridge/trim-trailing-newline 2017-12-15 04:33:46 -08:00
routes Update Dashboard add-on to version 1.8.0 2017-11-28 17:53:02 +01:00
security Merge pull request #56774 from CaoShuFeng/mustrunas 2017-12-15 06:31:42 -08:00
securitycontext pkg/securitycontext/util.go(InternalDetermineEffectiveSecurityContext): remove unused function. 2017-11-15 17:50:03 +01:00
serviceaccount typo wrong, not "namespace", but "secretName" 2017-12-15 09:27:52 +08:00
ssh update BUILD files 2017-10-15 18:18:13 -07:00
util Addressing Comments from Code Review 2017-11-29 15:50:23 +01:00
version Capture git export-subst strings in version.sh for 'git archive' use. 2017-11-09 16:36:27 -08:00
volume Merge pull request #57293 from linyouchong/linyouchong-20171218 2017-12-18 15:47:27 -08:00
watch update BUILD files 2017-10-15 18:18:13 -07:00
.import-restrictions Add import-boss directives 2017-10-13 07:06:22 -04:00
BUILD Merge pull request #56334 from mindprince/dead-packages 2017-12-15 22:47:23 -08:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00