Commit Graph

5670 Commits

Author SHA1 Message Date
Sean Sullivan
6274ef995f Move pkg/kubectl/util/fieldpath to staging 2019-06-27 09:52:26 -07:00
Sean Sullivan
85e83512b0 Updated BUILD dependency to use staging 2019-06-26 14:53:06 -07:00
Sean Sullivan
d31972a0e5 Removes unused BUILD file 2019-06-26 14:28:53 -07:00
Sean Sullivan
541cb300c7 Move pkg/kubectl/util/certificate to staging 2019-06-26 14:28:53 -07:00
Sally O'Malley
c4cb265e5c
Updates to dependencies including go.mod, go.sum, and BUILD files 2019-06-26 15:59:30 -04:00
Sally O'Malley
7e253e1d0e
Move pkg/kubectl/util/resource to staging 2019-06-26 15:59:30 -04:00
Sally O'Malley
7ac89bfe4c
Updates to dependencies including go.mod, go.sum, and BUILD files 2019-06-26 08:51:27 -04:00
Sally O'Malley
8d70e1b25a
Removes unused BUILD file 2019-06-26 08:51:27 -04:00
Sally O'Malley
acd3b91f9e
Move pkg/kubectl/util/qos to staging 2019-06-26 08:51:27 -04:00
Peter Swica
d8362f7508 Moving pkg/kubectl/util/storage to staging 2019-06-26 00:11:16 -04:00
Sean Sullivan
949060dac0 Dependency changes 2019-06-25 15:22:20 -07:00
Sean Sullivan
f7a443f316 Update imports after moving util/event to staging 2019-06-25 14:57:00 -07:00
Sean Sullivan
d4a5b75a67 Move pkg/kubectl/util/event into staging 2019-06-25 14:55:21 -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
Sean Sullivan
e397b04ca1 Update go.mod, go.sum, and BUILD dependencies 2019-06-25 12:04:06 -07:00
Sean Sullivan
ff176aac2f Update import statements to reference code moved to staging 2019-06-25 12:02:26 -07:00
Sean Sullivan
7aa214d2c3 Move pkg/kubectl/util/hash to staging 2019-06-25 12:02:26 -07:00
Sean Sullivan
6f120f9660 Updated publishing dependencies rules 2019-06-24 12:42:54 -07:00
Sean Sullivan
2c536a2c33 Updates to dependencies including go.mod, go.sum, and BUILD files 2019-06-24 12:36:33 -07:00
Sean Sullivan
11c5bd1b2f Updated imports for util/deployment 2019-06-24 12:32:59 -07:00
Sean Sullivan
c3f6418b59 Moved pkg/kubectl/util/deployment to staging 2019-06-24 12:32:13 -07: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
Sally O'Malley
d6af3f2653
Update go.mod, go.sum, and BUILD file dependencies 2019-06-24 08:17:47 -04:00
Sally O'Malley
a2691d8e93
Removes unused BUILD file 2019-06-24 08:17:47 -04:00
Sally O'Malley
4c58308b4e
Move pkg/kubectl/util/podutils to staging 2019-06-24 08:17:47 -04:00
Kubernetes Prow Robot
5f88b0d187
Merge pull request #79200 from damemi/kubectl-printers
Move pkg/kubectl/util/printers to staging
2019-06-21 18:53:03 -07:00
Kubernetes Prow Robot
baa5293890
Merge pull request #79230 from dims/move-to-github.com/go-bindata/go-bindata
updating github.com/go-bindata/go-bindata to v3.1.1
2019-06-21 10:03:48 -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
Davanum Srinivas
df3f9f1047
updating github.com/go-bindata/go-bindata to v3.1.1
Change-Id: I66c047a4e5e72632042f43a9f4b33ab9f5bf7ef1
2019-06-20 11:30:30 -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
Kubernetes Prow Robot
14b6dce953
Merge pull request #78825 from pswica/logs-wg
Adding defer wg.Done() Statement To logs.go
2019-06-14 20:46:49 -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
aaa
3025b3097a Fixed some minor errors in openapi
update pull request
2019-06-03 21:45:48 -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
Vladimir Vivien
8e0cf65310 Enforce pod security policy for CSI inline 2019-05-29 15:38:21 -04: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
274876ef9a
Merge pull request #77448 from smarterclayton/api_serve
Support meta.k8s.io/v1 Table and PartialObjectMetadata requests to the API
2019-05-10 21:30:37 -07:00
Kubernetes Prow Robot
33f44a29b8
Merge pull request #77617 from cmluciano/cml/extensiontonetworking
ingress: migrate extensions.Ingress to networking.Ingress
2019-05-10 17:56:12 -07:00
Clayton Coleman
33a3e325f7
API server should offer metav1 Table/Partial transforms
Now that internal types are equivalent, allow the apiserver to serve
metav1 and metav1beta1 depending on the client. Test that in the
apiserver integration test and ensure we get the appropriate responses.

