Commit Graph

16632 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
cee668beba Merge pull request #112205 from jprzychodzen/ensure-metric-registered
Ensure metric 'running_managed_controllers' is registered
2022-09-13 15:45:00 -07:00
Kubernetes Prow Robot
084a412e03 Merge pull request #112200 from pohly/client-go-shared-informer-factory-shutdown
client-go: support waiting for SharedInformerFactory shutdown
2022-09-13 09:43:01 -07:00
Patrick Ohly
e89d1d47e8 client-go: support waiting for SharedInformerFactory shutdown
SharedInformerFactory starts goroutines in Start and those can be stopped by
closing the stop channel. However, there was no API that waits for the
goroutines.

This is a problem for unit testing. A test has to return while the informers
are still running, which may get flagged by tools like
https://github.com/uber-go/goleak or by klog/ktesting when those informers
lead to log output.

While at it, more documentation gets added to address
https://github.com/kubernetes/kubernetes/issues/65036.
2022-09-12 21:05:06 +02:00
Kubernetes Prow Robot
0f37b31206 Merge pull request #112046 from aojea/etcd_healthz
rate limite etcd healthcheck request
2022-09-12 12:01:27 -07:00
Kubernetes Prow Robot
5858aa2bef Merge pull request #110267 from TinySong/auth-cani
update auto can-i error message
2022-09-12 12:01:05 -07:00
Kubernetes Prow Robot
ed520f3cac Merge pull request #112309 from shyamjvs/disable-compression
Add a "DisableCompression" option to kubeconfig
2022-09-12 10:55:25 -07:00
Kubernetes Prow Robot
74469ca4c5 Merge pull request #112123 from paskal/paskal/cfs_clarification
clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
2022-09-12 07:01:25 -07:00
Patrick Ohly
60d92dd96a build: update to klog v2.80.1
The fix for https://github.com/kubernetes/klog/issues/348 is required before
https://github.com/kubernetes/kubernetes/pull/111998 can be merged because the
way how a unit test in that PR uses klog triggers the data race.
2022-09-09 13:11:55 +02:00
Kubernetes Prow Robot
d569886a23 Merge pull request #112341 from enj/enj/i/second_time_is_the_charm
Remove in-tree credential plugins (again)
2022-09-08 20:35:36 -07:00
Kubernetes Prow Robot
c9c3d2e9d9 Merge pull request #111768 from weilaaa/feature_add_symmetric_difference_in_sets_string
add method symmetric difference in sets.String
2022-09-08 20:35:25 -07:00
Kubernetes Prow Robot
a7936658ba Merge pull request #112193 from jindijamie/master
Add an option for aggregator
2022-09-08 17:21:24 -07:00
Monis Khan
09cde58bbc Remove in-tree credential plugins (again)
This change reverts three commits:

1. Revert "Revert "Remove gcp and azure auth plugins""
   This reverts commit 651b4f5b64.

2. Revert "update-gofmt"
   This reverts commit 79c09f0b31.

3. Revert "Update removal warnings to 1.26"
   This reverts commit 68758fc5c5.

Signed-off-by: Monis Khan <mok@microsoft.com>
2022-09-08 19:43:12 -04:00
Shyam Jeedigunta
f9c46a0e33 Autogen code 2022-09-08 16:07:02 -07:00
Shyam Jeedigunta
641fd5b482 Add DisableCompression option to KubeConfig 2022-09-08 16:06:56 -07:00
Kubernetes Prow Robot
082da2f04e Merge pull request #112017 from enj/enj/i/exec_tls_cache
exec auth: support TLS config caching
2022-09-08 15:35:22 -07:00
Dmitry Verkhoturov
d0f9e6dc36 clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
cpu.cfs_period_us is measured in microseconds in the kernel but
provided in time.Duration by the user, that change clarifies the code
to make this evident to the reader.

Also, the minimum value for that feature is 1ms and not 1μs, and this
change alters the validation to reject values smaller than 1ms.
2022-09-08 23:29:13 +02:00
Monis Khan
831d95b6a0 exec auth: support TLS config caching
This change updates the transport.Config .Dial and .TLS.GetCert fields
to use a struct wrapper.  This indirection via a pointer allows the
functions to be compared and thus makes them valid to use as map keys.
This change is then leveraged by the existing global exec auth and TLS
config caches to return the same authenticator and TLS config even when
distinct but identical rest configs were used to create distinct
clientsets.

