Commit Graph

111379 Commits

Author SHA1 Message Date
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
Patrick Ohly
2ace9a884e e2e: generalize the framework e2e* import alias rule
All framework sub packages should used e2e<package name> as import alias, also
the daemonset sub package that previously wasn't listed explicitly.
2022-09-08 18:37:52 +02:00
Patrick Ohly
a00a1c99d5 preferredimports: support regular expressions for the import path
Having to list all packages isn't very manageable and requires constant
maintenance that is easy to miss. For example, test/e2e/framework/daemonset was
created without adding an entry for it. Promptly one file doesn't use the
intended e2edaemonset alias.

A simpler solution is to support matching the import path against a regular
expression and deriving the intended alias by expanding placeholders (${name},
$1, etc.) with the corresponding submatches from the import path. Example:

   k8s.io/kubernetes/test/e2e/framework/([^/]*) -> e2e$1

This support is backwards compatible because normal import paths don't contain
characters that are special in a regular expression and normal aliases don't
contain placeholders.

A regular expression must match the entire import path, otherwise it is
skipped.
2022-09-08 18:37:52 +02:00
Di Jin
6d78a25374 Add integration test
Add integration test to ensure aggregator is not forwarding redirect response
2022-09-08 09:36:12 -07:00
Clayton Coleman
e9a5fb7372
kubelet: Record a metric for latency of pod status update
Track how long it takes for pod updates to propagate from detection
to successful change on API server. Will guide future improvements
in pod start and shutdown latency.

Metric is `kubelet_pod_status_sync_duration_seconds` and is ALPHA
stability. Histogram buckets are chosen based on distribution of
observed status delays in practice.
2022-09-08 12:17:44 -04: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
Kubernetes Prow Robot
00c0c9d880
Merge pull request #112235 from demoManito/fix/upgrade-style
fix: modify declaration slice and map code style
2022-09-08 02:56:06 -07:00
dengyufeng2206
e20071792f fix test order in pkg/kubelet/sysctl/util_test.go
Signed-off-by: dengyufeng2206 <deng.yufeng@zte.com.cn>
2022-09-08 17:20:22 +08: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
Stephen Heywood
974f4b8ee1 Promote Namespace e2e test to Conformance 2022-09-08 11:44:05 +12:00
Kubernetes Prow Robot
8287e21228
Merge pull request #112299 from shyamjvs/gzip-level-change
Reduce default gzip compression level from 4 to 1 in apiserver
2022-09-07 15:28:38 -07: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
fd3d11608f
Updates dependencies to reflect Go version updates to 1.19.1
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 22:14:53 +05:30
Nabarun Pal
26b33246cd
Update Go version in test Makefile to 1.19.1
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 22:13:58 +05:30
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
Nabarun Pal
854b50ebe1
update the default go-runner version to v2.3.1-go1.19.1-bullseye.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 22:13:13 +05:30
Nabarun Pal
242649ee74
Update kube-cross version to v1.25.0-go1.19.1-bullseye.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 21:49:44 +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
Patrick Ohly
8349c77e82 e2e storage: better explanation for maxConcurrentConnections
This the same behavior as before, it just wasn't documented.
2022-09-07 17:05:22 +02:00
Kubernetes Prow Robot
a488f4b95c
Merge pull request #107515 from MikeSpreitzer/explain-reset-fields-failure
Make TestApplyResetFields exhibit surprising object
2022-09-07 07:14:37 -07:00
weilaaa
2b55c94e37 add symmetric difference in sets 2022-09-07 20:25:44 +08:00
Kubernetes Prow Robot
cae4c036c8
Merge pull request #112241 from xiaoliwang/simplified_regexp
Optimize: simplified regexp
2022-09-07 02:28:36 -07:00
demoManito
35c26f48e4 fix: map and slice create style 2022-09-07 17:10:13 +08:00
jiepeng
211e0a6496 simplified regexp 2022-09-07 15:51:36 +08:00
Kubernetes Prow Robot
3d3820bba3
Merge pull request #112257 from kerthcet/cleanup/modify-remove-release
Kube-scheduler: Deprecate Component config v1beta3
2022-09-06 23:54:36 -07:00
Kubernetes Prow Robot
4b9575acb8
Merge pull request #112272 from chendave/cleanupflags
kubeadm: using the existing exported method to add config flag
2022-09-06 22:26:36 -07:00
Alexander Zielenski
dbff8e117c
correct spacing 2022-09-06 20:58:50 -07:00
Dave Chen
6675bea8a2 kubeadm: using the existing exported method to add config flag
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-09-07 11:50:06 +08:00
Alexander Zielenski
3528fd7e47
add boilerplate 2022-09-06 19:51:47 -07:00
kerthcet
700065a18d Add deprecation warning of removing scheduler CC v1beta3
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-07 10:09:27 +08: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
6d1e9150d0
Merge pull request #108855 from haircommander/podStatsFix
kubelet/stats: deduplicate makePodStorageStats
2022-09-06 12:58:22 -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
Kubernetes Prow Robot
780fe01858
Merge pull request #111935 from giuseppe/userns-manager-use-bitmask-pkg-registry
kubelet: drop bitArray implementation
2022-09-06 10:27:51 -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
kerthcet
532d1df7ca Modify release version of removing scheduler CC v1beta2
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-06 14:15:55 +08:00
Marc Khouzam
09bbe37ce6 Add shell completion support to plugin example
The use of `kubectl_complete-ns` enables shell completion when calling
the plugin through `kubectl ns`.  The script only completes flag names
and namespace arguments.

Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
2022-09-05 20:46:05 -04:00
Marc Khouzam
befc8da7ef Add support for shell completion for plugins
When doing completion for arguments or flags for a plugin, kubectl will
call "kubectl_complete-<plugin>" to obtain the list of completions.
For example, for "krew" plugin, when the user triggers completion using:

$ kubectl krew <tab><tab>

kubectl will look for an executable file called "kubectl_complete-krew".
This file should print the list of valid completions for the plugin to
stdout.  Using cobra.ShellCompDirective as the last line of the output
is supported as is done by Cobra.

We also clear global flags when doing plugin completion because plugins
don't necessarily accept the global kubectl flags.  If some plugins do,
they will need to include such flags in their kubectl_complete-<plugin>
output.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2022-09-05 20:46:05 -04:00
Kazuki Suda
3db3ff53cd Add completion support for kubectl plugins
This commit allows us to get shell completion for kubectl plugins.

For example, with the use of a plugin named 'kubectl-krew', completing
   kubectl k<tab>
will include 'krew' in the list of possible completions.

Because the shell completion scripts are generated by Cobra, this commit
took the approach of registering every plugin as a Cobra command.  This
makes Cobra aware of each plugin command when generating completions.

For efficiency, searching for plugins and registering them as Cobra
commands is only done when needed, which is when calling the
'kubectl completion' command in the case of bash, as it includes all
commands and subcommands directly in the bash generated script.

For the other shells, this will need to be done for the
'kubectl __complete' command, in a follow-up command.

Co-authored-by: Marc Khouzam <marc.khouzam@montreal.ca>
Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com>
2022-09-05 20:08:23 -04:00
Patrick Ohly
0bd9a1a29a e2e storage: close all pending streams when proxy listener gets closed
After updating gRPC in node-driver-registrar from v1.40.0 to v1.47.0 the
behavior of gRPC change in a way such that it no longer detected the
single-sided closing of the stream as a loss of connection. This caused gRPC in
the e2e.test to get stuck, possibly in a Read or Write for the HTTP stream
because those have neither a context nor a timeout.

Changing the connection handling so that all active connections are tracking in
the listener and closing them when the listener gets closed fixed this problem.
2022-09-05 22:46:01 +02:00