Kubernetes Prow Robot
ae8474adcd
Merge pull request #124557 from danwinship/metrics-and-stuff
...
kube-proxy metrics cleanup (and stuff)
2024-04-26 18:31:57 -07:00
Kubernetes Prow Robot
3d49956fde
Merge pull request #123795 from saschagrunert/metrics-remote-runtime
...
Decouple `kubelet/cri/remote` package from `kubelet/metrics`
2024-04-26 18:31:48 -07:00
Dr. Stefan Schimanski
7e0fea2331
kube-apiserver/aggregator: remove unused PeerCAFile in config
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-04-26 23:22:09 +02:00
Kubernetes Prow Robot
563885e4bd
Merge pull request #124551 from sttts/sttts-kube-apiserver-config-split
...
pkg/controlplane: split up config into generic controlplane and kube-related part
2024-04-26 14:16:12 -07:00
Kubernetes Prow Robot
4b2d1b6a20
Merge pull request #124529 from danwinship/localtraffic-cleanup-1
...
LocalTrafficDetector implementation cleanup
2024-04-26 14:16:03 -07:00
Kubernetes Prow Robot
cffc2c0b40
Merge pull request #124102 from pohly/dra-scheduler-assume-cache
...
scheduler: move assume cache to utils
2024-04-26 08:49:12 -07:00
Dr. Stefan Schimanski
96a144c977
Address comments
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-04-26 17:47:30 +02:00
Dan Winship
c4dd2c5ad7
Re-enable V(9) transaction logging in nftables proxy
2024-04-26 11:41:51 -04:00
Dan Winship
d4e6e62134
Add nftables cleanup failure metric, fix cleanup bug
...
If the sync fails, don't try to cleanup, since it's guaranteed to fail
too.
2024-04-26 11:41:51 -04:00
Dan Winship
3db434d6be
Remove errors from LocalTrafficDetector constructors
...
The constructors only return an error if you pass them invalid data,
but we only ever pass them data which has already been validated,
making the error checking just annoying. Just make them return garbage
output if you give them garbage input.
2024-04-26 11:34:37 -04:00
Dan Winship
fc05a294cc
Rename nftables sync failure metric
2024-04-26 09:27:41 -04:00
Dan Winship
1823de063b
fix "Iptables" -> "IPTables" in metrics variable names
2024-04-26 09:27:41 -04:00
Dan Winship
ba57fd7c84
Merge linux and windows kube-proxy metric registration together
...
Windows proxy metric registration was in a separate file, which had
led to some metrics (eg the new ProxyHealthzTotal and ProxyLivezTotal)
not being registered for Windows even though they were implemented by
platform-generic code.
(A few other metrics were neither registered on, nor implemented on
Windows, and that's probably a bug.)
Also, beyond linux-vs-windows, make it clearer which metrics are
specific to individual backends.
2024-04-26 09:27:41 -04:00
Dr. Stefan Schimanski
e37917fea7
pkg/controlplane: split up config into generic controlplane and kube-related part
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-04-26 14:14:06 +02:00
Kubernetes Prow Robot
bf454d7c59
Merge pull request #124516 from danwinship/cloud-hostname-override
...
Fix behavior with external cloud provider and --hostname-override
2024-04-25 14:47:24 -07:00
Dan Winship
59cecf8a36
Simplify redundant LocalTrafficDetector implementations
...
All of the LocalTrafficDetector implementations were essentially
identical after construction time, so just reduce them to a single
implementation with multiple constructors.
Also, improve the comments.
2024-04-25 08:52:35 -04:00
Dan Winship
dc1155bd53
Move LocalTrafficDetector from pkg/proxy/util/iptables to pkg/proxy/util
...
Since it's used for nftables as well now.
2024-04-25 08:51:43 -04:00
Dan Winship
30972710bd
Fix behavior with external cloud provider and --hostname-override
2024-04-25 08:12:04 -04:00
Patrick Ohly
7f54c5dfec
scheduler: remove AssumeCache interface
...
There's no reason for having the interface because there is only one
implementation. Makes the implementation of the test functions a bit
simpler (no casting). They are still stand-alone functions instead of methods
because they should not be considered part of the "normal" API.
2024-04-25 11:46:58 +02:00
Patrick Ohly
26e0409c36
scheduler: move assume cache to utils, part 2
...
This is now used by both the volumebinding and dynamicresources plugin, so
promoting it to a common helper package is better.
In terms of functionality, nothing was changed. Documentation got
updated (warns about storing locally modified objects, clarifies what the Get
parameters are). Code coverage should be a bit better than before (tested with
and without indexer, exercises event handlers, more error paths).
Checking for specific errors can now be done via errors.Is.
2024-04-25 11:45:43 +02:00
Patrick Ohly
910b90fca3
scheduler: move assume cache to utils, part 1
...
This is a verbatim move resp. copy of the files. They don't build in their new
location yet.
2024-04-25 10:49:41 +02:00
Kubernetes Prow Robot
58788c2f7b
Merge pull request #124466 from serathius/featuregate-defer
...
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 15:31:21 -07:00
Kubernetes Prow Robot
bc05bef903
Merge pull request #124352 from wojtek-t/idempotent_transformer_func
...
Idempotent transformers in scheduler & kcm
2024-04-24 12:35:02 -07:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Kubernetes Prow Robot
06db9962f8
Merge pull request #124452 from danwinship/proxy-config-unit-tests
...
KubeProxyConfig unit test cleanups
2024-04-24 09:47:35 -07:00
Kubernetes Prow Robot
0f06328096
Merge pull request #124469 from serathius/etcd-3.5.13
...
Upgrade etcd libraries to v3.5.13
2024-04-24 08:38:17 -07:00
bells17
1c917aa463
component-helpers: Support structured and contextual logging ( #120637 )
2024-04-24 03:06:15 -07:00
Marek Siarkowicz
3e5b03eb43
Upgrade etcd libraries to v3.5.13
...
Add otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents) to tracing options due to https://github.com/open-telemetry/opentelemetry-go-contrib/pull/3964
2024-04-24 09:56:39 +02:00
Kubernetes Prow Robot
6289589509
Merge pull request #124075 from pohly/dra-api-comments
...
DRA: API cleanup + fix
2024-04-23 15:07:50 -07:00
Daman Arora
a577c0b324
kube-proxy: refactor config validation unit test
...
Refactor the TestValidateKubeProxyConfiguration by adding a mutating
function that adjusts the configuration according to each test case,
thereby enhancing readability.
Signed-off-by: Daman Arora <aroradaman@gmail.com >
2024-04-23 09:03:42 -04:00
Dan Winship
f4ecae8324
Use t.Run and assert.Equal in KubeProxyConfiguration validation tests
2024-04-23 09:03:23 -04:00
Dan Winship
7b9f730804
Merge success and failure cases in KubeProxyConfiguration validation tests
2024-04-23 09:03:23 -04:00
Dan Winship
c7f3caf498
Add names to all KubeProxyConfiguration validation test cases
2024-04-23 09:03:21 -04:00
Kubernetes Prow Robot
8dd9d1a6bb
Merge pull request #122979 from fatsheep9146/pkg-proxy-support-contextual-logging
...
Migrate `pkg/proxy` to contextual logging: Part 1
2024-04-23 02:43:04 -07:00
Dan Winship
7320e54e0e
Split Linux/Windows TestValidateKubeProxyMode
2024-04-22 18:25:01 -04:00
Patrick Ohly
acfaf8c275
DRA: sync internal API doc comments
...
This had been done before for types.go, but namedresources.go still had one
small diff.
While at it, fix some typos.
2024-04-22 14:18:45 +02:00
Kubernetes Prow Robot
f106fb7449
Merge pull request #124409 from pohly/dra-scheduler-unit-test-fix
...
dra scheduler: fix data race in unit test
2024-04-22 04:35:34 -07:00
Ziqi Zhao
be4535bd34
convert k8s.io/kubernetes/pkg/proxy to contextual logging, part 1
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com >
2024-04-22 13:08:41 +08:00
Kubernetes Prow Robot
74877bb43b
Merge pull request #124417 from thockin/remove_gate_DefaultHostNetworkHostPortsInPodTemplates
...
Remove gate DefaultHostNetworkHostPortsInPodTemplates
2024-04-21 18:39:33 -07:00
Kubernetes Prow Robot
7f68d014e5
Merge pull request #123749 from iholder101/swap_log/only_once_avoid_spam
...
[KEP2400] Avoid logging that swap cgroup controller is missing for every container
2024-04-19 17:00:46 -07:00
Kubernetes Prow Robot
534d7cbc1a
Merge pull request #123905 from aojea/field_selector
...
Field selector for Services based on ClusterIP and Type
2024-04-19 15:30:55 -07:00
Tim Hockin
a2fb1b51ac
Remove DefaultHostNetworkHostPortsInPodTemplates gate
...
This behavior was deprecated in 1.28.
2024-04-19 15:24:15 -07:00
Kubernetes Prow Robot
5a71f37805
Merge pull request #124316 from pohly/dra-kubelet-remove-v1alpha2
...
DRA: remove support for v1alpha2 kubelet gRPC API
2024-04-19 14:18:52 -07:00
Kubernetes Prow Robot
3d58fe5a7b
Merge pull request #123970 from carlory/rm-volumelimit-interface
...
remove VolumePluginWithAttachLimits interface
2024-04-19 10:36:11 -07:00
Patrick Ohly
77341f7595
DRA: remove support for v1alpha2 kubelet API
...
The v1alpha2 API is several releases old. No current drivers should still
depend on it.
2024-04-19 18:27:05 +02:00
Patrick Ohly
a66d2163f9
dra scheduler: fix data race in unit test
...
Clearing some irrelevant fields in objects caused a flaky data race alert
because in some cases, the objects were pointers into a shared cache. A better
solution is to treat the objects as read-only and ignore the irrelevant fields.
2024-04-19 17:14:13 +02:00
Kubernetes Prow Robot
69b648a1d7
Merge pull request #124223 from chenk008/fix_apf_countTracker
...
Fix: EtcdOptions.StorageObjectCountTracker is nil, APF estimator got ObjectCountNotFoundErr
2024-04-19 01:56:35 -07:00
chenk008
c5d0e59d45
Update pkg/controlplane/apiserver/config_test.go
...
Co-authored-by: Paco Xu <paco.xu@daocloud.io >
2024-04-19 11:11:21 +08:00
Kubernetes Prow Robot
bf07ef3950
Merge pull request #124383 from danwinship/nftables-proxy-to-beta
...
KEP-3866 kube-proxy nftables to beta
2024-04-18 17:42:20 -07:00
Kubernetes Prow Robot
fd40d68a39
Merge pull request #123238 from MirrorShih/master
...
Fix infinite loop and replace channel with queue
2024-04-18 14:30:07 -07:00