Wenjia Zhang
13b096589c
Rewrite finalURLTemplate used only for metrics because of dynamic client change
...
Kubernetes-commit: 99248b8fe1fe1c28188657d811dc7baf8cd12982
2018-09-14 11:31:21 -07:00
Mike Danese
eb0f6510ef
reload token file for InClusterConfig every 5 minutes
...
Kubernetes-commit: 287f6a564fb8c264f281056011f4a66f197b18f4
2018-08-13 16:47:17 -07:00
Dr. Stefan Schimanski
6007d7f0a9
authn/z: optionally opt-out of mandatory authn/authz kubeconfig
...
Kubernetes-commit: a671d65673590f0dfcf5c2b673e1518d11510bdb
2018-08-22 11:56:07 +02:00
W. Trevor King
045dbe7ac1
client-go/rest: Fix "segments segment" comment typo
...
The typo landed with SubResource in adb75e1f (generated staging area,
2016-08-06, kubernetes/kubernetes#29147 ).
Kubernetes-commit: e42aab6430cbc9d14891e9aaada9ec8becf62273
2018-08-02 08:30:44 -07:00
David Eads
03b9b1062a
stop adding internal types to external schemes
...
Kubernetes-commit: 8a1eae451bb0c8eb651675cecb46db628208f003
2018-08-03 07:51:44 -04:00
Yann Hodique
334ce435af
client-go: fix error message spelling in rest config
...
Kubernetes-commit: f0ca5c1376f28c2a6c2aebeab4b83ceb35a78817
2018-07-16 16:00:03 -07:00
Cao Shufeng
29c058197f
fix print format string
...
Kubernetes-commit: 199a6eba8877e8908753f9977e18360660f7e072
2018-07-04 15:55:15 +08:00
Eric Chiang
f2a9823316
client-go: make exec auth and auth provider mutually exclusive
...
Kubernetes-commit: d96fd39651a4182ceb016c879a17c6a237c87f53
2018-06-01 10:34:45 -07:00
Andrew Lytvynov
c669580288
Add TLS support to exec authenticator plugin
...
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/auth/kubectl-exec-plugins.md#tls-client-certificate-support
Allows exec plugin to return raw TLS key/cert data. This data populates
transport.Config.TLS fields.
transport.Config.TLS propagates custom credentials using
tls.Config.GetClientCertificate callback.
On key/cert rotation, all connections using old credentials are
closed
Kubernetes-commit: cd89f9473faa60c15b8e9d223e5c4f9dab53627a
2018-05-30 14:03:32 -07:00
Mikhail Mazurskiy
4a75b93cb4
Use Dial with context
...
Kubernetes-commit: 5e8e570dbda6ed89af9bc2e0a05e3d94bfdfcb61
2018-05-19 08:14:37 +10:00
Clayton Coleman
a6f5cf653e
restclient should not depend on api/core/v1
...
Kubernetes-commit: 847edc0e27054f1bf7771ba8d412b10bfd533f90
2018-04-25 18:51:38 -04:00
David Eads
2e1683e1a1
add easy to use dynamic client
...
Kubernetes-commit: 3632037e600d82a954c05ecd4f9cb6f1ca93d41c
2018-04-24 13:41:40 -04:00
Maciej Szulik
d1f4ecc28d
Set a default request timeout for discovery client
...
Kubernetes-commit: 7bd48a7e2325381cb777d0ea1ff89b2ecece23b6
2018-04-17 16:58:38 +02:00
hzxuzhonghu
0d7e95ff3b
remove deprecated ObjectMeta ListOptions DeleteOptions
...
Kubernetes-commit: 599a44a92d43a807b994be89aa897e1a3081f369
2018-03-28 10:31:41 +08:00
fisherxu
3d181c7731
regenerated all files and remove all YEAR fields
...
Kubernetes-commit: b49ef6531c11f1c834e0d7591f5c965f6193c711
2018-01-22 20:37:53 +08:00
Kubernetes Publisher
fff8c3d73e
sync: initially remove files BUILD */BUILD BUILD.bazel */BUILD.bazel
2018-03-15 09:19:38 +00:00
Eric Chiang
29c5d6f1b6
generated
...
Kubernetes-commit: 01801ae13a86c10cd343c329f5224ab47272f826
2018-02-07 15:48:46 -08:00
Eric Chiang
19c591bac2
client-go: add an exec-based client auth provider
...
Kubernetes-commit: 6463e9efd9ba552e60d2555a3e6526ef90196473
2018-02-07 15:43:12 -08:00
hzxuzhonghu
3fe103ad08
run update bazel
...
Kubernetes-commit: 8908c5d0a0538b473cbf1cd546967411da74ab75
2018-02-23 17:28:49 +08:00
hzxuzhonghu
ac9f9572cd
remove unused rest/versions.go
...
Kubernetes-commit: 817176572dd86bc8d2c7f8741cd76ca32d685e86
2018-02-26 15:58:36 +08:00
jennybuckley
50244542bb
Run hack/update-all.sh
...
Kubernetes-commit: c8dacd8e631f59ef158c79156d77a99fd2a632cc
2018-02-26 17:16:14 -08:00
Jeff Grafton
fca8bb2928
Autogenerated: hack/update-bazel.sh
...
Kubernetes-commit: ef56a8d6bb3800ab7803713eafc4191e8202ad6e
2018-02-16 13:43:01 -08:00
Di Xu
d39d12f4b0
fix all the typos across the project
...
Kubernetes-commit: 48388fec7eaad4ac8d84fbe20673ffacf41964a1
2018-02-09 14:53:53 +08:00
Maciej Szulik
a4f6f78b29
Allow passing request-timeout from NewRequest all the way down to actual request
...
Kubernetes-commit: 7da1002091f026d4a58c1639dd70e1310b1d8991
2017-08-21 20:47:39 +02:00
David Eads
c673e31530
remove dead prefix field
...
Kubernetes-commit: e7b6d77c7ec39b00da7215626cef3c0ae87fca3c
2018-01-29 11:30:14 -05:00
Eric Chiang
77f9dfa073
client-go: remove import of github.com/gregjones/httpcache
...
Kubernetes-commit: ea085e0a32a6b723e5c565e60d8941b5a760bb68
2017-12-15 15:02:31 -08:00
Christoph Blecker
62b2cb756b
Regenerate all generated code
...
Kubernetes-commit: 80e344644e2b6222296f2f03551a8d0273c7cbce
2018-01-02 00:21:07 -08:00
Jeff Grafton
fe985a55a2
Autogenerate BUILD files
...
Kubernetes-commit: efee0704c60a2ee3049268a41535aaee7f661f6c
2017-12-23 13:06:26 -08:00
juanvallejo
f1ca0e5f1d
add rest/request backoffMgr and throttle setters
...
Kubernetes-commit: 427884aa3969a2a5826b198854602cc62a0fff32
2017-11-16 13:06:43 -05:00
Dr. Stefan Schimanski
834a79b0f6
Update generated code
...
Kubernetes-commit: 1e79dfb959896f2e51be87ecef491452bd17724c
2017-11-09 12:27:20 +01:00
Antoine Pelisse
fba05540b8
Update truncateBody to not truncate with high level
...
And add a unit-tests to verify that it works properly.
Kubernetes-commit: a63ecc4a92b28eb12bde1b321c8d6ce8e3ae4191
2017-10-30 10:20:46 -07:00
Solly Ross
bb89f2cbb8
[client-go] Polymorphic Scale Client
...
This introduces a polymorphic scale client capable of operating against
scale subresources which return different group-versions of Scale. The
scale subresources may be in group-versions different than the scale
itself, so that we no longer need a copy of every scalable resource in
the extensions API group.
To discovery which Scale group-versions go to which subresources,
discovery is used.
The scale client maintains its own internal versions and conversions to
several external versions, with a "hub" version that's a copy of the
autoscaling internal version.
It currently supports the following group-versions for Scale subresources:
- extensions/v1beta1.Scale
- autoscaling/v1.Scale
Kubernetes-commit: d61a2d90372c301dd11088df8941acf2bb01c38c
2017-10-11 14:23:48 -04:00
Solly Ross
4e3b79aa59
[client-go] avoid Registry in fake REST client
...
Previously, the fake RESTClient in client-go required a Registry. It
used the Registry to fetch the GroupVersion for the fake client.
However, the way it did so was dubious in some cases (it hard-coded the
default API group in places), and not strictly necssary.
This updates the fake client to just recieve the GroupVersion and
internal group name directly, instead of requiring a Registry, so that
it can be consumed in unit tests where a Registry isn't necessarily
readily available (e.g. elsewhere in client-go).
Kubernetes-commit: eac2049fc9a151a7cbd6652e039506376574e0a9
2017-10-04 18:42:54 -04:00
David Eads
18d0325d5c
update admission webhook to accept client config
...
Kubernetes-commit: 0859798e8e278ec382dcbeb77914f40bf2c78a2c
2017-10-18 12:57:59 -04:00
Jeff Grafton
c92755ea3b
update BUILD files
...
Kubernetes-commit: aee5f457dbfd70c2d15c33e392dce6a3ca710116
2017-10-12 13:52:10 -07:00
Antoine Pelisse
90239c1304
client-go: Truncate body based on Verbosity level
...
Kubernetes-commit: b4304f8e79f8227fc7841ecc7cb80b94cbbd493d
2017-09-14 17:09:07 -07:00
Kubernetes Publisher
bae75f0568
fix the webhook unit test; the server cert needs to have a valid CN;
...
fix a fuzzer;
Kubernetes-commit: 856a1db57a05e19ea6261e38211d2ab1bf864dd1
2017-09-22 11:22:07 +00:00
Kubernetes Publisher
baf97d23c3
plumb the proxyTransport to the webhook admission plugin;
...
set the ServerName in the config for webhook admission plugin.
Kubernetes-commit: 186a0684d582272aa2fbfec390aea5fbb88a8bc6
2017-09-22 11:22:07 +00:00
ymqytw
f62736c05e
return reasonable error when connection closed
...
Kubernetes-commit: 4de18dec2ba284657c89f7b6e1074385dc1d1baf
2017-09-01 16:19:32 +00:00
Antoine Pelisse
928f5804e3
Revert "Revert "Merge pull request #47353 from apelisse/http-cache""
...
This reverts commit 4ee72eb300423772020dd1cf208159058ba7dab5.
Kubernetes-commit: 332b681bd1d961e2cee16bca10784088a8d308f1
2017-09-01 16:19:00 +00:00
Simo Sorce
ada55fe32f
Extend SetHeader Requests method ito accept multiple values
...
This allows to set headers that are multivalued directly.
The headers variable is not directly accessible and currently
SetHeaders allows to set only one value.
Signed-off-by: Simo Sorce <simo@redhat.com >
Kubernetes-commit: 1f44ccd01c9cea7870a4018b29fa8eabe58a90f6
2017-08-29 12:52:26 +00:00
Jeff Grafton
5da217e5c4
Use buildozer to delete licenses() rules except under third_party/
...
Kubernetes-commit: a7f49c906df816123e7d4ccbd4cebab411519465
2017-08-29 12:51:55 +00:00
Jeff Grafton
fa2ceb7462
Use buildozer to remove deprecated automanaged tags
...
Kubernetes-commit: 33276f06be5e872bf53ca62a095fcf0a6b6c11a8
2017-08-29 12:51:55 +00:00
Jordan Liggitt
53ab900949
Revert "Merge pull request #47353 from apelisse/http-cache"
...
This reverts commit fc89743dca6b563063b74728c3b28100cf674d9d, reversing
changes made to 29ab38e898988c36e2de34f77fa33be556eb21bd.
Kubernetes-commit: 4ee72eb300423772020dd1cf208159058ba7dab5
2017-08-29 12:51:24 +00:00
Clayton Coleman
0103f0d62a
Update generic errors with the new http package codes
...
All of these errors are now part of the standard HTTP method. Formalize
those into our error types and remove duplication and unclear
separation.
Kubernetes-commit: d3be1ac92eb644e284915a55fe67942c33f88d4c
2017-08-29 12:50:52 +00:00
Antoine Pelisse
d7f469601f
c-go: Use http Etag cache
...
Add a new command-line cachedir flag to specify where to store the http
cache responses. This cache will only be used for OpenAPI Swagger spec
for now (as this is the only end-point that returns an ETag).
Kubernetes-commit: d7bba25d4a42f346f1963c86fc0dab43aa4f242e
2017-08-29 12:50:18 +00:00
Jeff Grafton
f921a73942
Run hack/update-bazel.sh to generate BUILD files
...
Kubernetes-commit: 3579017b865ddbc5449d6bba87346f086e4b93ff
2017-08-29 12:50:17 +00:00
zhangxiaoyu-zidif
fe0b3c2590
Fix comment of request.go
...
Kubernetes-commit: c302a72eb943debb5a24e77c709cac56bac78fb7
2017-08-29 12:49:48 +00:00
supereagle
3baab95e2e
update generated deepcopy code
...
Kubernetes-commit: a1c880ece3574a2c7170e0d040489d56dd912e08
2017-08-29 12:49:47 +00:00
Dr. Stefan Schimanski
1be407b92a
Update generated code
...
Kubernetes-commit: 8dd0989b395b29b872e1f5e06934721863e4a210
2017-07-19 03:39:07 +00:00