Commit Graph

4025 Commits

Author SHA1 Message Date
Mike Danese
25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Troy Connor
314b6cb32b
[auth]Change example in can-i to apps instead of extensions 2019-12-13 13:36:48 -05:00
Clayton Coleman
3b780c64b8
Always negotiate a decoder using ClientNegotiator
This commit performs two refactors and fixes a bug.

Refactor 1 changes the signature of Request to take a RESTClient, which
removes the extra copy of everything on RESTClient from Request. A pair
of optional constructors are added for testing. The major functional
change is that Request no longer has the shim HTTPClient interface and
so some test cases change slightly because we are now going through
http.Client code paths instead of direct to our test stubs.

Refactor 2 changes the signature of RESTClient to take a
ClientContentConfig instead of ContentConfig - the primary difference
being that ClientContentConfig uses ClientNegotiator instead of
NegotiatedSerializer and the old Serializers type. We also collapse
some redundancies (like the rate limiter can be created outside the
constructor).

The bug fix is to negotiate the streaming content type on a Watch()
like we do for requests. We stop caching the decoder and simply
resolve it on the request. We also clean up the dynamic client
and remove the extra WatchSpecificVersions() method by providing
a properly wrapped dynamic client.
2019-11-10 21:30:36 -05:00
Sean Sullivan
2a3f28863b Moves kubectl get subcommand to staging 2019-10-29 15:51:00 -07:00
Sean Sullivan
958d7d3b6e Removes duplicate TabWriter. Several updates to reference the one remaining TabWriter in cli-runtime. 2019-10-22 23:45:08 -07:00
Sean Sullivan
8b2130343e Moves tableprinter.go and tabwriter.go to cli-runtime/pkg/printers. Copies PrintOptions to cli-runtime/pkg/printers. 2019-10-22 23:45:08 -07:00
Maciej Szulik
99448d2283
Update symlink warning 2019-10-01 10:36:02 +02:00
Kubernetes Prow Robot
05588f769d
Merge pull request #82928 from chendotjs/simplify-regex
simplify regexp with raw string
2019-09-25 11:07:02 -07:00
wojtekt
cd24a0e5fa Minor cleanup of jsonFallbackEncoder 2019-09-22 14:05:54 +02:00
chenyaqi01
3175c9e226 simplify regexp with raw string 2019-09-20 16:53:56 +08:00
Kubernetes Prow Robot
ed95ccb58c
Merge pull request #82360 from soltysh/remove_dead_code
Remove dead code used only in tests
2019-09-11 15:26:52 -07:00
Kubernetes Prow Robot
bd6f58cfcb
Merge pull request #80337 from draveness/feature/remove-deprecated-include-uninitialized-flag
feat: remove deprecated include uninitialized flag
2019-09-10 14:29:15 -07:00
Maciej Szulik
eff4f79eda
Remove dead code used only in tests 2019-09-05 09:17:56 +02:00
Maciej Szulik
786acdb668
Remove symlink support from kubectl cp 2019-09-03 10:42:30 +02:00
Maciej Szulik
ab1c56ae87
Move kubectl cp back to k/k 2019-08-29 09:00:47 +02:00
Sean Sullivan
33bf8a8ebd Update PrintOptions to more appropriate GenerateOptions in some cases 2019-08-23 09:25:22 -07:00
Maciej Szulik
09ecba5213
Fix handling empty result when invoking kubectl get 2019-08-16 16:51:48 +02:00
Wei Huang
a4d97cc47d kubectl: eliminate unnecessary blank ending line (#81229)
* kubectl: eliminate unnecessary blank ending line

* address comments and add more tests
2019-08-13 04:50:20 -07:00
draveness
f18f86ad9a feat: remove deprecated include uninitialized flag 2019-08-04 22:39:52 +08:00
Kubernetes Prow Robot
f19863c829
Merge pull request #80873 from tedyu/kube-get-ns
Omit namespace when kubectl get is for the cluster
2019-08-02 20:28:18 -07:00
Ted Yu
e1ee01af48 Omit namespace when kubectl get is for the cluster 2019-08-02 14:13:52 -07:00
Sean Sullivan
2621e6a0d6 Unexport kubectl cmd profiling 2019-08-02 12:45:15 -07:00
Sean Sullivan
5fcf9bd79c Update vendor modules to reflect code move to staging 2019-08-01 15:25:56 -07:00
Sean Sullivan
58b59ae4e0 Update test data to reflect code move to staging 2019-08-01 15:17:53 -07:00
Sean Sullivan
e2cae23444 Update gofmt 2019-08-01 13:14:06 -07:00
Sean Sullivan
dc743f7edd Update BUILD files reflecting code move to staging 2019-08-01 13:12:31 -07:00
Sean Sullivan
acece3c296 Update import statements to reflect code move 2019-08-01 11:15:39 -07:00
Sean Sullivan
0e0ea52339 Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
Kubernetes Prow Robot
b7cb64f39b
Merge pull request #80761 from seans3/refactor-kubectl-condition
Refactor pkg/kubectl/conditions.go to remove file
2019-07-31 20:08:50 -07:00
Kubernetes Prow Robot
41b3a3ebb9
Merge pull request #80727 from seans3/move-explain-staging
Move pkg/kubect/explain to staging
2019-07-31 11:42:15 -07:00
Sean Sullivan
b15290dfd8 Refactor pkg/kubectl/conditions.go to remove file 2019-07-31 10:25:23 -07:00
Kubernetes Prow Robot
c91761da0d
Merge pull request #80802 from dtaniwaki/fix-broken-completion
Fix unexpected line end in override flags
2019-07-31 08:55:12 -07:00
Kubernetes Prow Robot
ffc2947149
Merge pull request #80772 from seans3/move-scale-updater-staging
Refactor pkg/kubectl/{scale.go|rollingupdater.go} for move to staging
2019-07-31 06:56:35 -07:00
Kubernetes Prow Robot
41745165f3
Merge pull request #80765 from seans3/move-kubectl-owners
Move pkg/kubectl/cmd/util/openapi/OWNERS to staging
2019-07-31 06:56:23 -07:00
Daisuke Taniwaki
707f1a2832
Fix unexpected line end in override flags 2019-07-31 18:46:28 +09:00
Sean Sullivan
1252ab3c98 Move pkg/kubect/explain to staging 2019-07-31 00:30:32 -07:00
Kubernetes Prow Robot
b6475c2d72
Merge pull request #80601 from seans3/move-kubectl-proxy
Move pkg/kubectl/proxy to staging
2019-07-31 00:24:34 -07:00
Sean Sullivan
c011df28a4 Refactor pkg/kubectl/{scale.go|rollingupdater.go} for move to staging 2019-07-30 23:15:15 -07:00
Kubernetes Prow Robot
eae7790f6c
Merge pull request #80754 from seans3/move-restclient-staging
Move pkg/kubectl/interfaces.go to testing
2019-07-30 22:44:59 -07:00
Sean Sullivan
18c7ee8114 Move pkg/kubectl/proxy to staging 2019-07-30 19:09:25 -07:00
Sean Sullivan
902789d375 Move pkg/kubectl/generate to staging 2019-07-30 16:18:39 -07:00
Sean Sullivan
8f0127503d Move pkg/kubectl/cmd/util/openapi/OWNERS to staging 2019-07-30 14:09:18 -07:00
Sean Sullivan
b86bd0dc62 Move pkg/kubectl/interfaces.go to testing 2019-07-30 10:49:43 -07:00
Sean Sullivan
9f3384f02f Move pkg/kubectl/polymorphichelpers staging 2019-07-30 10:10:30 -07:00
Kubernetes Prow Robot
c1eff52435
Merge pull request #80561 from seans3/move-metricsutil-staging
Move pkg/kubectl/metricsutil to staging
2019-07-30 08:52:51 -07:00
Kubernetes Prow Robot
bd6eaa5e7f
Merge pull request #79956 from johnharris85/logs-error-typo
Fix 'concurrency' logs typo
2019-07-30 01:59:43 -07:00
Sean Sullivan
a1de0e9331 Move pkg/kubectl/metricsutil to staging 2019-07-29 16:26:10 -07:00
Sean Sullivan
6c96a059dd Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-29 13:08:41 -07:00
Sean Sullivan
7a64a66d61 Move pkg/kubectl/cmd/util/openapi to staging 2019-07-27 16:18:37 -07:00