Commit Graph

134908 Commits

Author SHA1 Message Date
Dan Winship
db01f94032 Remove patch/update from ServiceCIDR API conformance test
They were already listed in ineligible_endpoints.yaml, so we shouldn't
be testing them here anyway.
2025-08-20 09:19:55 -04:00
pranshul gupta
94d3dc40b2 kubectl: include container fieldPath in event messages 2025-08-20 15:49:49 +05:30
Patrick Ohly
f6b3f916b1 scheduler_perf: fix data race warning around klog flush
Explicitly shutting down background flushing addresses the following data race:

    WARNING: DATA RACE
    Write at 0x0000091173b8 by goroutine 166:
      k8s.io/component-base/logs/api/v1.apply.FlushLogger.func2()
          /nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/contextual.go:95 +0x35
      k8s.io/klog/v2.SetLoggerWithOptions()
          /nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/contextual.go:75 +0xb4
      k8s.io/component-base/logs/api/v1.apply()
          /nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/component-base/logs/api/v1/options.go:277 +0x10fb
      k8s.io/component-base/logs/api/v1.validateAndApply()
          /nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/component-base/logs/api/v1/options.go:132 +0x90
      k8s.io/component-base/logs/api/v1.ValidateAndApply()
          /nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/component-base/logs/api/v1/options.go:94 +0xd4
      k8s.io/component-base/logs/api/v1.ResetForTest()
          /nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/component-base/logs/api/v1/options.go:314 +0xd5
      k8s.io/kubernetes/test/integration/scheduler_perf.setupTestCase.func1()
          /nvme/gopath/src/k8s.io/kubernetes/test/integration/scheduler_perf/scheduler_perf.go:1062 +0x95
      testing.(*common).Cleanup.func1()
          /nvme/gopath/go-1.24.0/src/testing/testing.go:1211 +0x16f
      testing.(*common).runCleanup()
          /nvme/gopath/go-1.24.0/src/testing/testing.go:1445 +0x2b3
      testing.(*common).runCleanup()
          /nvme/gopath/go-1.24.0/src/testing/testing.go:1445 +0x2b3
      testing.tRunner.func2()
          /nvme/gopath/go-1.24.0/src/testing/testing.go:1786 +0x4c
      runtime.deferreturn()
          /nvme/gopath/go-1.24.0/src/runtime/panic.go:605 +0x5d
      k8s.io/apiserver/pkg/endpoints.(*APIInstaller).Install()
          /nvme/gopath/src/k8s.io/kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:208 +0x3ad

    ...

    Previous read at 0x0000091173b8 by goroutine 169:
      k8s.io/klog/v2.(*loggingT).flushAll()
          /nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1215 +0x166
      k8s.io/klog/v2.(*loggingT).lockAndFlushAll()
          /nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1193 +0x58
      k8s.io/klog/v2.(*loggingT).lockAndFlushAll-fm()
          <autogenerated>:1 +0x33
      k8s.io/klog/v2.(*flushDaemon).run.func1()
          /nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1143 +0x179

That the cleanup code is shown as being called by runtime/panic.go and
k8s.io/apiserver/pkg/endpoints/installer.go seems to be an oddity of `go test
-race`. Under a debugger it gets called normally, without a panic, and the test
finishes normally either way.

