Commit Graph

118676 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d924775d78
Merge pull request #120750 from pohly/test-output-init-fix
e2e framework: adapt unit test to Go 1.22
2023-09-27 06:26:10 -07:00
Kubernetes Prow Robot
fe6d64d080
Merge pull request #120402 from Rei1010/storageClean
e2e_storage:stop using deprecated framework.ExpectNotEqual
2023-09-27 05:14:08 -07:00
Dr. Stefan Schimanski
6395049176
controlplane: make option structs uniformly optional
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2023-09-27 11:22:37 +02:00
Kubernetes Prow Robot
c989473dc8
Merge pull request #120894 from caoyingjunz/caoyingjunz-patch-1
Fix typos: update Enpoint to Endpoint
2023-09-27 02:01:24 -07:00
Lukasz Szaszkiewicz
a97f4b7a31 endpoints/metrics: define watchListLatencies metric and associated functions 2023-09-27 09:29:19 +02:00
Patrick Ohly
5dc540ff57 k8s.io/client-go/tools/events: pass context into EventSink methods
Because the EventBroadcaster code now has a a context, changing the EventSink
interface so that the methods accepts a context instead of using context.TODO
becomes possible.
2023-09-27 09:06:12 +02:00
Patrick Ohly
27a68aee3a k8s.io/client-go/tools: support context for event recording
Using StartRecordingToSinkWithContext instead of StartRecordingToSink and
StartLogging instead of StartStructuredLogging has several advantages:

- Spawned goroutines no longer get stuck for extended periods of
  time during shutdown when passing in a context that gets canceled.
- Log output can be directed towards a specific logger instead of the global
  default, for example one which writes to a testing.T instance.
- The new methods return an error when something went wrong instead of
  merely recording the error.

That last point is the reason for deprecating the old methods instead of merely
adding new alternatives.

Setting a context when constructing an EventBroadcaster makes calling Shutdown
optional. It can also be used to specify the logger.

Both EventRecorder interfaces in tools/events and tools/record now have a
WithLogger helper. Using that method is optional, but recommended to support
contextual logging properly. Without it, errors that occur while emitting an
event are not associated with the caller.
2023-09-27 09:06:09 +02:00
Lukasz Szaszkiewicz
772b1f4cd8 handlers/watch: calculate and record WatchList latency metric. 2023-09-27 09:03:52 +02:00
Kubernetes Prow Robot
36b474b008
Merge pull request #120893 from dims/build-kubelet-with-cgo-for-sig-node-e2e-tests-not-ginkgo
Build kubelet with CGO for sig-node e2e tests (not ginkgo)
2023-09-26 21:05:21 -07:00
Davanum Srinivas
4d2d9947bf
Deprecate cloud-provider/cloud-config in apiserver CLI
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-26 16:05:01 -04:00
Evan Lezar
394bcaf182 Only configure swap if available on node
This change bypasses all logic to set swap in the linux container
resources if a swap controller is not available on node. Failing
to do so may cause errors in runc when starting a container with
a swap configuration -- even if this is set to 0.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-09-26 21:32:58 +02:00
Kubernetes Prow Robot
139fa69620
Merge pull request #120877 from soltysh/unbound_variable
Default clientset_pkg and clientset_name variables
2023-09-26 12:05:09 -07:00
Kubernetes Prow Robot
bb024e1f91
Merge pull request #120347 from shijinye/e2eclean
e2e_network:stop using deprecated framework.ExpectError
2023-09-26 12:04:59 -07:00
Dan Winship
2b973806bc Remove remaining unnecessary assertIPTablesRulesEqual checks
TestLoadBalancer and TestHealthCheckNodePort still had iptables rules
checks, but they also have sufficient runPacketFlowTests checks to
cover everything we care about.

