Commit Graph

18 Commits

Author SHA1 Message Date
Karl 'NaN' Wikström 38408eaa8c cleanup: use i18n.T on all command descriptions
cleanup: use i18n.T only on string literals

cleanup: sort imports

Add i18n dependency for wait.go

Remove translation on envResource

cleanup: translate string instead of variable

cleanup: sort imports

cleanup: translate string literal only

Kubernetes-commit: cc8428566ea7160c5b20410a1bee53ca7ddb998e
2020-10-09 13:16:13 +02:00
Sai Harsha Kottapalli ac26f503e8 fix staticcheck for kubectl pkg files
Kubernetes-commit: f6b3c5fb3f78d1d2736fe97326b976783b34f6b7
2020-09-30 15:33:29 +05:30
Maciej Szulik 62a25b9910 Handle nil elements when sorting, instead of panicking
Kubernetes-commit: a2d96fcbac6c4d92565fd0453cb6bc8c3b422bcb
2020-09-09 22:39:46 +02:00
Gaurav Singh 66f1998dda kubectl: Use Fprintf
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>

Fix typo

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>

Change Fprintf to Fprintln

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>

Use %q instead of %s

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>

Change %q to %s

Kubernetes-commit: b326948a9a317dbc17c6f32dfeea26e090bde3b0
2020-05-25 18:19:27 -04:00
Eddie Zaneski ac345319b3 Update kubectl to use new vendored github.com/fvbommel/sortorder dependency
The author of this dependency is removing the vanity url and has
instructed users to use the GitHub path.

This updates the dependency to the module-less pin to the v1 module tag.

https://github.com/fvbommel/util/issues/5
https://github.com/fvbommel/util/issues/6

Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>

Kubernetes-commit: db826b14583be77a1757f7f8aaef864ece627042
2020-09-02 17:52:26 -06:00
Maciej Szulik e80cf9ce71 Use temporary directory when creating temporary file in tests
Kubernetes-commit: a7529f4cd90ea6f662e1398608eccd86e886026f
2020-07-17 10:41:16 +02:00
Sally O'Malley ecd37ea662 get: -o yaml, json set ServerPrint false
Kubernetes-commit: 01e344feb6368647dc1a48c7a3a27b5852f9b89d
2020-08-12 12:23:23 -04:00
Naoki Oketani 404318cdbc Remove --export flag from kubectl get command.
Kubernetes-commit: c0562815fada455daf4826f59df895942dad8df0
2020-02-28 17:41:00 +09:00
Davanum Srinivas 445ad1366b switch over k/k to use klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 442a69c3bdf6fe8e525b05887e57d89db1e2f3a5
2020-04-17 15:25:06 -04:00
Riccardo Piccoli 9fae31af80 Change not found output when getting non namespaced resources
Signed-off-by: Riccardo Piccoli <riccardo.piccoli@gmail.com>

Kubernetes-commit: 818f011a2e7e1a05923f06c57ef6089e3a048fba
2020-02-13 17:28:06 +01:00
danielqsj 4b914450ab unify alias of api errors under pkg and staging
Kubernetes-commit: 5bc0e26c1902e7e28abfc828de19a2dbb3e492c2
2019-11-12 16:26:59 +08:00
Jordan Liggitt 1d31df4756 fixup kubectl test
Kubernetes-commit: deb75da17bb1fa95e5b56fb1207ba247cd9953dd
2019-11-26 13:13:38 -05:00
Jordan Liggitt 74e4737411 Switch TableGenerator/TableConvertor interfaces to metav1
Kubernetes-commit: 36eb250cbb441984260ded6f7abeb796974031c3
2019-11-26 13:13:25 -05:00
zhouya0 6d82c82d12 add test coverage with kubectl get components
Kubernetes-commit: 07806d4300c5f410194c0dcd2da86c40bef42e1b
2019-11-25 17:57:56 +08:00
Maciej Szulik 89d9f2ef29 Set TypeSetter in get print flags, like we do everywhere else
Kubernetes-commit: 626b9081fbee1eeae3f96a99f40da6c665d5753f
2019-10-31 18:25:46 +01:00
clarklee92 87db492820 Modify the status code number to HTTP status semantics
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>

Kubernetes-commit: f86f5ee14ef3c8adf9855ce16dcc57beca949719
2019-11-06 00:45:35 +08:00
Sean Sullivan 3ec9685c39 Rename test/data directory to testdata
Kubernetes-commit: 4ce97d6c48ae4735463f020430dd20539a03e8c5
2019-10-31 13:40:02 -07:00
Sean Sullivan 7965551001 Moves kubectl get subcommand to staging
Kubernetes-commit: 2a3f28863baa804a05d35c3958a107f9210b4c9e
2019-10-29 15:51:00 -07:00