Commit Graph

112816 Commits

Author SHA1 Message Date
SataQiu
bc4a13bd74 remove heapster rule from system:controller:horizontal-pod-autoscaler clusterrole 2023-01-04 16:28:42 +08:00
Kubernetes Prow Robot
41b442534d
Merge pull request #114738 from Fish-pro/cleanup/errorffmt
Remove duplicate fmt.Sprintf for logging
2023-01-03 18:26:10 -08:00
Kubernetes Prow Robot
8fcad2ea7e
Merge pull request #114570 from dengyufeng2206/1219pr
fix test order in controller/openapi/builder/builderst.go
2023-01-03 18:25:58 -08:00
Kubernetes Prow Robot
3f752b5edf
Merge pull request #114629 from kerthcet/feat/change-return-type-of-Filter
Modify the return type of RunFilterPlugins to *Status
2023-01-03 15:31:31 -08:00
Kubernetes Prow Robot
88c952d256
Merge pull request #114646 from jkh52/registerer
expose prometheus.Registerer so that we can hook into this from exter…
2023-01-03 12:13:33 -08:00
Kubernetes Prow Robot
83afc363a6
Merge pull request #114782 from skitt/vendor-license-submodules
Licensing: skip modules with fewer subdirs than mods
2023-01-03 10:35:46 -08:00
Kubernetes Prow Robot
5914f30fd7
Merge pull request #114757 from danwinship/drop-endpointstracker
Drop unused Endpoints-tracking code from pkg/proxy/
2023-01-03 10:35:35 -08:00
Kubernetes Prow Robot
12c71fdf1c
Merge pull request #113542 from ardaguclu/fix-shortname-disperancy
Set singular names for core types to pass to discovery
2023-01-03 09:29:43 -08:00
Kubernetes Prow Robot
b532f2b3e7
Merge pull request #112136 from pacoxu/migrate-runtime-endpoint-flags
kubelet: migrate container runtime endpoint flag to config
2023-01-03 09:29:31 -08:00
Stephen Kitt
f146b4287f
Licensing: skip modules with fewer subdirs than mods
This came up when updating go-oidc. After updating go-oidc (with its
dependency tree), cloud.google.com/go was no longer used as a package
import, but still listed in the module dependency graph; as a result,
"go mod vendor" no longer pulled in cloud.google.com/go itself, but
update-vendor-licenses.sh still wanted a license file for it since it
appeared in the list of modules.

This scenario is already supposed to be handled: when a module doesn't
contain any *files* as first-level content, if the number of
subdirectories it contains *equals* the number of submodules it
contains (excluding itself), the module is skipped. This fails for
cloud.google.com/go because several submodules are included in the
module dependency graph but aren't actually used, and therefore not
vendored.

Updating the test to check that the number of subdirectories is less
than or equal to the number of expected submodules fixes this.