(This leaves only TestOverallIPTablesRules and
TestSyncProxyRulesRepeated using assertIPTablesRulesEqual.)
2023-09-26 13:01:25 -04:00
Dan Winship
de077f448e Rename TestNonLocalExternalIPs to TestExternalTrafficPolicyCluster
For consistency with TestExternalTrafficPolicyLocal, test all of the
Cluster external traffic policy cases together here (ensuring that
masquerading happens where needed). Drop the assertIPTablesRulesEqual
test in favor of runPacketFlowTests.
2023-09-26 13:01:25 -04:00
Dan Winship
19f19e2f4f Merge the ExternalTrafficPolicy: Local tests together
Merge TestOnlyLocalExternalIPs, TestOnlyLocalLoadBalancing, and
TestOnlyLocalNodePorts together into TestExternalTrafficPolicyLocal.
Drop the assertIPTablesRulesEqual tests in favor of
runPacketFlowTests.

Remove TestOnlyLocalNodePortsNoClusterCIDR; the relevant bits of the
"no local detector" case are already fully covered by
TestInternalExternalMasquerade.
2023-09-26 13:01:23 -04:00
Dan Winship
ff5f5bc161 Merge several NodePort tests into TestNodePorts
Previously we had TestNodePort, which tested basic NodePort behavior,
plus Test{Enable,Disable}LocalhostNodePorts{IPv4,IPv6} to test the
behavior of --localhost-nodeports under IPv4 and IPv6, plus
TestDisableLocalhostNodePortsIPv4WithNodeAddress to test
--nodeport-addresses.

Merge all of these together into TestNodePorts, and use
runPacketFlowTests to check the results rather than
assertIPTablesRulesEqual.

The packet tracer is not full-featured enough to be able to check the
"anti martian packet spoofing" rule, so we check the iptables dump for
that manually.

(This also fixes the --localhost-nodeport tests to use the same IP
ranges as most of the other tests now.)
2023-09-26 12:01:28 -04:00
Dan Winship
f38231d568 Merge all the "reject when no endpoints" tests together
Merge TestClusterIPReject, TestExternalIPsReject, TestNodePortReject,
and TestLoadBalancerReject into a single test.

Also remove the assertIPTablesRulesEqual tests because the packet flow
tests cover all of the details we care about here.
2023-09-26 12:00:19 -04:00
Dan Winship
2435da11d5 Rewrite TestClusterIPEndpointsMore as TestClusterIPGeneral
Create some ClusterIP services and use runPacketFlowTests to test
general functionality:

  - normal connection
  - hairpin connection
  - multiple endpoints
  - port != targetPort
  - multiple protocols on same port

