Commit Graph

3996 Commits

Author SHA1 Message Date
Jordan Liggitt
cf3e75de70 Remove internal object printing from kubectl 2019-06-28 10:54:50 -07:00
Sean Sullivan
4a95e689c3 Updated import statements to reflect move to staging 2019-06-28 09:53:20 -07:00
Kubernetes Prow Robot
4745946525 Merge pull request #79345 from liggitt/kubectl-printing
Add meta Table tests, fix --watch-only with single item
2019-06-27 20:09:33 -07:00
Mike Dame
76d7f58c06 update vendor 2019-06-25 15:28:52 -04:00
Mike Dame
a507ca338a Move pkg/util/rbac to staging and update refs 2019-06-25 15:25:23 -04:00
Jordan Liggitt
5d508760e3 Fix --watch-only of a single item with table output 2019-06-24 09:34:15 -07:00
Jordan Liggitt
2b65c74b94 Add kubectl get/list/watch tests for table output 2019-06-24 08:49:28 -07:00
Jordan Liggitt
ead86cf350 Test humanreadable table output 2019-06-24 08:34:36 -07:00
Jordan Liggitt
fe339d2420 Fix short buffer error in get test 2019-06-24 08:27:14 -07:00
Mike Dame
084f7f35ac hack/update-vendor.sh 2019-06-20 20:37:38 -04:00
Mike Dame
5f3818230d Move pkg/util/printers to staging and update refs 2019-06-20 20:35:38 -04:00
Peter Swica
123fa89f21 Moved pkg/kubectl/util/term, pkg/kubectl/util/templates, pkg/kubectl/util/interrupt, and pkg/kubectl/util/interrupt to staging 2019-06-20 15:50:16 -04:00
Kubernetes Prow Robot
ad0904c335 Merge pull request #79123 from tedyu/wait-all
Redundant call to WithAll in NewWaitFlags
2019-06-19 14:57:02 -07:00
Kubernetes Prow Robot
12ff2fe3f5 Merge pull request #78887 from joshmsamuels/master
Inverted error handling to ensure server-side apply does not fall bac…
2019-06-18 10:10:21 -07:00
Ted Yu
df08310d6b Redundant call to WithAll in NewWaitFlags 2019-06-17 20:30:58 -07:00
Kubernetes Prow Robot
af9d54db76 Merge pull request #79000 from pswica/415
kubectl config set hangs on some invalid property names #415
2019-06-15 08:52:51 -07:00
Josh Samuels
1ec87e2220 Updated code with gofmt 2019-06-13 19:27:06 -07:00
Peter Swica
ae386f3143 kubectl config set hangs on some invalid property names #415 2019-06-13 20:29:39 -04:00
Josh Samuels
62b8b1702c Replaced klog with an error wrapper 2019-06-12 23:15:13 -07:00
Josh Samuels
4b29036db9 Inverted error handling to ensure server-side apply does not fall back on client-side apply when there is an error 2019-06-10 20:33:59 -07:00
Peter Swica
6a3ac35b54 added defer keyword to wg.Done() in logs.go 2019-06-09 22:00:33 -04:00
Ji Shan Xing
d2896d6198 74900, kubectl logs selector supports tail=-1 2019-06-02 08:48:21 -04:00
Kubernetes Prow Robot
48f2be9cff Merge pull request #76713 from prksu/remove-exec-deprecated-pod-flag
Remove kubectl exec deprecated -p/--pod flag
2019-06-01 01:02:19 -07:00
Kubernetes Prow Robot
834db16c9b Merge pull request #75202 from obitech/fix_linting_kubectl_apply
Fix linting kubectl apply
2019-05-31 17:44:21 -07:00
Kubernetes Prow Robot
3d871df19a Merge pull request #75920 from artmello/kubectl_top_sortby
Add --sort-by option to kubectl top command
2019-05-31 07:13:11 -07:00
wangqingcan
52f3380ef3 change preempting to PreemptionPolicy 2019-05-31 12:42:05 +08:00
wangqingcan
5c9438c691 non-preempting-priorityclass
Co-authored-by: Vallery Lancey <vallery@zeitgeistlabs.io>
Co-authored-by: Tan shanshan <tan.shanshan@zte.com.cn>
2019-05-31 12:37:07 +08:00
Kubernetes Prow Robot
38afd9815e Merge pull request #78445 from soltysh/remove_job_scale
Remove kubectl scale job
2019-05-30 02:24:33 -07:00
Maciej Szulik
85d8b0ce3f Remove kubectl scale job 2019-05-28 15:24:38 +02:00
yameiwang
23b7d5e606 fix some spelling error 2019-05-25 06:51:31 +08:00
Ahmad Nurus S
a59b476805 Remove kubectl exec deprecated -p/--pod flag 2019-05-23 20:43:36 +07:00
obitech
ae41c0202b Revert change on ApplyOptions
Change back `Options` to `ApplyOptions`, as well as remove
`pkg/kubectl/cmd/apply/apply.go` from `.golint_failures` again
2019-05-23 13:30:11 +02:00
obitech
994d7fc90d Fix golint issues in pkg/kubectl/cmd/apply 2019-05-23 13:30:11 +02:00
Quan Tian
efcca8f357 Fix missing pod name for kubectl attach and exec
The pod name is missing in suggested cmd usage when executing kubectl attach
and exec:
"Defaulting container name to master.
 Use 'kubectl describe pod/ -n default' to see all of the containers in this pod."