The correct fix would be to process the submodules first, keeping a
note of which ones really have content, then check that the top-level
module only contains subdirectories corresponding to those modules;
but it's not clear to me that this is worth the effort (especially in
a shell script).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-01-03 16:48:35 +01:00
Kubernetes Prow Robot
e535bd8d24
Merge pull request #114770 from mimowo/fix-disruption-controller-error
Fix clearing of rate-limiter for the queue of checks for cleaning stale pod disruption conditions
2023-01-03 07:21:31 -08:00
Michal Wozniak
c3d0e8ff05 Fix clearing rate limiter in disruption controller 2023-01-03 15:06:06 +01:00
Dan Winship
fe2b658ef5 Drop unused Endpoints-only tracking code in kube-proxy
This leaves the code in a somewhat messy state but it can be improved
further later.
2023-01-03 09:03:49 -05:00
Dan Winship
c78b057d85 Port TestUpdateEndpointsMap from Endpoints tracker to EndpointSlice
This is an ugly-but-simple rewrite (particularly involving having to
rewrite "single Endpoints with multiple Subsets" as "multiple
EndpointSlices"). Can be cleaned up more later...

The slice code sorts the results slightly differently from the old
code in two cases, and it was simpler to just reorder the expectations
rather than fixing the comparison code. But other than that, the
expected results are exactly the same as before.
2023-01-03 09:03:46 -05:00
Dan Winship
cc1847e6ee Port TestLastChangeTriggerTime from Endpoints tracker to EndpointSlice
This exposed a bug in the EndpointSlice tracking code, which is that
we didn't properly reset the "last change time" when a slice was
deleted. (This means kube-proxy would report an erroneous value in the
"endpoint programming time" metric if a service was added/updated,
then deleted before kube-proxy processed the add/update, then later
added again.)
2023-01-03 09:03:34 -05:00
Kubernetes Prow Robot
4e70155dbd
Merge pull request #114736 from andyzhangx/fix-tryUnmount
fix: tryUnmount should respect mounter.withSafeNotMountedBehavior
2023-01-03 05:37:30 -08:00
Kante Yin
49e7e80999 Modify the return type of RunFilterPlugins to *Status
Before, the return type of RunFilterPlugins is a Map, but considering we'll return immediately
once we met unsuccessful status, this is not necessary.

Signed-off-by: Kante Yin <kerthcet@gmail.com>
2023-01-03 14:33:58 +08:00
Kubernetes Prow Robot
1edbb8cf1a
Merge pull request #114719 from chendave/cleanup_copy
kubeadm: return the output from stdout and stderr
2023-01-02 19:49:31 -08:00
Dave Chen
fd60b9c492 kubeadm: return the output from stdout and stderr
It was just saying the copy of file failed with `exit status 1`,
no much details for what's going wrong.

Combine the stderr and stdout and show those info will be easier
for us to fix the problem.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-01-03 10:45:12 +08:00
Kubernetes Prow Robot
5f0e7932f7
Merge pull request #114761 from pohly/e2e-storage-deterministic-order
e2e storage: define local PersistentVolume tests in deterministic order
2023-01-02 14:57:41 -08:00
Kubernetes Prow Robot
6dc493bb83
Merge pull request #114750 from aojea/cleanup_allocator
refactor current ipallocator
2023-01-02 14:57:31 -08:00
Kubernetes Prow Robot
56914fc137
Merge pull request #114754 from xmudrii/changelog-os-1.26
CHANGELOG-1.26: move OpenStack in-tree provider removal to urgent notes
2023-01-02 10:25:42 -08:00
Kubernetes Prow Robot
7759fdb940
Merge pull request #114528 from mpatlasov/fix-specModified-check
Fix installDriverToCSINode(): do not skip CSINode update if Allocatable.Count changed
2023-01-02 10:25:30 -08:00
Kubernetes Prow Robot
ca858e0c96
Merge pull request #114236 from dgrisonnet/fix-eventseries-race
Fix data race when emitting similar Events consecutively
2023-01-02 08:39:30 -08:00
Patrick Ohly
5636418f10 e2e storage: define local PersistentVolume tests in deterministic order
Ginkgo relies on all workers defining all tests in exactly the same order. This
wasn't guaranteed for these tests, with the result that some tests might have
been executed more than once and others not at all when running in parallel.

This was noticed when some of these tests started to flake and then were
reported both as failure and success, as if they had been retried.
2023-01-02 16:22:11 +01:00
Kubernetes Prow Robot
ba0dbdbd11
Merge pull request #114734 from yangjunmyfm192085/fixklogV0
use klog.InfoS instead of klog.V(0).InfoS-proxy part
2023-01-02 05:43:41 -08:00
Kubernetes Prow Robot
2b6c8420a2
Merge pull request #114237 from dgrisonnet/handle-series-error
Retry when recording an EventSerie results in an AlreadyExist error
2023-01-02 05:43:30 -08:00
Marko Mudrinić
c1f74466ea
CHANGELOG-1.26: move OpenStack in-tree provider removal to urgent notes
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-01-01 15:07:04 +01:00
Dan Winship
886c4b0cf2 Drop Endpoints-tracking-specific TestEndpointsToEndpointsMap
TestEndpointsToEndpointsMap tested code that only ran when using
Endpoints tracking rather than EndpointSlice tracking--which is to
say, never, any more. (TestEndpointsMapFromESC in
endpointslicecache_test.go is an equivalent EndpointSlice test.)
2022-12-31 12:03:23 -05:00
Antonio Ojea
29ea5076ea refactor current ipallocator
- rename files to match the allocator backend
- use t.Run for tests and cover large ranges
- add benchmarks
- check that thebitmap ip allocator satisfies the interface

goos: linux
goarch: amd64

pkg: k8s.io/kubernetes/pkg/registry/core/service/ipallocator
cpu: Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz
BenchmarkAllocateNextIPv4Size1048574
BenchmarkAllocateNextIPv4Size1048574-24    	 1517683
7373 ns/op	     135 B/op	       8 allocs/op
BenchmarkAllocateNextIPv6Size65535
BenchmarkAllocateNextIPv6Size65535-24      	 5607438
193.9 ns/op	      18 B/op	       2 allocs/op
PASS
2022-12-31 12:48:50 +00:00
Kubernetes Prow Robot
00aae4c10c
Merge pull request #114740 from kushagra98/master
Misleading message when there are no metrics.
2022-12-29 11:09:28 -08:00
Kushagra
80384bbb55 spelling mistake rectified 2022-12-29 17:55:17 +00:00
Kushagra
f380ef8b61 Misleading message when there are no metrics. 2022-12-29 10:57:43 +00:00
chen zechun
94ea99dab4 Remove duplicate fmt.Sprintf for logging 2022-12-29 17:39:10 +08:00
andyzhangx
776bbbb320 fix: tryUnmount with SafeNotMountedBehavior 2022-12-29 08:58:31 +00:00
JunYang
cc4126a010 use klog.InfoS instead of klog.V(0).Info-proxy part 2022-12-29 11:16:51 +08:00
Kubernetes Prow Robot
7eb9a75bf9
Merge pull request #114710 from thockin/document_group-version-to-pkg-path
simplify group-version-to-pkg-path()
2022-12-27 13:41:28 -08:00
Kubernetes Prow Robot
24490fdd65
Merge pull request #114704 from thockin/codegen_safer_xargs
codegen: safer use of 'sort' and 'xargs'
2022-12-27 10:45:28 -08:00
Tim Hockin
77e41786a2
simplify group-version-to-pkg-path() 2022-12-27 10:34:44 -08:00
Kubernetes Prow Robot
136eb9c203
Merge pull request #114705 from thockin/codegen_subproject_cleanup
Cleanup codegen subproject scripts
2022-12-27 07:59:40 -08:00
Kubernetes Prow Robot
1e523a36b2
Merge pull request #114700 from kerthcet/cleanup/replace-deprecated-function-in-pointer
Replace deprecated pointer function in scheduler tests
2022-12-27 07:59:29 -08:00
Kubernetes Prow Robot
e54e97294f
Merge pull request #114708 from thockin/verify_swagger_git_subtree
Make verify-generated-swagger-docs use worktree
2022-12-27 05:57:38 -08:00
Kubernetes Prow Robot
33e284fcd8
Merge pull request #114707 from thockin/verify_yamlfmt_git_subtree
Make verify-yamlfmt.sh use git worktree
2022-12-27 05:57:27 -08:00
Kubernetes Prow Robot
659a792f84
Merge pull request #114709 from thockin/remove_gengo_dep
Remove dep on gengo
2022-12-27 02:15:27 -08:00
Kubernetes Prow Robot
5e969c3568
Merge pull request #114706 from thockin/verify_mocks_git_subtree
Make verify-mocks.sh use git worktree
2022-12-26 22:01:27 -08:00
Kubernetes Prow Robot
04cba00205
Merge pull request #114711 from thockin/shell_array_instead_of_string
make update: Use a shell array instead of string
2022-12-26 20:37:27 -08:00
Tim Hockin
b5c5913db0
Make verify-generated-swagger-docs use worktree
Also move a function into these files that was only used in the one
place.
2022-12-26 17:17:33 -08:00
Tim Hockin
90e290e495
Make verify-yamlfmt.sh use git worktree 2022-12-26 17:14:58 -08:00
Tim Hockin
ff7ba89b1c
Make verify-mocks.sh use git worktree 2022-12-26 17:14:14 -08:00
Tim Hockin
db1f27896f
make update: Use a shell array instead of string 2022-12-26 16:24:16 -08:00