Signed-off-by: Monis Khan <mok@microsoft.com>
2022-09-08 14:51:28 -04:00
Nabarun Pal
4d0b44bb89 update branch rules in publishing rules to Go 1.18.6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-08 22:41:07 +05:30
Kubernetes Prow Robot
cc4b7dc3c5 Merge pull request #111986 from enj/enj/i/transformer_leak
kms: fix go routine leak in gRPC connection
2022-09-08 09:49:46 -07:00
Monis Khan
4e68e9b5ad kms: fix go routine leak in gRPC connection
Signed-off-by: Monis Khan <mok@microsoft.com>
2022-09-08 11:46:57 -04:00
Kubernetes Prow Robot
1c9cf66f73 Merge pull request #112301 from aojea/ipv6_rfc3849
use IPv6 Address Prefix Reserved for Documentation for api docs
2022-09-08 08:17:45 -07:00
Kubernetes Prow Robot
0e54bd2942 Merge pull request #112287 from palnabarun/master
Update images, dependencies and version to Go 1.19.1
2022-09-08 05:19:43 -07:00
Antonio Ojea
fa7ed64dae use IPv6 Address Prefix Reserved for Documentation for api docs 2022-09-08 09:45:04 +02:00
Shyam Jeedigunta
7cd5e6597e Reduce default gzip compression level from 4 to 1 in apiserver 2022-09-07 14:23:31 -07:00
Kubernetes Prow Robot
385cc255c7 Merge pull request #111967 from alexzielenski/csa-to-ssa
[client-go] add function to upgrade managedfields CSA to SSA
2022-09-07 11:58:48 -07:00
Kubernetes Prow Robot
2969000db3 Merge pull request #111122 from alexzielenski/informer
support removal of event handlers from SharedIndexInformers
2022-09-07 11:58:37 -07:00
Nabarun Pal
b4ac3b18f6 Update publishing bot default Go version to 1.19.1
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 22:13:33 +05:30
Kubernetes Prow Robot
2b203348fb Merge pull request #112022 from JackZxj/release-lock
update lock getter of leaderelection
2022-09-07 08:52:37 -07:00
weilaaa
2b55c94e37 add symmetric difference in sets 2022-09-07 20:25:44 +08:00
Alexander Zielenski
dbff8e117c correct spacing 2022-09-06 20:58:50 -07:00
Alexander Zielenski
3528fd7e47 add boilerplate 2022-09-06 19:51:47 -07:00
Alexander Zielenski
0ebbb6af61 revert fieldmanager changes 2022-09-06 18:36:57 -07:00
Kubernetes Prow Robot
1ab40212a4 Merge pull request #112093 from HecarimV/fix-2282915
test: use bytes.Buffer.String
2022-09-06 17:34:36 -07:00
Kubernetes Prow Robot
ed967343f4 Merge pull request #112198 from MikeSpreitzer/bound-all
Call queueSet::boundNextDispatchLocked enough
2022-09-06 12:58:34 -07:00
Kubernetes Prow Robot
23790ec7fa Merge pull request #112181 from xueqzhan/disable-anonymous
Add DisableAnonymous to DelegatingAuthenticationOptions
2022-09-06 10:28:03 -07:00
Mike Spreitzer
6ee93e2cee Call queueSet::boundNextDispatchLocked enough
Fix the one path where boundNextDispatchLocked was not being called
after modifying a queue.

Also check for negative work in a request.

These are motivated by
https://github.com/kubernetes/kubernetes/issues/112169 but I do not
have a way to reproduce it and so can not check that these changes
actually remove that symptom.  But these changes are good anyway.
2022-09-06 13:23:03 -04:00
Brian Pursley
eae2c424ef Revert "Remove unused flags from kubectl run" 2022-09-05 09:34:48 -04:00
Jakub Przychodzeń
ef9f8d099f Ensure metric 'running_managed_controllers' is registered 2022-09-05 11:43:56 +00:00
Alexander Zielenski
52fcd20b57 remove inaccurate comment 2022-09-02 17:42:08 -07:00
Alexander Zielenski
adcb5ec3d4 make upgrade modify input instead of deep copying 2022-09-02 17:40:34 -07:00
Alexander Zielenski
5c9534b9cf remove fieldsv1 from upgrade body 2022-09-02 17:38:29 -07:00
Alex Zielenski
5caffef694 Update staging/src/k8s.io/client-go/util/csaupgrade/upgrade.go
Co-authored-by: Antoine Pelisse <apelisse@gmail.com>
2022-09-02 17:34:07 -07:00
Kubernetes Prow Robot
e7192a4955 Merge pull request #112112 from alexzielenski/aggregated-discovery-feature-gate
Aggregated Discovery: add feature gate
2022-09-02 16:34:33 -07:00
Kubernetes Prow Robot
bacd6029b3 Merge pull request #112199 from pohly/klog-update
dependencies: update to klog v2.80.0
2022-09-02 10:56:16 -07:00
Kubernetes Prow Robot
673895dc55 Merge pull request #111936 from haoruan/bugfix-111928-microtime-marshal-precision
Marshal MicroTime to json and proto at the same precision
2022-09-02 09:42:16 -07:00
Hao Ruan
7aa80add91 Marshal MicroTime to json and proto at the same precision 2022-09-02 16:21:04 +08:00
Patrick Ohly
1bc3bde128 dependencies: update to klog v2.80.0
Contains one bug fix in the code path for formatting of objects that support
LogMarshal.
2022-09-02 08:05:47 +02:00
Di Jin
0b400cf6aa Add an option for aggregator 2022-09-01 15:25:26 -07:00
Kubernetes Prow Robot
6e9845f766 Merge pull request #112146 from kerthcet/feat/move-schedulerError-to-api
Move constant schedulerError in scheduler to v1 package
2022-09-01 13:00:26 -07:00
Kubernetes Prow Robot
3710cc8f7b Merge pull request #112089 from zeze1004/fix-typo
Fix typo "sturct" to "struct"
2022-09-01 10:53:06 -07:00