Commit Graph

135650 Commits

Author SHA1 Message Date
Troy Chiu
2dadc5c7bd promote DRAPrioritizedList to GA 2026-02-18 00:04:46 +00:00
Kubernetes Prow Robot
1bb4d4f7b3 Merge pull request #137057 from iPraveenParihar/e2e/fix-flaky-snapshot-metadata-test
e2e: fix snapshot metadata test flakes by removing in-test CRD creation
2026-02-18 00:23:53 +05:30
Kubernetes Prow Robot
aaa8fe96de Merge pull request #136951 from zylxjtu/master
Add the windows 2025 support for some e2e test images
2026-02-18 00:23:46 +05:30
Kubernetes Prow Robot
338a3bcef8 Merge pull request #136254 from tosi3k/extend-postfilter
Extend PostFilterResult with a list of victim Pods
2026-02-18 00:23:37 +05:30
Kubernetes Prow Robot
e7e9eebc02 Merge pull request #137088 from soltysh/logs_timeout
Bump logs e2e timeout to 3s to match log generator
2026-02-17 23:31:55 +05:30
Kubernetes Prow Robot
4540abb5d8 Merge pull request #136704 from Ignoramuss/optionalorrequired-authentication
api: enable optionalorrequired linter for authentication API
2026-02-17 23:31:47 +05:30
Kubernetes Prow Robot
09259d3dff Merge pull request #136689 from kfess/bugfix/windows-plugin
Fix kubectl plugin list overshadow detection on Windows
2026-02-17 23:31:39 +05:30
Praveen M
0e6bf008b8 e2e: fix snapshot metadata test flakes by removing in-test CRD creation
Signed-off-by: Praveen M <m.praveen@ibm.com>
2026-02-17 22:17:16 +05:30
Kubernetes Prow Robot
c9020bef5a Merge pull request #135732 from pohly/dra-upgrade-downgrade-device-taints
DRA: upgrade/downgrade device taints
2026-02-17 22:13:42 +05:30
Maciej Szulik
76ba5f101c Bump logs e2e timeout to 3s to match log generator
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-02-17 17:11:09 +01:00
Antoni Zawodny
25d93e1f8e Extend PostFilterResult with a list of victim Pods 2026-02-17 16:50:20 +01:00
Patrick Ohly
ff551f387f DRA E2E: disarm footgun in PodExternal
The implicit matching of the ResourceClaim name to ExternalClaim was
convenient (no need to specify the parameter) but did go wrong in integration
testing where there are multiple calls to ExternalClaim.
2026-02-17 16:35:36 +01:00
Patrick Ohly
aa3f79d4c9 DRA upgrade/downgrade: add DeviceTaints test
This automatically tests a few scenarios across cluster upgrade/downgrade.
2026-02-17 16:35:36 +01:00
Kubernetes Prow Robot
7ed7104d27 Merge pull request #137079 from pohly/dra-integration-data-race
DRA integration: fix data race
2026-02-17 19:57:03 +05:30
Patrick Ohly
e53d93a6bc DRA integration: fix data race
Gomega matchers cannot be used concurrently, they get mutated. Each user must
get its own separate instance.

    WARNING: DATA RACE
    Write at 0x00c0195da678 by goroutine 322445:
      github.com/onsi/gomega/matchers.(*AndMatcher).Match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/matchers/and.go:18 +0x44
      github.com/onsi/gomega/internal.(*AsyncAssertion).pollMatcher()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:387 +0xbe
      github.com/onsi/gomega/internal.(*AsyncAssertion).match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:415 +0x47b
      github.com/onsi/gomega/internal.(*AsyncAssertion).Should()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:145 +0xc4
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func3()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:104 +0x361
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func5()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:139 +0xa1
      sync.(*WaitGroup).Go.func1()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.7.linux-amd64/src/sync/waitgroup.go:239 +0x5d

    Previous write at 0x00c0195da678 by goroutine 322438:
      github.com/onsi/gomega/matchers.(*AndMatcher).Match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/matchers/and.go:18 +0x44
      github.com/onsi/gomega/internal.(*AsyncAssertion).pollMatcher()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:387 +0xbe
      github.com/onsi/gomega/internal.(*AsyncAssertion).match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:415 +0x47b
      github.com/onsi/gomega/internal.(*AsyncAssertion).Should()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:145 +0xc4
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func3()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:104 +0x361
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func5()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:139 +0xa1
      sync.(*WaitGroup).Go.func1()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.7.linux-amd64/src/sync/waitgroup.go:239 +0x5d
