Commit Graph

16793 Commits

Author SHA1 Message Date
Andy Goldstein
1572e0481f Reduce allocations in HasSchemas
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-09-13 20:35:18 -04:00
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
SataQiu
d545de2b96 remove DeprecatedInsecureServingOptionsWithLoopback 2022-09-11 21:22:18 +08: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
fe41181c3d client-go: test transport generation is goroutine safe 2022-09-08 11:13:43 +02: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
Seth Jennings
b3a28d17fd aws: skip health rules if they are a subnet of the client rule 2022-09-06 14:25:23 -05: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
Abirdcfly
1d631f7eef go1.19: change some atomic.Value to atomic.Bool
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-09-06 17:15:34 +08:00
viveksahu26
386bc4a7fa fix warnings or linter errors
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
2022-09-05 19:10:43 +05:30
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
Patrick Ohly
2f762e4788 logs: remove deprecated klog flags
This completes the deprecation of klog flags which are no longer supported.
klog itself continues to support them, but Kubernetes components don't. This
makes the command line interfaces simpler and reduces the attack surface
because less functionality is exposed.

For example, kube-controller-manager now has:

    Logs flags:

      --log-flush-frequency duration
                Maximum number of seconds between log flushes (default 5s)
      --log-json-info-buffer-size quantity
                [Alpha] In JSON format with split output streams, the info messages can be buffered for a while to increase performance. The default value of zero
                bytes disables buffering. The size can be specified as number of bytes (512), multiples of 1000 (1K), multiples of 1024 (2Ki), or powers of those (3M,
                4G, 5Mi, 6Gi). Enable the LoggingAlphaOptions feature gate to use this.
      --log-json-split-stream
                [Alpha] In JSON format, write error messages to stderr and info messages to stdout. The default is to write a single stream to stdout. Enable the
                LoggingAlphaOptions feature gate to use this.
      --logging-format string
                Sets the log format. Permitted formats: "json" (gated by LoggingBetaOptions), "text". (default "text")
  -v, --v Level
                number for the log level verbosity
      --vmodule pattern=N,...
                comma-separated list of pattern=N settings for file-filtered logging (only works for text log format)

    Misc flags:

      --kubeconfig string
                Path to kubeconfig file with authorization and master location information.
      --master string
                The address of the Kubernetes API server (overrides any value in kubeconfig).

    Global flags:

  -h, --help
                help for kube-controller-manager
      --version version[=true]
                Print version information and quit

For details see
https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components
2022-09-04 21:04:05 +02: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