Mike Lundy
e1ca545b2c
export a method to expose which ports were forwarded
...
Without this change, the only method to discover what local port was
bound (if port 0 was requested) is to parse it out of the "out" stream,
which isn't the most reliable method.
Kubernetes-commit: a9084923f2bd499c287b675007cb7c6c093d60ad
2018-08-16 13:11:26 -07:00
Bryan Boreham
17d4c50f8a
Remove unused function timeoutFromListOptions()
...
Kubernetes-commit: 2663fee405521b2cd5538583533f5d812bc3d996
2018-02-22 15:15:57 +00:00
Pingan2017
ada81a0d75
del unused func DefaultEventFilterFunc
...
Kubernetes-commit: 655271f89b665d87f5de6ba292ed551999635612
2018-08-24 17:26:17 +08:00
Tomas Nozicka
4528feba43
Add UntilWithSync (informer based)
...
Kubernetes-commit: 866cc1acab6c1c30a7550b2de7160c8052be884d
2018-08-03 16:45:41 +02:00
Tomas Nozicka
6dac86f710
Deprecate ListWatchUntil, fix it and call places
...
Kubernetes-commit: e434f3189e81e473aa89e3589ca81545d1341cf8
2018-08-03 16:08:28 +02:00
Tomas Nozicka
82acb64076
Move ListWatchUntil to its kin
...
Kubernetes-commit: 07b8373ab393547239ed4fe227758a1715480f22
2018-08-03 15:22:42 +02:00
Ibrahim AshShohail
a83d2a2682
change TRUNCATED to DATA+OMITTED in kubectl config view
...
Signed-off-by: Ibrahim AshShohail <me@ibrasho.com >
Kubernetes-commit: 23996b25c93c0fc576f5d4a547f91e1b7c4b68a3
2018-08-01 03:23:00 +03:00
Christoph Blecker
43b95360bd
add more tests to clientcmd
...
Kubernetes-commit: e9cf2b0f798f1fac07f52b5d193419e938e3a7cd
2018-08-11 22:16:26 -07:00
Christoph Blecker
442fc9f1c4
Improve TestMergoSemantics test
...
Kubernetes-commit: 194c471c9ccbb1cf57c66ac081828a693e7ce687
2018-07-04 13:52:44 -07:00
Christoph Blecker
44530d33a7
Move from mergo.Merge to mergo.MergeWithOverwrite
...
Kubernetes-commit: a1f6d24962f2b9e6002bcc721e1b48d1008d6cbf
2018-07-04 12:52:01 -07:00
juanvallejo
69308bcf06
use temp file for kubeconfig in test
...
Kubernetes-commit: 03af5089afb5d31707e7d91e55dfd6b157e6f8e1
2018-08-13 14:29:34 -04:00
Tomas Nozicka
cbdb98d74d
Rename Until to UntilWithoutRetry and move to using context so it's
...
cancelable
Kubernetes-commit: 3d4a02abb54244861f9f05b8db2fdfdaa2c6f67c
2018-08-02 14:11:59 +02:00
Tomas Nozicka
5764fa1b79
Move Until from apimachinery to client-go
...
Kubernetes-commit: ccb92f6ef867c9e2ede91b7877a492a161986623
2018-08-01 19:35:46 +02:00
juanvallejo
61141c1efe
improve kubeconfig file modification time
...
Trades runtime complexity for spacial complexity when modifying
large amounts of contexts on a kubeconfig.
In cases where there are few destination filenames for a given
amount of contexts, but a large amount of contexts, this patch
prevents reading and writing to the same file (or small number
of files) over and over again needlessly.
Kubernetes-commit: d5651948cf1a14ed284b4708e2057e4cbc72bcbe
2018-08-07 15:13:57 -04:00
Yann Hodique
58a34f32bd
client-go: update documentation for remotecommand.StreamOptions
...
The ability to explicitly define the supported protocols was removed in commit 12c7874c0d88e9099ab2a29915d26751f0d23c2a
Adjust documentation accordingly.
Kubernetes-commit: f77060aa8da8256fa48412e7a0d9523245017dcb
2018-07-16 14:43:54 -07:00
David Eads
21fd7d2b8a
name runtime.Schemes so we can see which one fails
...
Kubernetes-commit: 340802b079dbf8d193f162d49663679bd7d24ef7
2018-07-06 09:18:05 -04:00
xuzhonghu
1ca2f836dc
bug fix: dead loop leaderelection
...
Kubernetes-commit: 7a2c5794097dba18a3bf9e170e8c0b2ff4a916d7
2018-07-02 15:49:39 +08:00
xuzhonghu
57f617c0b1
leaderelection: set timeout for tryAcquireOrRenew
...
Kubernetes-commit: 90b287c12d921e4e08e522dbe214f5587f147956
2018-06-20 15:44:31 +08:00
Mikhail Mazurskiy
b045806917
Add missing error handling in schema-related code
...
Kubernetes-commit: bfe313d5f351dfae086a85a97e7103183173e5b5
2018-06-03 14:59:58 +10:00
Dr. Stefan Schimanski
9f7f556240
Update generated files
...
Kubernetes-commit: 1208437f84304ef4f73a6bf1770786bb436b75c9
2018-06-13 09:53:47 +02:00
zhengjiajin
7d6d732419
enhance leaderelection code
...
Kubernetes-commit: 9fe2a5a430055657186491c23e85cc489e401bc7
2018-05-11 13:29:41 +08:00
Mikhail Mazurskiy
f674595347
Use context.TODO() to be explicit that cancellation is not implemented
...
Kubernetes-commit: 102090d1f12f9b00571d440470ba040e0632fbe0
2018-06-07 14:33:03 +10:00
Mikhail Mazurskiy
ad39df114e
Cancellable leader election with context
...
Kubernetes-commit: dc32a341c01ec122f54604e9fdbdf9b77d2e19e3
2018-02-12 21:02:56 +11:00
Mikhail Mazurskiy
79cc4033c7
Cancellable leader election with channels
...
Kubernetes-commit: 1d99fff1acb1503755b94d4c72e6dedd35c2d249
2018-02-12 20:48:53 +11:00
Zhonghu Xu
b9ecec59bd
remove inaccurate comment about watch timeout
...
Kubernetes-commit: 9561269d9308278018da0284638baed1d1c33144
2018-05-31 16:20:04 +08:00
Lucas Käldström
4d6c30f52a
Move helper funcs and constants to the client-go Bootstrap Token package from kubeadm
...
Kubernetes-commit: 33f59e438e93b824492caff5d39fd143b43eac9a
2018-05-31 22:18:27 +03:00
David Ashpole
55b7c99dca
add metadata to kubelet eviction event annotations
...
Kubernetes-commit: fd1f19fc423880b2b292d6f9e6fca1e941e87994
2018-05-23 16:12:54 -07:00
David Eads
1088d9ef09
prevent zero for leader election timeouts
...
Kubernetes-commit: 7288e8828f5bf659d41e71760f9d9923e405e2e4
2018-05-23 15:00:37 -04:00
Haowei Cai
0e3c65c3e9
Raise error on duplicate name in kubeconfig
...
for NamedCluster, NamedContext, NamedUser, NamedExtension
Kubernetes-commit: e9454a383b52c3909e7bb73a0263c4d2c0c2c2db
2018-02-26 15:58:33 -08:00
David Eads
acfb32b7e4
fix event ref determination for apigroups
...
Kubernetes-commit: b2be8953b147d4c386768b0bdd3d9a93a47a625b
2018-05-16 08:08:20 -04:00
Clayton Coleman
7130d1acc2
client-go should not take a dependency on the v1 api lightly
...
These constants will never change, and tools/ should not be depending on
core/api/v1 (there is nothing v1 specific about them).
Kubernetes-commit: aa9fd2bf11ae6be922b5b0fe45f5254c40366b2e
2018-04-25 18:02:30 -04:00
rithu john
e3815ad762
tools/clientcmd: Remove gopass import
...
Kubernetes-commit: 7dc8b91aee8eae60df430f4280a575ee569fcac9
2018-03-29 17:21:51 -07:00
Mikhail Mazurskiy
37d44da37d
Use range in loops; misc fixes
...
Kubernetes-commit: c23a8a85cce80a1015797e9c76aae709d9910791
2018-03-29 22:55:25 +11:00
David Eads
44608c3c9d
provide easy methods for direct kubeconfig loading from bytes
...
Kubernetes-commit: 8eec665ecce5e91f858c4f4b92a5e7b674798b2f
2018-03-16 12:28:50 -04:00
hzxuzhonghu
1e55c20903
Replace "golang.org/x/net/context" with "context"
...
Kubernetes-commit: 70e45eccf27726f0e63dd1024924ccc7e2cd35a0
2018-02-28 12:20:22 +08:00
fisherxu
3d181c7731
regenerated all files and remove all YEAR fields
...
Kubernetes-commit: b49ef6531c11f1c834e0d7591f5c965f6193c711
2018-01-22 20:37:53 +08:00
Walter Fender
cafb570f17
Fix local cluster leaking memory.
...
Local cluster is leaking memory due to mutation detector being enabled.
In addition there is no warning in the logs that this could be the
issue.
Added a log warning when this feature is enabled to make debugging this
issue easier for other cases of this.
Fixed import ordering as per @liggitt
Kubernetes-commit: 07ba609b50d6f00c52acbfd6eaa43e6b527c5c2d
2018-03-06 13:03:30 -08:00
wackxu
1ae3aba19b
prevent the same path load multiple times
...
Kubernetes-commit: 973e610787db8a9cee5da098e2f72672be817aa9
2017-10-12 10:19:28 +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
jennybuckley
50244542bb
Run hack/update-all.sh
...
Kubernetes-commit: c8dacd8e631f59ef158c79156d77a99fd2a632cc
2018-02-26 17:16:14 -08:00
Haowei Cai
3bf2cc9238
Add comments about potential race in delta fifo.
...
Kubernetes-commit: 8b03e77aec6fe9496edf51ba11d580c460e8fb5e
2018-01-31 15:22:09 -08:00
Matt Kelly
ae2f680955
Fix typos in configmaplock
...
Kubernetes-commit: b2342ae9d942af2f6bf572aeb71cce6acaac218b
2018-02-19 14:40:11 -05:00
Jeff Grafton
fca8bb2928
Autogenerated: hack/update-bazel.sh
...
Kubernetes-commit: ef56a8d6bb3800ab7803713eafc4191e8202ad6e
2018-02-16 13:43:01 -08:00
Dan Williams
577c46c713
Remove unused DeltaFIFO compressor argument to NewDeltaFIFO
...
Nobody uses it; the one or two older users from 1.4/1.5 timeframe
were removed for 1.6. It's also poorly understood and the sole
example is in the testcases, and it's pretty incomplete.
If anyone really wants compression, they can revert this PR.
Kubernetes-commit: a56c8f50cb9b9bfdb92bc5f005a48f8df5afadb9
2017-03-21 14:53:30 -05:00
Kris
5c864f2fba
Add started state to the processor to protect against double starts
...
This prevents a race condition where the sharedIndexInformer was
causeing the processorListener's run and pop method to be started
twice. That violated the SharedInformer's interface guarantee of
sequential delivery and also caused panics on shutdown.
Kubernetes-commit: 3c36d9e373d8e272ad303f359d040621edeb999e
2018-02-13 11:33:21 -08:00
Kris
3f0de10d86
Add a test case for the race in #59822
...
Kubernetes-commit: be482ad51c21d493f4b83de9aa06c511a552b5b1
2018-02-13 11:32:36 -08:00
Di Xu
d39d12f4b0
fix all the typos across the project
...
Kubernetes-commit: 48388fec7eaad4ac8d84fbe20673ffacf41964a1
2018-02-09 14:53:53 +08:00
Clayton Coleman
7e1535c0b5
Promote v1alpha1 meta to v1beta1
...
No code changes, just renames
Kubernetes-commit: d07a608607e1f4d252003c17cd615652574a0823
2018-01-30 13:30:57 -05:00