It's debatable whether StopFlushDaemon should be called by the caller of
ResetForTest or by ResetForTest itself. It's explicitly called out as "not
thread safe", so making the caller responsible seems appropriate.
2025-08-20 12:01:56 +02:00
Zeqian Meng
df64d3f882 Remove rbd image and storage class
The rbd in-tree storage driver and related support have been
dropped entirely since v1.31 release. And the image is not
being used in e2e tests.
2025-08-20 11:42:43 +02:00
carlory
f920b064d0 Promote VAC API test to conformance 2025-08-20 11:10:33 +08:00
264nm
ebf3d814f4 Fix(cleaner.go): Add GC to handle Approved-Unissued CSRs 2025-08-20 10:55:07 +10:00
Michael Aspinwall
770b749436 feat: Require SVM to use RealFIFO 2025-08-19 16:41:22 +00:00
Kubernetes Prow Robot
4e8b192b66 Merge pull request #133604 from serathius/watchcache-count
Fix storage counting all objects instead of objects for resource
2025-08-19 09:23:36 -07:00
Marek Siarkowicz
d49e3d67cb Fix storage counting all objects instead just objects for resource 2025-08-19 16:35:34 +02:00
tom1299
b46a5cceef Fix missing control plane health check timeout 2025-08-19 13:49:02 +02:00
Kubernetes Prow Robot
5568780ca3 Merge pull request #133562 from nojnhuh/dra-e2e-slice-controller-flake
DRA: wait for stats to converge in "creates slices" e2e test
2025-08-19 04:21:36 -07:00
Kubernetes Prow Robot
29e16ff792 Merge pull request #133286 from yliaog/deviceplugin
added WithFlaky to the device plugin test case: supports extended resources together with ResourceClaim
2025-08-19 00:43:35 -07:00
Sascha Grunert
dec23d58e4 Add remote runtime/image Close() API
The API allows to shutdown the internal gRPC connection to avoid leaking
resources.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-08-19 09:33:29 +02:00
Kubernetes Prow Robot
aafb9d4cf8 Merge pull request #133595 from tkashem/fix-dra-test-flake
fix flake in dra test 'TestPlugin'
2025-08-18 21:41:08 -07:00
Kobayashi,Daisuke
97a146d47d Refactor error handling: reuse err inside closures and avoid re-shadowing 2025-08-18 22:33:14 +00:00
Abu Kashem
747a295cac fix flake in dra test 'TestPlugin'
TestPlugin/multi-claims-binding-conditions-all-success/PreEnqueue
flakes due to the assumed cache not been synced with the initial
store. The test waits until the registered handler used by the
assumed cache has synced before proceeding with the test
2025-08-18 15:54:03 -04:00
Vishnu Mohan
5c8f26f480 kubectl: fix expose --selector help text
The current help text wordings incorrectly suggests inference only works for RC/RS when it actually works for Pods and Deployments too

Update help text to accurately reflect that selector inference works
for any resource being exposed, as documented in main expose help.
2025-08-19 01:19:07 +05:30
DerekFrank
2180b441dd gofmt and review feedback 2025-08-18 11:29:32 -07:00
Benjamin Elder
b9d5edd444 remove stray strailing tabs from gocritic settings 2025-08-18 11:22:40 -07:00
Benjamin Elder
535b4e07e9 enable gocritic deprecatedComment check to help lint for malformed deprecation comments 2025-08-18 11:22:08 -07:00
Kubernetes Prow Robot
b7706ef58b Merge pull request #133587 from pohly/dra-allocator-race
DRA allocator: fix data race around `claimsToAllocate`
2025-08-18 09:37:09 -07:00
Patrick Ohly
0b647319c4 hack: more output about running tests
set -x/+x wraps setting relevant configuration variables to debug how and where
they get sets. The final gotestsum invocation gets logged in addition to being
run.
2025-08-18 14:33:57 +02:00
Patrick Ohly
4ebe560c74 DRA allocator: fix data race around claimsToAllocate
The `claimsToAllocate` field stores the parameter of the `Allocate` call and
therefore has to be in the per-Allocate `allocate` struct.

Without support for extended resources, all calls get the same slice, which
explains why this bug did not fail more severely and only showed up in a data
race warning during integration testing. With support for extended resources,
the result is potentially broken because each call gets different slices.
2025-08-18 13:44:26 +02:00
Kubernetes Prow Robot
17d6c9c551 Merge pull request #133523 from bart0sh/PR194-dra-upgrade-downgrade-use-latest
e2e_dra: use latest release if stable doesn't exist
2025-08-18 01:33:09 -07:00
Ed Bartosh
41013e7bf0 e2e_dra: use latest release if stable doesn't exist
This change updates the DRA upgrade/downgrade test to attempt
downloading the "latest" Kubernetes release if the "stable" release
entry point is not available.

This should fix test failures for the time just before the release,
when master is switched to the next release, but stable release URL
is not yet updated.
2025-08-18 10:23:42 +03:00
Kobayashi,Daisuke
38da6d767d DRA: Fixed ResourceClaim UpdateStatus to wrap with RetryOnConflict to automatically retry in the event of a conflict. 2025-08-18 00:46:51 +00:00
Caleb Woodbine
76e5929d1a chore: update CronJob casing for create job help
use the resource Kind casing for `CronJob` in the note for the `from` argument help
2025-08-18 11:46:37 +12:00
aditya
c97f08793c Fix startup probe worker termination for sidecar containers
Fixes a bug where startup probe workers terminate incorrectly for sidecar
containers with restartPolicy=Always when the pod has restartPolicy=Never,
causing main containers to remain stuck in Initializing state.