Register the metav1 type in the appropriate external locations.
2019-05-10 15:29:07 -04:00
Christopher M. Luciano
d9e4933da3
ingress: migrate extensions.Ingress to networking.Ingress
This is a find/replace within my editor. I made the import
networkingv1beta1 so that it will be easier to replace for
the future v1 migration.

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2019-05-10 13:18:53 -04: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
aafac3cfca
Merge pull request #77380 from SataQiu/fix-golint-apis-20190503
Fix golint failures of pkg/apis/scheduling, pkg/apis/storage/util, etc
2019-05-06 15:30:32 -07: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
SataQiu
ed04c5f459 fix golint failures of pkg/apis/scheduling pkg/apis/storage/util pkg/apis/storage/v1/util pkg/apis/storage/v1beta1/util 2019-05-03 15:54:24 +08:00
danielqsj
7e4dbbac40 Fix describe error of Successful Job History Limit 2019-05-03 00:20:42 +08: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
Arthur Mello
b61e46f1ce Add --sort-by option to kubectl top command
- Add ability to sort kubectl top nodes/pod by either CPU or memory usage
2019-04-24 08:24:52 -03:00
Kubernetes Prow Robot
0ca27bfee2
Merge pull request #76139 from SataQiu/fix-golint-kubectl-20190404
Fix golint failures of pkg/kubectl/apps
2019-04-22 10:43:44 -07:00
caiweidong
653708b836 fix duplicated pod priorityClassName 2019-04-22 21:34:04 +08: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
Kubernetes Prow Robot
29163600fe
Merge pull request #76796 from dims/remove-unused-methods
Remove unused code
2019-04-19 11:09:55 -07:00
Davanum Srinivas
7b8c9acc09
remove unused code
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
caiweidong
31f751c9f6 Kubectl describe xxx suport PriorityClassName 2019-04-19 01:08:08 +08: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
SataQiu
4c713e94d9 fix golint failures of pkg/kubectl/apps 2019-04-17 19:37:35 +08: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
150a501750
Merge pull request #73557 from bsalamat/use_priority_ga
Update usages of PriorityClass to V1
2019-04-06 09:36: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
Bobby (Babak) Salamat
16a7cbd320 generated files 2019-04-05 14:30:52 -07:00
Bobby (Babak) Salamat
8574e3e3f4 Use Scheduling V1 API instead of Scheduling v1beta1 2019-04-05 14:21:45 -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
Jordan Liggitt
959c56d325 Install meta.k8s.io/v1beta1 types into kubectl scheme 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
483cd0db09
Merge pull request #75483 from gsadhani/describe-output-fix
Skip smart label in kubectl describe if field has special chars
2019-04-01 04:54:33 -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
30165e40dd
Merge pull request #75863 from cwdsuzhou/optimize-describe-pvc-organization
Optimize describe pvc output organization
2019-03-29 11:49:03 -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
Girish Sadhani
029582d339 Skip smart label in kubectl describe if field has special chars
Attempts to create smart label for fields containing special chanracter ends
up looking very odd. This change skips creating smart labels for fields
containing special characters other than '-'.
2019-03-29 23:00:08 +05:30
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
Kubernetes Prow Robot
a0e6bd21c6
Merge pull request #74695 from qingsenLi/k8s190228-delete-code
delete unused code in proxy_server.go
2019-03-29 10:28:14 -07:00
caiweidong
732ef847e8 Optimize descrive pvc output organization 2019-03-29 11:29:09 +08:00
Sean Sullivan
d4d6e19f1e kubectl: removes pkg/version dependency 2019-03-28 16:08:34 -07:00
Kubernetes Prow Robot
194114e45e
Merge pull request #75513 from cwdsuzhou/fix-incline-csivolume
Kubectl: support inline csi volume
2019-03-27 18:40:57 -07:00
Kubernetes Prow Robot
81985203bf
Merge pull request #74802 from WanLinghao/zh_bindata_fix
Remove 404 link in kubectl help information
2019-03-27 17:22:19 -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
Kubernetes Prow Robot
265f80eef9
Merge pull request #75176 from mars1024/bugfix/hpa_not_working_in_kubectl_since_v1.13
make describers of different versions work properly when autoscaling/v2beta2 is not supported
2019-03-22 05:22:17 -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
068daa54b0
Merge pull request #73970 from droslean/better-errors
kubectl: error logging as string instead of []byte
2019-03-20 11:08:01 -07:00
caiweidong
af5d6518ff Kubectl: support inline csi volume 2019-03-20 23:56:25 +08:00
Nikolaos Moraitis
45ac899894 error logging as string instead of []byte 2019-03-20 10:30:52 +01: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
Bruce Ma
814e1ca73f make describers of different versions work properly when autoscaling/v2beta2 is not supported 2019-03-08 20:29:49 +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
Kubernetes Prow Robot
997c981d3b
Merge pull request #74789 from cwdsuzhou/kubectl_invalid
Bugfix: kubectl shows last<invalid> if pv, pod or pvc is terminating using kubectl describe xxxx
2019-03-06 00:44:28 -08:00
Pingan2017
41536d7d02 add subcommand kubectl create cronjob 2019-03-06 15:12:21 +08:00
caiweidong
bdfd420c6d Bugfix: kubectl shows last<invalid> if pv, pod, pvc is terminating
fix describe ut
2019-03-05 14:03:34 +08:00
WanLinghao
1133f24b7a Remove 404 link in kubectl help information 2019-03-01 18:17:08 +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
Maciej Szulik
b4f81285bf
Fix flag template when both visible and explicit flags are specified 2019-02-27 22:35:03 +01: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
Kubernetes Prow Robot
e9a8d27bd4
Merge pull request #73266 from awh/kubectl-run-suppress-resource-deletion-messages-when-quiet
kubectl run --quiet suppresses deletion messages
2019-02-26 11:05:21 -08:00
Kubernetes Prow Robot
fc1e528c4a
Merge pull request #72678 from rmohr/cr-autoscale
Add Custom Resource support to "kubectl autoscale"
2019-02-26 11:05:09 -08:00
Jordan Liggitt
d1e865ee34 Update client callers to use explicit versions 2019-02-26 08:36:30 -05:00
Takashi Sasaki
c3838f0efd Add new Japanese translations for kubectl 2019-02-26 12:21:15 +09:00
Kubernetes Prow Robot
1ddfd8ff73
Merge pull request #67573 from m1kola/52218_watching_selectors
Allows to combine the `-f` and `-l` flags in kubectl logs
2019-02-25 18:47:45 -08:00
Jingfang Liu
b38cf738d6 update kubectl subcommand with -k changes 2019-02-25 16:30:50 -08:00
Jingfang Liu
0c026bfac1 add -k flags to kubectl subcommands 2019-02-25 16:30:27 -08:00
Adam Harrison
c9dd2a2a45 kubectl run --quiet suppresses deletion messages
The `--quiet` option should prevent kubectl run from polluting the
output from an attached container - make it apply to the resource
deletion messages caused by `--rm`.
2019-02-25 11:10:07 +00:00
Ilya Dmitrichenko
8c09a71e1d
Refactor core functionality of kubectl drain as a library
- structured pod filter functions
- naming improvements
  - consistent use of daemonSets and DaemonSets
  - rename field to reflect its usage