2026-02-17 14:38:25 +01:00
Kubernetes Prow Robot
d3a1be8586 Merge pull request #136990 from cpanato/update-rules
Update publishing rules
2026-02-17 19:07:03 +05:30
Kubernetes Prow Robot
23fc0bff62 Merge pull request #137049 from pohly/dra-scheduler-perf-failures
DRA scheduler_perf: avoid race between assume cache and Update calls
2026-02-17 16:37:04 +05:30
Kubernetes Prow Robot
f9c9f03b05 Merge pull request #136618 from macsko/workload_scheduling_cycle
KEP-4671: Introduce Workload Scheduling Cycle
2026-02-17 15:21:04 +05:30
Maciej Skoczeń
6233b25907 Introduce Workload Scheduling Cycle
Add integration tests for gang and basic policy workload scheduling

Add more tests for cluster snapshot

Proceed to binding cycle just after pod group cycle

Enforce one scheduler name per pod group, rename workload cycle to pod group cycle

Add unit tests for pod group scheduling cycle

Run ScheduleOne tests treating pod as part of a pod group

Rename NeedsPodGroupCycle to NeedsPodGroupScheduling

Observe correct per-pod and per-podgroup metrics during pod group cycle

Rename pod group algorithm status to waiting_on_preemption

Mention forgotAllAssumedPods is a safety check
2026-02-17 09:02:32 +00:00
Carlos Panato
a1736c1595 update go in publishing rules
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-02-17 09:51:58 +01:00
Kubernetes Prow Robot
2fb84cfed3 Merge pull request #137052 from skitt/golangci-lint-2.9.0
Bump to golangci-lint 2.9.0
2026-02-17 00:58:01 +05:30
Stephen Kitt
3d1e90f95a Bump to golangci-lint 2.9.0
bloop was disabled because of its impact on small benchmarks (see
267fc6b81a
for details), this removes it from the disabled entries.

stringscut was introduced in x/tools 0.40.0 and is disabled for
existing code.

ginkgolinter's Success matcher check doesn't know about TContext, so
it's disabled for k/k.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-02-16 15:45:22 +01:00
Kubernetes Prow Robot
31bf3ed48b Merge pull request #137019 from olamilekan000/add-a-show-secret-flag-in-diff-command
add show-secret flag to the diff command
2026-02-16 19:44:10 +05:30
Kubernetes Prow Robot
c99adcec1a Merge pull request #136799 from omerap12/external-metrics-e2e
Add e2e test for external metrics
2026-02-16 19:44:02 +05:30
Patrick Ohly
ca0433bdb2 DRA scheduler_perf: avoid race between assume cache and Update calls
A updated claim can only be stored in the assume cache if the cache already
contains a copy of it. That wasn't guaranteed because the update operations
where based on listing existing claims without going through the cache.

To avoid the race, we can ensure that the assume cache is up-to-date before
we start updating claims and the cache. This is simpler than retrying the
assume call.
2026-02-16 13:47:39 +01:00
Kubernetes Prow Robot
18865bef41 Merge pull request #136411 from olamilekan000/fix-cli-throwing-an-error-when-tailing-logs
fix cli throwing an error when trying to tail the logs for a Pod
2026-02-16 18:00:00 +05:30
olalekan odukoya
5b3b05921f fix cli throwing an error when trying to follow logs for pod while still initializing
Signed-off-by: olalekan odukoya <odukoyaonline@gmail.com>
2026-02-16 12:34:43 +01:00
Kubernetes Prow Robot
f067ad1e8f Merge pull request #135715 from darshansreenivas/dtumkur-pr-network-tag-cidr
networkpolicy: migrate ipBlock.cidr validation to DV
2026-02-16 07:01:58 +05:30
darshansreenivas
bc17031d19 network: migrate CIDR validation to DV
Co-authored-by: Abhishek Srivastava <abhishek@asrivas.me>
2026-02-15 16:00:41 -08:00
Kubernetes Prow Robot
8d835ffd33 Merge pull request #137037 from atombrella/feature/proxy_utils_net_joinhost
proxy/utils: Use net.JoinHostPort to format address.
2026-02-16 04:19:59 +05:30
Kubernetes Prow Robot
9210644161 Merge pull request #136501 from adrianmoisey/remove-CustomMetricsAutoscaling
Remove unused variable CustomMetricsAutoscaling
2026-02-15 21:23:58 +05:30
Mads Jensen
bbbc09fb11 proxy/utils: Use net.JoinHostPort to format address. 2026-02-15 16:53:17 +01:00
Kubernetes Prow Robot
4811b20170 Merge pull request #136588 from abel-von/split-slices
dra: split slices to "shared" and "on node"
2026-02-14 08:35:59 +05:30
Ignoramuss
3b25b16ce1 api: enable optionalorrequired linter for authentication API
Add missing +optional and +required markers to authentication API types
across v1, v1beta1, and v1alpha1 versions, and remove authentication
from the linter exception lists.

