kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 45bdf707f0
Merge pull request #50140 from dixudx/kubectl_add_fieldSelector
Automatic merge from submit-queue (batch tested with PRs 53273, 55058, 55237, 50140). 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 field selector for kubectl get

**What this PR does / why we need it**:
When working in #50075, I found current kubectl did not support using `field-selector`.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #14129

**Special notes for your reviewer**:
/cc @janetkuo @kargakis 
/assign @derekwaynecarr @smarterclayton @bgrant0607 

**Release note**:

```release-note
add field selector for kubectl get
```
2017-11-07 09:39:49 -08:00
..
auth switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
config [cli] exit when Validate() return an error 2017-11-02 14:51:28 +08:00
resource add tests 2017-11-06 17:24:59 +08:00
rollout Switch to v1.List instead of allowing the conversion fn to be provided. 2017-10-18 09:30:46 -07:00
set rename selector to labelSelector 2017-11-06 14:30:20 +08:00
templates update BUILD files 2017-10-15 18:18:13 -07:00
testdata/edit update BUILD files 2017-10-15 18:18:13 -07:00
testing Remove all traces of federation 2017-10-26 13:37:37 -07:00
util Merge pull request #53679 from kow3ns/workloadsv1 2017-11-03 15:17:16 -07:00
alpha.go Implement kubectl alpha diff to diff resources 2017-10-23 10:49:02 -07:00
annotate_test.go Merge pull request #54445 from crimsonfaith91/rem 2017-10-31 20:10:21 -07:00
annotate.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
apiversions.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
apply_edit_last_applied.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
apply_set_last_applied.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
apply_test.go Merge pull request #54046 from hzxuzhonghu/kubectl-apply 2017-10-31 14:13:20 -07:00
apply_view_last_applied.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
apply.go add fieldSelector for kubectl get 2017-11-06 14:30:56 +08:00
attach_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
attach.go Switch to v1.List instead of allowing the conversion fn to be provided. 2017-10-18 09:30:46 -07:00
autoscale.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
BUILD Merge pull request #54846 from zjj2wry/remove-kubectl-dep 2017-11-06 06:34:40 -08:00
certificates.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
clusterinfo_dump_test.go
clusterinfo_dump.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
clusterinfo.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
cmd_test.go Move printing the valid resource types to a function 2017-10-30 23:45:45 -04:00
cmd.go Merge pull request #54406 from superbrothers/kubectl-override-short-flags 2017-10-31 22:32:54 -07:00
completion.go Update help/example for kubectl completion 2017-08-18 14:29:42 -07:00
convert_test.go add test for convert 2017-11-01 01:14:24 -07:00
convert.go Merge pull request #54056 from yuexiao-wang/modify-comment 2017-11-03 12:07:56 -07:00
cp_test.go This patch improve kubectl cp command from two aspects 2017-10-13 13:51:53 +08:00
cp.go This patch improve kubectl cp command from two aspects 2017-10-13 13:51:53 +08:00
create_clusterrole_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_clusterrole.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_clusterrolebinding_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_clusterrolebinding.go Merge pull request #48267 from superbrothers/clusterrole-flag-completion 2017-10-03 22:04:00 -07:00
create_configmap_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_configmap.go Add --append-hash flag to kubectl create configmap/secret 2017-08-28 14:17:47 -07:00
create_deployment_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_deployment.go Avoid fetching entire discovery tree when possible 2017-10-12 00:27:42 -04:00
create_namespace_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_namespace.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_pdb_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_pdb.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_quota_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_quota.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_role_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_role.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_rolebinding_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_rolebinding.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_secret_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_secret.go update .dockercfg content to config.json 2017-10-18 14:33:14 -04:00
create_service_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_service.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_serviceaccount_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_serviceaccount.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
delete_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
delete.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
describe_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
describe.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
diff_test.go Implement kubectl alpha diff to diff resources 2017-10-23 10:49:02 -07:00
diff.go diff: Propragate errors when diffing 2017-10-30 14:16:36 -07:00
drain_test.go remove created-by annotation 2017-10-30 12:49:44 -07:00
drain.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
edit_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
edit.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
exec_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
exec.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
explain.go Move printing the valid resource types to a function 2017-10-30 23:45:45 -04:00
expose_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
expose.go Merge pull request #47636 from xiangpengzhao/some-cleanup 2017-10-18 20:47:10 -07:00
help.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
label_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
label.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
logs_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
logs.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
options.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
patch_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
patch.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
plugin_test.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
plugin.go exit with correct exit code on plugin failure 2017-10-18 19:01:29 -04:00
portforward_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
portforward.go Merge pull request #50229 from tcharding/kubectl-portforward 2017-08-23 03:36:03 -07:00
proxy.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
replace_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
replace.go should check and return err when visit failure 2017-11-02 20:15:34 +08:00
rollingupdate_test.go small change to clear 2017-05-11 20:09:31 +08:00
rollingupdate.go Merge pull request #54024 from pwittrock/resource-validation-deps 2017-10-20 21:31:10 -07:00
run_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
run.go Avoid fetching entire discovery tree when possible 2017-10-12 00:27:42 -04:00
scale.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
taint_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
taint.go rename selector to labelSelector 2017-11-06 14:30:20 +08:00
top_node_test.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_node.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_pod_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
top_pod.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_test.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top.go Merge pull request #50620 from juanvallejo/jvallejo/update-kubectl-top-validation 2017-08-21 08:26:23 -07:00
version.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00