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
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
Jordan Liggitt
2fae80c27c
Preserve existing namespace when using kubectl set --local
2019-04-30 10:39:29 -04:00
Kubernetes Prow Robot
b95fca093d
Merge pull request #76788 from soltysh/tar-fixes
...
Clean links handling in cp's tar code
2019-04-30 07:05:52 -07:00
Sean Sullivan
bbc2886a3b
Rename NewHumanReadablePrinter to NewTablePrinter
2019-04-29 11:42:04 -07:00
SataQiu
6f7690e139
fix some golint failures of pkg/kubectl/cmd/attach pkg/kubectl/cmd/autoscale
2019-04-29 17:25:34 +08:00
Kubernetes Prow Robot
e5dd4521a8
Merge pull request #73664 from prksu/kubectl-exec-resource-name
...
Kubectl exec support resource/name format
2019-04-27 09:06:21 -07:00
Maciej Szulik
7962231a80
Properly handle links in tar
2019-04-26 22:19:44 +02:00
Tim Allclair
a867b399af
Test kubectl cp escape
2019-04-26 22:19:39 +02:00
Kubernetes Prow Robot
7511e93371
Merge pull request #71906 from Pingan2017/remove-deprecatedAlias
...
remove unused func deprecatedAlias
2019-04-25 10:18:48 -07:00
Ahmad Nurus S
0c39d7d380
Kubectl exec support resource/name format
2019-04-25 17:44:01 +07:00
Kubernetes Prow Robot
36e06bbb1f
Merge pull request #77010 from soltysh/fix_cp
...
Check error when copying from pod
2019-04-24 14:21:31 -07:00
Maciej Szulik
12066b069c
Check error when copying from pod
2019-04-24 15:30:07 +02:00
Maciej Szulik
825cb677bf
Make the error slightly more readable
2019-04-24 15:14:17 +02:00
Kubernetes Prow Robot
b1fea1bdf5
Merge pull request #76662 from stuart-mclaren/version-fix
...
Fix kubectl version --client=true
2019-04-20 15:39:44 -07:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Kubernetes Prow Robot
e8bf254db8
Merge pull request #76724 from xichengliudui/constant-block-kubectl
...
Use constant blocks to define constants in pkg/kubectl
2019-04-17 22:58:36 -07:00
Maciej Szulik
1c71a2312b
Warn to stderr when we encounter PathError listing plugins
2019-04-17 15:16:31 +02:00
Kubernetes Prow Robot
90b9ccf7f4
Merge pull request #74447 from WanLinghao/builder_ptr_replace
...
Remove and replace ptr functions
2019-04-16 16:19:38 -07:00
Stuart McLaren
d4ee919fb5
Fix kubectl version --client=true
...
Getting the client version fails if the kubeconfig is invalid:
$ kubectl version --client=true
Error in configuration:
* unable to read client-cert .../client.crt: no such file or directory
* unable to read client-key .../client.key: no such file or directory
* unable to read certificate-authority .../ca.crt: no such file or directory
Update to match behaviour on v1.10.13 and earlier:
$ kubectl version --client=true
Client Version: version.Info{Major:"1", ...}
2019-04-16 18:56:53 +01:00
aaa
119400ad71
Use constant blocks to define constants in pkg/kubectl
2019-04-11 12:16:29 -04:00
Pingan2017
c1243ddd05
remove unused func deprecatedAlias
2019-04-11 10:17:49 +08:00
WanLinghao
7fbd71835e
'kubectl auth can-i` command would not hint user when they try to access
...
some resource out of scope. For example, try get namespace inside defaut namespace.
It would be reject by api-server but `kubectl auth can-i get namespace --namespace=default`
would give a `yes`. After this patch, a warning info would be given.
For more detail, please refer issue #75950
2019-04-10 13:12:45 +08:00
Kubernetes Prow Robot
b8b7ab39ec
Merge pull request #76272 from liggitt/cleanup-legacy-printers
...
Remove legacy table printing and decoding
2019-04-08 22:31:17 -07:00
WanLinghao
d0138ca3fe
This commit does two things in pkg package:
...
1. Remove unused ptr functions.
2. Replace ptr functions with k8s.io/utils/pointer
2019-04-09 10:56:35 +08:00
Kubernetes Prow Robot
3409a5362a
Merge pull request #76062 from apelisse/rollout-restart
...
Create `kubectl rollout restart deployment/$deployment` to do a rolling restart
2019-04-08 14:40:44 -07:00
Jordan Liggitt
c758f0af0a
Remove legacy table printing and decoding
2019-04-08 12:31:38 -04:00
Kubernetes Prow Robot
c082ace102
Merge pull request #76161 from liggitt/kubectl-watch-table
...
use server-side printing in `kubectl get -w`
2019-04-08 08:58:48 -07:00
Antoine Pelisse
1bf99e2e4e
Create `kubectl rollout restart deployment/$deployment` to do a rolling restart
2019-04-06 21:14:40 -07:00
Kubernetes Prow Robot
9c2df998af
Merge pull request #75820 from YoubingLi/bugfix
...
Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource
2019-04-06 11:00:27 -07:00
Kubernetes Prow Robot
eaa506c0b4
Merge pull request #75516 from seans3/interrupt-fix
...
kubectl: Removes dependency on util/interrupt by copying this code into kubectl
2019-04-05 16:46:29 -07:00
Jordan Liggitt
53e55d314a
Make sorting printer sort tables in place
2019-04-05 01:20:06 -04:00
Jordan Liggitt
7013827309
Stop special-casing tables in kubectl get to print 'No resources found'
2019-04-05 01:20:01 -04:00
Jordan Liggitt
1c3adedf1c
Request and handle server-side printing when watching with kubectl
2019-04-05 01:20:01 -04:00
Jordan Liggitt
34e9d80b87
Refactor kubectl table printing for watch
...
Warn if sorting and watching are requested together
2019-04-05 01:19:57 -04:00
Jordan Liggitt
135d2f197a
Add unit test for sort-by table output
2019-04-05 01:19:57 -04:00
Jordan Liggitt
a347826b4f
Add unit test for empty table results
2019-04-05 01:19:57 -04:00
Clayton Coleman
7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
...
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Kubernetes Prow Robot
d99f49d2a7
Merge pull request #76021 from soltysh/fix_create_docs
...
Fix create secret generic paths examples
2019-04-02 11:49:55 -07:00
Kubernetes Prow Robot
c23115dff9
Merge pull request #75903 from juanvallejo/jvallejo/allow-non-fatal-errors-when-fetching-pod-logs
...
allow for non-fatal errors when requesting and following multiple log streams
2019-04-02 11:49:32 -07:00