Part of kubernetes/kubernetes#134671
2026-02-13 17:40:47 -08:00
Kubernetes Prow Robot
574b3aad0f Merge pull request #136998 from yongruilin/master-vg_hpa-ifenable
Migrate HPA MinReplicas to Declarative Validation with Feature Gate Support
2026-02-14 06:59:58 +05:30
yongruilin
8dd711ea80 address feedback: pass HPAScaleToZero option when already in use 2026-02-13 22:50:16 +00:00
olalekan odukoya
03060174b8 add show-secret flag to the diff command
Signed-off-by: olalekan odukoya <odukoyaonline@gmail.com>
2026-02-13 22:48:51 +01:00
Kubernetes Prow Robot
18c8b8c4d3 Merge pull request #136896 from aaron-prindle/modal-validation-upstream
Implement declarative modal validation (+k8s:discriminator and +k8s:member)
2026-02-14 03:08:00 +05:30
Aaron Prindle
5f3bb4a434 feedback: Remove disallowed tags logic from discriminator validator 2026-02-13 20:34:12 +00:00
Kubernetes Prow Robot
638bdc9df6 Merge pull request #136993 from hdp617/patch-1
Update cloud-controller-manager image version to v35.0.2
2026-02-14 00:44:00 +05:30
Aaron Prindle
70b90d9898 feedback: Address review comments
- Rename type params to Tstruct/Tfield/Tdisc for Subfield consistency
- Make DiscriminatedRule.Value generic over Tdisc and emit typed literals
- Move discriminator assignment adjacent to value assignment
- Fix mockEqual to test value equivalence and add pointer test
- Add test for value changed with discriminator unchanged
- Add regex validation for discriminator group names
- Disallow "default" as an explicit discriminator group name
- Add directComparable cross-reference comment for ratcheting
- Rename mode/modal terminology to discriminator/member
2026-02-13 18:18:52 +00:00
Aaron Prindle
98c52ccfd7 Update staging/src/k8s.io/code-generator/cmd/validation-gen/validators/mode.go
Co-authored-by: Joe Betz <jpbetz@google.com>
2026-02-13 18:18:35 +00:00
Aaron Prindle
7e5cd910a4 Fix compilation errors from cherry-picks 2026-02-13 18:18:28 +00:00
Aaron Prindle
c04c60f408 Implement declarative modal validation (+k8s:discriminator and +k8s:member)
This introduces state-based validation to declarative validation via the +k8s:discriminator and +k8s:member tags.

Key changes:
- Added validate.Modal runtime function to handle state-based logic, including full ratcheting support (skipping validation on Update if discriminator and value are unchanged).
- Implemented +k8s:discriminator to identify the controlling field (supports string, int, and bool).
- Implemented +k8s:member to map discriminator values to validation rules.
- Added implicit "forbidden-by-default" logic for unhandled modes, with support for pointer, slice, and map types.
2026-02-13 18:16:25 +00:00
Aaron Prindle
d59cfc969d Add MultiWrapperFunction to support bundling multiple validations
This introduces MultiWrapperFunction to the generator AST, allowing multiple validation functions to be bundled into a single emitted closure. It correctly handles short-circuiting logic for the wrapped functions.
2026-02-13 09:15:17 -08:00
Kubernetes Prow Robot
23ea1ec286 Merge pull request #135769 from vshkrabkov/cleanup/unsch-pods-remove-recorder-nil-check
Remove nil checks for unschedulable pods metrics recorder
2026-02-13 18:03:59 +05:30
Kubernetes Prow Robot
5467a9f9e2 Merge pull request #135028 from itzPranshul/master-vg-enable-clusterRole
rbac: migrate PolicyRule.verbs to Declarative Validation
2026-02-13 10:27:59 +05:30
Kubernetes Prow Robot
ec2c7739bc Merge pull request #135808 from tico88612/cleanup/SeparateCacheWatchRPC
SeparateCacheWatchRPC LockToDefault set true
2026-02-13 08:53:59 +05:30
Kubernetes Prow Robot
1132395d4a Merge pull request #136793 from yongruilin/master_vg-strategy-alpha
KEP-5073:  Declarative Validation Lifecycle Update
2026-02-13 07:16:00 +05:30
yongruilin
33dec2246f address feedback: refactor declarative validation migration checks
- Extract HV error filtering into filterHandwrittenErrors for readability.
- Simplify errOutputMatcherByStability initialization in testing helpers.
2026-02-13 00:54:18 +00:00