- new cordon/uncordon helper
  - use Core API client direcly instead of generic CLI runtime
2019-02-25 08:15:07 +00:00
Xiang Dai
36065c6dd7 delete all duplicate empty blanks
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Kubernetes Prow Robot
3afa003126
Merge pull request #73555 from bsalamat/priority_to_ga
Graduate PriorityClass API to GA
2019-02-22 16:14:49 -08:00
Kubernetes Prow Robot
95e5705faf
Merge pull request #73315 from Zyqsempai/wait-cmd-detailed-output
Added resource name to timeout error output on WAIT cmd
2019-02-22 16:14:37 -08:00
Bobby (Babak) Salamat
453498fe2c Graduate PriorityClass to GA 2019-02-22 10:51:13 -08:00
danielqsj
998147de59 fix shellcheck in pkg/kubectl/cmd/edit/testdata/record_testcase.sh 2019-02-22 15:10:38 +08:00
Kubernetes Prow Robot
651faf2e0d
Merge pull request #74250 from SataQiu/fix-golint-20190219
Fix golint failures on pkg/kubectl/cmd/completion, pkg/kubectl/cmd/cp, pkg/kubectl/cmd/edit
2019-02-21 22:17:36 -08:00
Kubernetes Prow Robot
bad9f6341a
Merge pull request #72137 from YoubingLi/master
Issue 71769: Correctly display '_' in the help message
2019-02-21 03:54:11 -08:00
Jordan Liggitt
f139218ac0 generated files 2019-02-20 23:32:46 -05:00
Jordan Liggitt
8c28d3f63c Add networking.k8s.io/v1beta1 Ingress 2019-02-20 16:41:14 -05:00
Kubernetes Prow Robot
f99728e6f3
Merge pull request #74156 from gaorong/descirbe-mirror-pod
kubectl: fix a bug where "describe" cannot obtain the event messages for a static pod
2019-02-20 03:32:48 -08:00
Kubernetes Prow Robot
b473d5c111
Merge pull request #73201 from YoubingLi/bugfix
Fixes #73077 - Allow to convert type across all version
2019-02-20 02:23:21 -08:00
Kubernetes Prow Robot
e1b8cb515c
Merge pull request #74239 from tossmilestone/fix-dup-container-param
Fix duplicate container query param on exec pod command
2019-02-19 15:06:00 -08:00
SataQiu
e2c1f43551 fix golint failures on pkg/kubectl/cmd/completion pkg/kubectl/cmd/cp pkg/kubectl/cmd/edit 2019-02-19 17:39:39 +08:00
He Xiaoxi
4c8d0a3cd4 Fix duplicate container query param on exec pod command
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
2019-02-19 15:58:43 +08:00
Clayton Coleman
a5ba311260
api: Correct a typo in the API docs for rolling update strategy 2019-02-18 22:46:37 -05:00
qingsenLi
90382d407d delete unused code in proxy_server.go 2019-02-18 13:20:58 +08:00