k3s/pkg/kubectl/cmd
Kubernetes Submit Queue d067836030 Merge pull request #46852 from tnozicka/lookup-no-headers-safely
Automatic merge from submit-queue (batch tested with PRs 47470, 47260, 47411, 46852, 46135)

Lookup --no-headers flag safely in PrinterForCommand function

If this was invoked by a command that did not call AddPrinterFlags first, it ended up with fatal error on `GetFlagBool(cmd, "no-headers")`. This is causing a bug in OpenShift's command reusing this code and not actually having a flag `--no-headers`.
2017-06-14 12:52:24 -07:00
..
auth This change add nonResourceURL to kubectl auth cani 2017-05-31 11:25:29 +08:00
config Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
rollout Implement kubectl rollout history and undo for DaemonSet 2017-06-03 17:10:57 -07:00
set Merge pull request #46074 from zjj2wry/set-image 2017-05-30 03:47:02 -07:00
templates Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
testdata/edit support setElementOrder 2017-05-31 15:08:25 -07:00
testing Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
util Lookup --no-headers flag safely in PrinterForCommand function 2017-06-12 17:30:26 +02:00
BUILD Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
annotate.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
annotate_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
apiversions.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
apply.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_edit_last_applied.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_set_last_applied.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_test.go Merge pull request #46388 from lavalamp/whitlockjc-generic-webhook-admission 2017-06-02 23:37:42 -07:00
apply_view_last_applied.go Merge pull request #44207 from shiywang/hotfix 2017-04-24 20:25:48 -07:00
attach.go Move client/unversioned/remotecommand to client-go 2017-05-15 16:28:56 +03:00
attach_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
autoscale.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
certificates.go move category expansion out of restmapper 2017-03-27 13:54:05 -04:00
clusterinfo.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
clusterinfo_dump.go Merge pull request #44088 from xingzhou/kube-44069 2017-04-18 07:42:14 -07:00
clusterinfo_dump_test.go
cmd.go Fix missing __kubectl_parse_config 2017-06-11 07:12:23 +09:00
cmd_test.go Wrap HumanReadablePrinter in tab output unless explicitly asked not to 2017-06-05 22:06:38 -04:00
completion.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
convert.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
cp.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
cp_test.go
create.go refactor edit to remove cobra dependency and also make it reusable 2017-04-18 20:44:25 +08:00
create_clusterrole.go support NonResourceURL for kubectl create clusterrole 2017-05-26 10:07:44 +08:00
create_clusterrole_test.go Merge pull request #46265 from waseem/printers-genericity 2017-06-02 19:53:40 -07:00
create_clusterrolebinding.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_configmap.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_configmap_test.go
create_deployment.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_deployment_test.go Implement dynamic admission webhooks 2017-05-31 16:38:46 -07:00
create_namespace.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_namespace_test.go
create_pdb.go PDB MaxUnavailable: kubectl changes 2017-05-23 07:18:44 -07:00
create_quota.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_quota_test.go Fix test not use test flags 2017-05-24 10:14:00 +08:00
create_role.go support NonResourceURL for kubectl create clusterrole 2017-05-26 10:07:44 +08:00
create_role_test.go Merge pull request #46706 from CaoShuFeng/unit-create-role 2017-06-03 18:30:40 -07:00
create_rolebinding.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_rolebinding_test.go Supplement unit tests to `kubectl create rolebinding` command. 2017-03-29 16:36:22 +08:00
create_secret.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_secret_test.go
create_service.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_service_test.go add test to cover more in kubectl create service 2017-05-16 18:45:38 +08:00
create_serviceaccount.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_serviceaccount_test.go
create_test.go
delete.go orphan when kubectl delete --cascade=false 2017-05-11 09:11:07 -04:00
delete_test.go orphan when kubectl delete --cascade=false 2017-05-11 09:11:07 -04:00
describe.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
describe_test.go
drain.go kubectl drain errors if pod is already deleted 2017-06-09 17:05:43 -04:00
drain_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
edit.go refactor edit to remove cobra dependency and also make it reusable 2017-04-18 20:44:25 +08:00
edit_test.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
exec.go Merge pull request #43663 from shiywang/quato 2017-05-22 19:07:12 -07:00
exec_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
explain.go remove --api-version 2017-05-19 10:56:35 +08:00
expose.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
expose_test.go
get.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
get_test.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
help.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
label.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
label_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
logs.go **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
logs_test.go
options.go cmd/options: `kubectl options` writes to `out` stream 2017-05-28 11:23:44 -07:00
patch.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
patch_test.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
plugin.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
plugin_test.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
portforward.go Move client/unversioned/remotecommand to client-go 2017-05-15 16:28:56 +03:00
portforward_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
proxy.go kubectl: fixes issues #45736 and #45737 2017-05-22 18:57:11 -04:00
replace.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
replace_test.go
rollingupdate.go Merge pull request #46139 from monopole/removeDepOnPkgHelper 2017-05-23 19:42:59 -07:00
rollingupdate_test.go small change to clear 2017-05-11 20:09:31 +08:00
run.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
run_test.go Implement dynamic admission webhooks 2017-05-31 16:38:46 -07:00
scale.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
stop.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
taint.go Merge pull request #44740 from ravisantoshgudimetla/kubectl_taints_label_selector#44522 2017-05-05 09:25:02 -07:00
taint_test.go Changes to kubectl taint to respect selector flag 2017-04-28 10:28:26 -04:00
top.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_node.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_node_test.go hack/update-bazal.sh 2017-05-15 13:51:39 -07:00
top_pod.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_pod_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
top_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
version.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00