The PodName is empty in func Complete as the attached Pod isn't populated yet,
causing suggested cmd usage imcomplete. This patch renders PodName after it is
populated.
2019-05-17 09:58:57 -07:00
Kubernetes Prow Robot
6dfc996156 Merge pull request #77423 from apelisse/rollout-restart-other-workloads
Implement rollout restart for statefulset and daemonset
2019-05-16 16:27:06 -07:00
Antoine Pelisse
145935d815 Implement rollout restart for statefulset and daemonset 2019-05-16 08:50:42 -07:00
Kubernetes Prow Robot
74469297fe Merge pull request #77589 from soltysh/fix_exec_use
Update kubectl exec use to put flags in the right place
2019-05-14 03:51:13 -07:00
Kubernetes Prow Robot
6d94a23f30 Merge pull request #77542 from yanghaichao12/dev0507
Refactor:move clean method to suitable place
2019-05-09 14:14:00 -07:00
Kubernetes Prow Robot
c948cc8088 Merge pull request #77405 from sftim/20190503_kubectl_rename_context_typo_fix
Fix kubectl rename-context description grammar
2019-05-09 14:13:47 -07:00
Daniel (Shijun) Qian
5268f69405 fix duplicated imports of k8s code (#77484)
* fix duplicated imports of api/core/v1

* fix duplicated imports of client-go/kubernetes

* fix duplicated imports of rest code

* change import name to more reasonable
2019-05-08 10:12:47 -07:00
Kubernetes Prow Robot
7673b2d161 Merge pull request #72999 from nuistzyw/word
Fix a spelling error
2019-05-07 20:44:32 -07:00
Maciej Szulik
c1cd89f5cd Update kubectl exec use to put flags in the right place 2019-05-07 21:47:03 +02:00
yanghaichao12
e21ce73fba Refactor:move clean method to suitable place 2019-05-07 14:23:30 -04:00
Kubernetes Prow Robot
19b83c3526 Merge pull request #73230 from Fedosin/cli_exec_auth
Allow to define exec credential plugin config options from kubectl
2019-05-06 11:09:43 -07:00
SataQiu
d413e3f18d fix golint failures of pkg/kubectl/cmd/help pkg/kubectl/cmd/proxy pkg/kubectl/cmd/util/openapi 2019-05-05 23:40:09 +08:00
Tim Bannister
ea37acfbc4 Fix kubectl rename-context description grammar 2019-05-03 16:48:55 +01:00
Mike Fedosin
a556e4fcd1 Allow to define exec credential plugin config options from kubectl
This commit adds support of setting config options to the exec plugin
from cli.

Next options are added:
  * --exec-command new command for the exec credential plugin
  * --exec-api-version API version of the exec credential plugin.
  * --exec-arg new arguments for the exec credential plugin command
  * --exec-env add, update or remove environment values for the exec credential plugin
2019-05-03 14:08:03 +02:00
Kubernetes Prow Robot
3b5e2285b0 Merge pull request #77112 from SataQiu/fix-golint-kubectl-20190427
Fix some golint failures of pkg/kubectl/cmd/attach pkg/kubectl/cmd/autoscale
2019-05-01 20:42:44 -07:00
Mitch Kelley
0ccfdf5cc3 small typo 2019-04-30 20:41:29 -04:00
Kubernetes Prow Robot
1e015237c7 Merge pull request #77267 from liggitt/kubectl-set-local-namespace
Preserve existing namespace when using kubectl set --local
2019-04-30 16:11:21 -07:00