Commit Graph

112853 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d9af380f91
Merge pull request #114749 from danwinship/drop-endpointshandler
Drop unused EndpointsHandler / EndpointsConfig from pkg/proxy/config
2023-01-05 03:58:09 -08:00
Kubernetes Prow Robot
0b0eaf3195
Merge pull request #108912 from 249043822/e2e-restart
Fix:[Flake] [sig-node] Restart [Serial] [Slow] [Disruptive] Kubelet hould correctly account for terminated pods after restart
2023-01-05 03:57:58 -08:00
Kubernetes Prow Robot
c97dbd1afb
Merge pull request #113654 from stevekuznetsov/skuznets/fake-group-name-registration
code-generator: refer to the API package for GV{R,K}
2023-01-05 02:23:59 -08:00
Kubernetes Prow Robot
bc61d70055
Merge pull request #114834 from chendave/regression
kubeadm: unittest might run as non-root
2023-01-05 00:51:59 -08:00
Kubernetes Prow Robot
ca2f095cc7
Merge pull request #114826 from liggitt/fix-license-script
Fix verify-licenses script
2023-01-04 23:03:59 -08:00
Dave Chen
49732716de kubeadm: unittest might run as non-root
Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-01-05 12:13:19 +08:00
Kubernetes Prow Robot
293bf70916
Merge pull request #114829 from liggitt/oauth-revert
Revert "bump golang.org/x/oauth2"
2023-01-04 18:49:58 -08:00
ZhangKe10140699
572360c5a5 Fix:[Flake] [sig-node] Restart [Serial] [Slow] [Disruptive] Kubelet should correctly account for terminated pods after restart 2023-01-05 09:10:57 +08:00
Kubernetes Prow Robot
492637878f
Merge pull request #111660 from pacoxu/key-encipherment-v1.26
Key encipherment usage  v1.27
2023-01-04 15:51:57 -08:00
Jordan Liggitt
9f07c8e346
Revert "bump golang.org/x/oauth2"
This reverts commit fc9a140bad.
2023-01-04 17:58:08 -05:00
Kubernetes Prow Robot
76e881d4d5
Merge pull request #114817 from TommyStarK/plugin-pkg-admission/replace-deprecated-pointer-function
plugin/pkg/admission: Replace deprecated pointer function
2023-01-04 14:30:44 -08:00
Kubernetes Prow Robot
b05aa53fa1
Merge pull request #114796 from sanposhiho/sanposhiho/feature-gate-remove
cleanup(scheduler_perf): remove all removed feature gates
2023-01-04 14:30:32 -08:00
Kubernetes Prow Robot
92b113c48d
Merge pull request #114792 from apelisse/typeconverter-swagger
Hide OpenAPI details behind the NewTypeConverter
2023-01-04 14:30:21 -08:00
Kubernetes Prow Robot
6927c85268
Merge pull request #114789 from jkh52/thirty-five
Bump konnectivity-client to v0.0.35
2023-01-04 14:30:10 -08:00
Kubernetes Prow Robot
ac889a0251
Merge pull request #113581 from aimuz/verify-tls-secret
Verify that the key matches the cert
2023-01-04 14:29:58 -08:00
Kubernetes Prow Robot
4e800983fb
Merge pull request #113348 from seans3/prune-ssa-fix
Disallow prune for server-side applied objects
2023-01-04 13:07:58 -08:00
Jordan Liggitt
cafc791aab
Fix verify-licenses script 2023-01-04 15:45:41 -05:00
Steve Kuznetsov
e13198ec6f
code-generator: refer to the API package for GV{R,K}
There should only be one source of truth for the API group's name and
version.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2023-01-04 13:21:45 -07:00
Kubernetes Prow Robot
4e785dc7e3
Merge pull request #114822 from liggitt/oauth2
bump golang.org/x/oauth2
2023-01-04 10:26:00 -08:00
Kubernetes Prow Robot
3f05d41a41
Merge pull request #114801 from SataQiu/fix-hpa-rbac
Remove heapster rule from system:controller:horizontal-pod-autoscaler clusterrole
2023-01-04 08:24:01 -08:00
Jordan Liggitt
fc9a140bad
bump golang.org/x/oauth2 2023-01-04 11:16:43 -05:00
Kubernetes Prow Robot
0b2e54123f
Merge pull request #114774 from kkkkun/update-normal-request-metric-verb
Fix normal request metric verb correctly
2023-01-04 06:03:59 -08:00
TommyStarK
d570ab8bc5 plugin/pkg/admission: Replace deprecated pointer function
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-01-04 14:12:32 +01:00
Kubernetes Prow Robot
c1ca3191d5
Merge pull request #114803 from TommyStarK/registry/replace-deprecated-pointer-function
pkg/registry: Replace deprecated pointer function
2023-01-04 04:48:00 -08:00
weizhi
575616cc72
fix: kubelet event about unattached volumes is incorrect (#112719)
* fix kubelet event

* add ut

* fix ut
2023-01-04 01:51:59 -08:00
TommyStarK
e2d8fc3f62 pkg/registry: Replace deprecated pointer function
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-01-04 10:38:09 +01:00
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
Kensei Nakada
e8092cc885 cleanup(scheduler_perf): remove all removed feature gates 2023-01-04 01:07:47 +00:00
Antoine Pelisse
a7ab6b86db Hide OpeAPI details behind the NewTypeConverter
The fact that we're building the OpenAPI using the proto.Models is an
implementation detail that we shouldn't have to expose. Since we're
going to change the way this is transformed, let's first hide it behind
the common NewTypeConverter so that the next change is transparent.

This will also enable other clean-ups like hiding the gvkParser which
shouldn't be exposed and prevent some refactoring.
2023-01-03 15:48:11 -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
Joseph Anttila Hall
7df98deda0 Bump konnectivity-client to v0.0.35
./hack/pin-dependency.sh sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.35
./hack/update-codegen.sh
./hack/update-vendor.sh

Manual adjustments:
vendor/modules.txt
cluster/gce/addons/konnectivity-agent/konnectivity-agent-ds.yaml
cluster/gce/manifests/konnectivity-server.yaml
2023-01-03 20:23:29 +00: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
kkkkun
0b6e641810 Fix normal request metric verb correctly
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-01-03 13:16:55 +00: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