Commit Graph

3877 Commits

Author SHA1 Message Date
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
aaa
119400ad71 Use constant blocks to define constants in pkg/kubectl 2019-04-11 12:16:29 -04: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
Kubernetes Prow Robot
aa52140928 Merge pull request #75346 from seans3/version-fix
kubectl: removes pkg/version dependency
2019-04-02 10:19:18 -07:00
Maciej Szulik
0341fa248a Fix create secret generic paths examples 2019-04-02 13:31:29 +02:00
Kubernetes Prow Robot
7d15d41eb8 Merge pull request #74159 from dlipovetsky/issue-73249-revise-parsetaint
Update v1.Taint parser to accept the form `key:effect` and `key=:effect-`
2019-04-02 01:36:35 -07:00
Youbing Li
c438d7b495 Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource 2019-04-02 00:49:40 -04:00
juanvallejo
ac4eebeeb5 allow for non-fatal errors when requesting and following multiple log streams 2019-04-01 13:05:59 -07:00
Kubernetes Prow Robot
afefc0b2c5 Merge pull request #73737 from odino/owner-references-in-create-job
Attaching owner references to jobs create via "--from=cronjob/xyz"
2019-03-30 18:22:45 -07:00
Kubernetes Prow Robot
f8cd676f09 Merge pull request #75210 from deads2k/scale-toleration
make kubectl scale work without a GET if a precodition isn't requested
2019-03-29 11:48:12 -07:00
Kubernetes Prow Robot
857cf88a6a Merge pull request #75165 from qingsenLi/k8s190308-fix-error
fix a mistake in get.go
2019-03-29 10:28:27 -07:00
Sean Sullivan
d4d6e19f1e kubectl: removes pkg/version dependency 2019-03-28 16:08:34 -07:00
Kubernetes Prow Robot
ffd8f3dacb Merge pull request #73255 from ds-ms/golint
Fix linting issues in pkg/kubectl/cmd/version
2019-03-22 17:02:08 -07:00
Sean Sullivan
2345831b82 kubectl: Removes dependency on util/interrupt by copying this code into kubectl 2019-03-20 11:39:57 -07:00
Kubernetes Prow Robot
046dcbd1ed Merge pull request #73917 from droslean/cleanup
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Jordan Liggitt
a6034e511c Restore username and password kubectl flags 2019-03-18 17:16:49 -04:00
Daniel Lipovetsky
ab6d901497 Update kubectl taint usage
- Explain that the value is optional.
- Add example of adding a taint with no value to kubectl taint usage.
2019-03-11 14:20:59 -07:00
Daniel Lipovetsky
f5ac239289 Copy changes from pkg/util/taints to pkg/kubectl/cmd/taint 2019-03-11 14:20:59 -07:00
Antoine Pelisse
eb904d8fa8 Add "fieldManager" to flag to PATCH/CREATE/UPDATE
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".

The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
David Eads
838721b0aa make kubectl scale work without a GET if a precodition isn't requested 2019-03-08 14:47:12 -05:00
Kubernetes Prow Robot
f229aa0ad6 Merge pull request #75044 from errordeveloper/move-cli-runtime-subpackages
Move printers & resources packages
2019-03-08 05:43:26 -08:00
qingsenLi
0c247c9305 fix a mistake 2019-03-08 17:48:18 +08:00
Ilya Dmitrichenko
6d7a9048b6 Move printers & resources packages
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
Tomas Nozicka
d9e511e261 Generated: Update Bazel 2019-03-07 11:13:10 +01:00
Tomas Nozicka
2e7242aac8 Fix kubectl run watches in waitForPod 2019-03-07 11:12:13 +01:00
Kubernetes Prow Robot
14b671b24b Merge pull request #71651 from Pingan2017/cronjob-add
add subcommand `kubectl create cronjob`
2019-03-07 01:07:00 -08:00
Maciej Szulik
ee7edb7765 Fix panic in kubectl cp command 2019-03-06 15:43:15 +01:00
Pingan2017
41536d7d02 add subcommand kubectl create cronjob 2019-03-06 15:12:21 +08:00
Kubernetes Prow Robot
caaad1be26 Merge pull request #72526 from justinsb/testdata_should_not_be_executable
Remove executable permission from testdata
2019-02-28 20:35:56 -08:00
Kubernetes Prow Robot
81e6407393 Merge pull request #74140 from Liujingfang1/kflag
add -k flag in cli-runtime and kubectl to process kustomization directories
2019-02-26 19:40:16 -08:00
Kubernetes Prow Robot
be8a9b9637 Merge pull request #74422 from liggitt/client-version-methods
Remove deprecated versionless client interface methods
2019-02-26 12:44:24 -08:00