Commit Graph

49606 Commits

Author SHA1 Message Date
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
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
Kubernetes Prow Robot
b2a8ac15a0 Merge pull request #124221 from arturhoo/fix-spelling-scheduler-metrics
scheduler: fix typo in metric pod_scheduling_sli_duration_seconds help
2024-04-18 10:46:19 -07:00
Kubernetes Prow Robot
bbfd2145de Merge pull request #124091 from bitoku/dra-nil-check
kubelet: add nil check for Node(Un)PrepareResources.
2024-04-18 10:46:05 -07:00
Dan Winship
fdf22533a8 KEP-3866 kube-proxy nftables mode to beta 2024-04-18 13:20:23 -04:00
Kubernetes Prow Robot
b2c32fb015 Merge pull request #123105 from danwinship/nodeport-addresses-primary
Add `--nodeport-addresses primary`, warn on empty `--nodeport-addresses`
2024-04-18 08:49:21 -07:00
chenk008
4abc2b387b Fix: StorageObjectCountTracker is nil, apf estimator got ObjectCountNotFoundErr 2024-04-18 22:50:18 +08:00
Kubernetes Prow Robot
573832a42f Merge pull request #122892 from danwinship/codegen-nil
Fix generated fake clients to have same semantics as real clients on error
2024-04-18 07:48:14 -07:00
Kubernetes Prow Robot
2f2c1fb811 Merge pull request #124210 from thockin/remove_gate_SkipReadOnlyValidationGCE
Remove the gate "SkipReadOnlyValidationGCE"
2024-04-18 06:31:39 -07:00
Dan Winship
3ecd933276 fix/simplify an nftables unit test
The nodeport-ips value is part of the baseline, which wouldn't change
no matter what Services or EndpointSlices we added/removed.
2024-04-18 09:25:06 -04:00
Dan Winship
19b3a9e194 (Mostly) Revert "change --nodeport-addresses behavior to default to primary node ip only"
This reverts commit 8bccf4873b, except
for the nftables unit test changes, since we still want the "new"
results (not to mention the bugfixes), just for a different reason
now.
2024-04-18 09:25:06 -04:00
Dan Winship
0b599aa8e3 Add --nodeport-addresses primary
The behavior when you specify no --nodeport-addresses value in a
dual-stack cluster is terrible and we can't fix it, for
backward-compatibility reasons. Actually, the behavior when you
specify no --nodeport-addresses value in a single-stack cluster isn't
exactly awesome either...

Allow specifying `--nodeport-addresses primary` to get the
previously-nftables-backend-specific behavior of listening on only the
node's primary IP or IPs.
2024-04-18 09:25:06 -04:00
Dan Winship
cd980ee076 Fix unit tests that expected the old FakeClient semantics 2024-04-18 08:23:16 -04:00
Kubernetes Prow Robot
951e624ada Merge pull request #124320 from liangyuanpeng/drop-ptr-wrappers-pkg-registry
pkg/registry: drop pointer wrapper functions.
2024-04-18 04:24:32 -07:00
Kubernetes Prow Robot
32a3cbc51d Merge pull request #124245 from wojtek-t/informer_options
Allow for configuring MinWatchTimeout in reflector
2024-04-18 03:24:57 -07:00
Kubernetes Prow Robot
9c9a9b7c48 Merge pull request #124242 from carlory/cleanup-after-NewVolumeManagerReconstruction-ga
remove unneeded func SyncReconstructedVolume from ActualStateOfWorld
2024-04-18 03:24:50 -07:00
Kubernetes Prow Robot
745f56ea2b Merge pull request #124215 from tk3fftk/patch-2
fix: add delay to log message when enqueueing a job
2024-04-18 03:24:36 -07:00
Kubernetes Prow Robot
eb2a59e8d8 Merge pull request #124214 from Monokaix/dev
fix wrong comments of dra
2024-04-18 03:24:28 -07:00
Kubernetes Prow Robot
3188cbd1b3 Merge pull request #124113 from krzysdabro/nodeipam-pooling
nodeipam: poll nodes immediately
2024-04-18 03:23:33 -07:00
Kubernetes Prow Robot
dbaf5d667f Merge pull request #124062 from alculquicondor/nodename-api-comment
Update API comment for nodeName to match system behavior
2024-04-18 02:11:56 -07:00
Kubernetes Prow Robot
846e282d05 Merge pull request #124055 from yangjunmyfm192085/optklogprint
Optimize klog output(Use klog.KObj(pod) instead of pod)
2024-04-18 02:11:47 -07:00
Kubernetes Prow Robot
1646f2cfdb Merge pull request #124015 from carlory/cleanup-ephemeral
Visit ephemeral containers when calculating fs user
2024-04-18 02:11:20 -07:00