Remove the assertIPTablesRulesEqual test because the packet flow tests
cover all of the details we care about here.
2023-09-26 12:00:19 -04:00
Dan Winship
ce7ffa8175 Extend iptables packet tracer to support multiple node IPs 2023-09-26 12:00:17 -04:00
Kubernetes Prow Robot
e602e9e03c
Merge pull request #120865 from aojea/remotecmd_flake
deflake TestWebSocketClient_HeartbeatSucceeds
2023-09-26 06:50:14 -07:00
Kubernetes Prow Robot
ca1371ebfa
Merge pull request #120423 from saschagrunert/gci-mounter-static
Document `cluster/gce/gci/mounter` as static binary
2023-09-26 06:50:00 -07:00
caoyingjunz
2172ea6083
Fix typos: update Enpoint to Endpoint 2023-09-26 21:23:44 +08:00
Abu Kashem
6297067ff1
apf: request ejected from queue should use reason 'time-out' 2023-09-26 08:55:23 -04:00
Abu Kashem
11ef9514da
apf: remove RequestWaitLimit from queueset config 2023-09-26 08:55:23 -04:00
Abu Kashem
da8a472206
apf: remove timeoutOldRequestsAndRejectOrEnqueueLocked function 2023-09-26 08:55:22 -04:00
Abu Kashem
f39213a7e4
apf: use context for queue wait 2023-09-26 08:55:13 -04:00
Davanum Srinivas
52f5093d77
Build kubelet with CGO for sig-node e2e tests (not ginkgo)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-26 08:32:59 -04:00
Maciej Szulik
9b32d2f67d
Default clientset_pkg and clientset_name variables 2023-09-26 11:39:03 +02:00
Kubernetes Release Robot
46835f8792 CHANGELOG: Update directory for v1.29.0-alpha.1 release 2023-09-25 16:57:38 +00:00
Akhil Mohan
2ce4f85a46
update verify script to check deprecated fields
Signed-off-by: Akhil Mohan <makhil@vmware.com>
2023-09-25 21:37:40 +05:30
Kubernetes Prow Robot
1c651cf739
Merge pull request #120817 from bertinatto/fix-panic-vsphere
e2e: bootstrap vsphere tests earlier
2023-09-25 08:57:36 -07:00
Kubernetes Prow Robot
9410de78b2
Merge pull request #120872 from p0lyn0mial/upstream-has-initial-events-annotation
storage/util: introduce HasInitialEventsEndBookmarkAnnotation
2023-09-25 07:47:25 -07:00
Lukasz Szaszkiewicz
70ae9c441c storage/util: introduce HasInitialEventsEndBookmarkAnnotation 2023-09-25 15:41:14 +02:00
Kubernetes Prow Robot
fcfc2d05a4
Merge pull request #119557 from p0lyn0mial/upstream-watch-list-etcd-store
Add support for API streaming to the etcd store implementation
2023-09-25 04:32:58 -07:00
Antonio Ojea
4a74958b2d deflake TestWebSocketClient_HeartbeatSucceeds
Change-Id: I1f3331255ed81183b25ec24084c00d0cf7dfb510
2023-09-25 10:31:46 +00:00
Lukasz Szaszkiewicz
ca562fd280 storage/etcd: the watcher supports the API streaming 2023-09-25 12:26:38 +02:00
Kubernetes Prow Robot
c6bb90aeea
Merge pull request #120852 from bzsuni/cleanup/sets/scheduler
use generic Set in scheduler
2023-09-25 01:52:57 -07:00
Kubernetes Prow Robot
3cbfa3e2cd
Merge pull request #120854 from dpasiukevich/patch-1
Remove dpasiukevich from cluster/addons/dns OWNERS
2023-09-24 15:24:57 -07:00
Dzmitry Pasiukevich
72b68b8003 Remove dpasiukevich from cluster/addons/dns OWNERS 2023-09-24 21:47:22 +02:00
Kubernetes Prow Robot
ba0505319e
Merge pull request #120851 from dhruvmehtaaa/remove-code
Remove an old compatibility check/warning
2023-09-24 12:28:57 -07:00
bzsuni
b71d7f9305 use generic Set in scheduler
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-09-24 22:46:55 +08:00
dhruvmehtaaa
7c5219438d Remove an old compatibility check/warning 2023-09-24 20:08:40 +05:30
Kubernetes Prow Robot
c5cf0ac188
Merge pull request #120836 from jkh52/knp-0.28.0
Bump Konnectivity to 0.28.0
2023-09-23 07:02:57 -07:00
Joseph Anttila Hall
1b602ffd9a
Bump Konnectivity to 0.28.0 2023-09-22 13:10:24 -07:00
Dezhou Jiang
06deb49d2c Fix panic testing intree vSphere dynamic PV.
Change-Id: I9d1ee7f49f01c3308b967d84865fa6bcfafc4b0d
2023-09-22 18:58:44 +00:00
Dan Winship
0910fe4b98 Extend iptables packet tracer to check the protocol 2023-09-22 11:41:21 -04:00
Dan Winship
a25fb03c00 Add assertIPTablesChainEquals, to streamline a few tests
Rather than checking the entire iptables dump, only check a single
chain.
2023-09-22 11:41:21 -04:00
Dan Winship
0ab0e404b8 Drop the now-unused assertIPTablesRulesNotEqual
Previously this was used to assert "something changed since the last
sync", but we already have packet flow tests in all of those cases now
to assert that the *specific* something we care about changed.
2023-09-22 11:41:21 -04:00
Dan Winship
4438f5e436 Remove assertIPTablesRulesEqual checks from terminating endpoints tests
The flow tests sufficiently check the results.

Also remove some irrelevant bits of the Service definition that don't
affect these tests.
2023-09-22 11:41:17 -04:00