Commit Graph

118708 Commits

Author SHA1 Message Date
carlory
98bad643cd e2e_apps: stop using deprecated framework.ExpectEqual 2023-10-01 10:30:00 +08:00
Antonio Ojea
566fad5eda add metrics to the ipallocator repair loop
The repair loop are great for saving us of leaks, but the side effect
is that bugs can go unnoticed for a long time, so we need some
signal to be able to identify those errors proactivily.

Add two new metrics to identify:
- errors on the reconcile loop
- errors per clusterip
2023-09-30 15:46:06 +00:00
Antonio Ojea
4eff70dcf9 add metrics to the nodeport allocator repair loop
The repair loop are great for saving us of leaks, but the side effect
is that bugs can go unnoticed for a long time, so we need some
signal to be able to identify those errors proactivily.

Add two new metrics to identify:
- errors on the reconcile loop
- errors per nodeport
2023-09-30 15:46:06 +00:00
Kubernetes Prow Robot
622509830c
Merge pull request #120716 from xrstf/fix-typos
Fix typos
2023-09-30 00:25:56 -07:00
Kubernetes Prow Robot
3e9f2f4d65
Merge pull request #120948 from marosset/fix-mem-limit-windows-test
Fixing attempt to deploy past allocatable memory limits test on Windows
2023-09-29 14:33:57 -07:00
Mark Rossetti
0b76e7b69f
Fixing attempt to deploy past allocatable memory limits test on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2023-09-29 13:26:51 -07:00
Kubernetes Prow Robot
46728a8fa2
Merge pull request #120896 from aramase/aramase/f/kmsv2_pkcs11
[KMSv2] pkcs11 reference implementation using SoftHSM
2023-09-29 12:11:56 -07:00
Kubernetes Prow Robot
c54c6b2383
Merge pull request #120938 from ptsgr/fix-linter
Refactoring variable declaration and value setting
2023-09-29 10:56:43 -07:00
Anish Ramasekar
d2a3184c47
remove pkg/encrypt and pkg/value in kms
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:32 +00:00
Anish Ramasekar
e764e83fe8
remove mock aes, latency and ratelimit wrapper remote services
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:32 +00:00
Anish Ramasekar
2f5708833a
[KMSv2] pkcs11 reference implementation using SoftHSM
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:26 +00:00
Kubernetes Prow Robot
46dea3015f
Merge pull request #120050 from DamianSawicki/some-tests
Add tests for extract tag functions in prereleaselifecyclegenerators
2023-09-29 09:10:43 -07:00
Kubernetes Prow Robot
afe4c041f3
Merge pull request #120530 from my-git9/node-ut
kubeadm: add unit test for phases/bootstraptoken/node/token.go
2023-09-29 07:08:43 -07:00
Egor Pats
5ebde41efb Refactoring variable declaration and value setting 2023-09-29 16:17:28 +03:00
Kubernetes Prow Robot
dc28eeaa3a
Merge pull request #120565 from skitt/drop-deprecated-pointer-kube-proxy
kube-proxy: drop deprecated pointer package
2023-09-29 02:24:42 -07:00
Patrick Ohly
0e8a1f1816 e2e: remove redundant spaces in test names
The spaces are redundant because Ginkgo will add them itself when concatenating
the different test name components. Upcoming change in the framework will
enforce that there are no such redundant spaces.
2023-09-29 08:30:57 +02:00
Kubernetes Prow Robot
f599a98205
Merge pull request #120834 from dzjiang91/fix-panic
Fix panic testing intree vSphere dynamic PV.
2023-09-28 18:00:40 -07:00
Kubernetes Prow Robot
ef838ca27c
Merge pull request #120912 from sttts/sttts-cluster-authn-filter
controller/clusterauthenticationtrust: complete event filter
2023-09-28 14:21:39 -07:00
Kubernetes Prow Robot
bf1fa0c669
Merge pull request #119865 from charles-chenzz/bump_deps
bump github.com/emicklei/go-restful/v3 to v3.11.0
2023-09-28 06:42:34 -07:00
Kubernetes Prow Robot
29ff98ff37
Merge pull request #120417 from neolit123/1.29-v1beta4-ecdsa
kubeadm: add v1beta4.ClusterConfiguration.EncryptionAlgorithm
2023-09-28 02:38:33 -07:00
xin.li
e320fadebe kubeadm: add unit test for phases/bootstraptoken/node/token.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-09-28 16:42:29 +08:00
Kubernetes Prow Robot
26c3f66887
Merge pull request #120903 from dims/deprecate-cloud-provider-and-config-cli-params
Deprecate cloud-provider/cloud-config in apiserver CLI
2023-09-27 18:17:33 -07:00
Kubernetes Prow Robot
9c5698f514
Merge pull request #116803 from mengjiao-liu/contextual-logging-scheduler-plugin-volumebinding
Migrated `pkg/scheduler/framework/plugins/volumebinding` to contextual logging
2023-09-27 15:04:38 -07:00
Kubernetes Prow Robot
68795571e8
Merge pull request #120915 from dims/fix-missed-branch-targets-when-building-using-arm64
fix missed branch - targets when building using arm64
2023-09-27 13:56:37 -07:00
Davanum Srinivas
d900217664
fix missed branch - targets when building using arm64
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-27 15:52:37 -04:00
Jefftree
61603d36d7 Fix 120739 - Prevent AddUpdateAPIService from blocking on updating spec 2023-09-27 12:02:38 -04:00
Kubernetes Prow Robot
1020678366
Merge pull request #120908 from sttts/sttts-optional-authz
controlplane/apiserver: don't crash if authz or other options are explicitly disabled in options
2023-09-27 07:36:25 -07:00
Kubernetes Prow Robot
bdedc21fd9
Merge pull request #120490 from p0lyn0mial/upstream-watch-list-cache-metrics
collect watch-list requests latency metric
2023-09-27 07:36:12 -07:00
Dr. Stefan Schimanski
59ad81a615
controller/clusterauthenticationtrust: complete event filter
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2023-09-27 15:39:58 +02:00
Kubernetes Prow Robot
05f4099c5f
Merge pull request #120784 from elezar/fix-startup-failure-on-non-swap
only configure swap if swap is enabled
2023-09-27 06:26:21 -07:00
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