Changes:
- Add container-level restart policy check for init containers only
- Extract complex boolean logic to named variable for readability
- Refactor test helper to use existing newWorker() function
- Add comprehensive unit and e2e tests for both scenarios
2025-08-17 11:46:09 +05:30
Kubernetes Prow Robot
8082e9ab15 Merge pull request #133570 from BenTheElder/pr131351
Clarify staging repository READMEs
2025-08-15 21:09:07 -07:00
Xinyi Rong
d4f8bebda0 Fix label selector parsing for consecutive commas
Allow parsing of expressions like 'x in (a,,)' by removing
unnecessary token consumption in parseIdentifiersList.

Previously, when encountering consecutive commas in selector
value lists, the parser would incorrectly consume an extra
comma token, causing 'expected identifier' errors.

This change removes the p.consume(Values) call on line 851
that was preventing proper handling of empty values in
selector lists while maintaining correct comma handling.

Added test cases like "x in (a,,)" to verify the fix works correctly.
2025-08-15 19:29:11 -07:00
Benjamin Elder
e49f6116f9 clarify that staging repos are automatically published 2025-08-15 14:33:07 -07:00
DerekFrank
8d4108bf93 fix: Update unit test to catch actual nil Labels case and fix functionality to handle nil Labels 2025-08-15 14:31:28 -07:00
Benjamin Elder
189d6d726b fix formatting of deprecation warning in test/e2e/framework.WaitForServiceEndpointsNum
"// Deprecated:" needs to be in it's own paragraph
2025-08-15 11:29:53 -07:00
Benjamin Elder
db5dd2fe8f update-codegen 2025-08-15 11:27:21 -07:00
Benjamin Elder
2b47e8e5b5 fix deprecation comment in register-gen 2025-08-15 11:19:51 -07:00
Benjamin Elder
668b3fe4af update-codegen 2025-08-15 11:18:52 -07:00
Hadrien Patte
ef1878c601 Update sharedInformerFactoryInterface context initialization example
Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
2025-08-15 20:15:36 +02:00
Benjamin Elder
80071d16e1 fix deprecation comment in informer fatory generator 2025-08-15 11:01:43 -07:00
Benjamin Elder
fa5792a466 fix k8s.io/component-base/metrics deprecation formatting 2025-08-15 10:57:48 -07:00
Benjamin Elder
1dd428d4c0 fix deprecation formatting for k8s.io/kubectl/pkg/cmd/config.NewCmdConfigSetAuthInfo 2025-08-15 10:56:05 -07:00
Benjamin Elder
9fabccd24c fix deprecation formatting for k8s.io/apimachinery/pkg/api/errors.NewGone 2025-08-15 10:55:59 -07:00
Benjamin Elder
30f4fc9ca3 update-codegen 2025-08-15 10:42:51 -07:00
Benjamin Elder
8c139fbe94 use correct deprecation comment in clientset fake generator 2025-08-15 10:36:20 -07:00
Benjamin Elder
ada2ed8487 add pointer to CONTRIBUTING.md for more details on contributing, clarify read-only 2025-08-15 10:17:18 -07:00
Benjamin Elder
8919ac43c8 special case that kubectl staging repo is currently used to track issues, and only pull requests should be redirected back to the main repo. 2025-08-15 10:10:58 -07:00
Benjamin Elder
011d500197 link to what a staging repository is 2025-08-15 10:10:26 -07:00
sAchin-680
7c43e6d2fd docs: clarify that this is a staging repository and not for direct contributions
Signed-off-by: sAchin-680 <mrmister680@gmail.com>
2025-08-15 10:08:16 -07:00
Kubernetes Prow Robot
180b4ec2ad Merge pull request #133126 from RomanBednar/fix-populator-test
improve CRD handling in VolumePopulator test
2025-08-15 09:09:07 -07:00
Kubernetes Prow Robot
1544ac568c Merge pull request #133568 from cpanato/update-pu-rules
update go version for publishing bot rules
2025-08-15 07:55:07 -07:00
Carlos Panato
f8bad82c21 update go version for publishing bot rules
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-08-15 15:27:45 +02:00