Bryce Palmer
3deb264c91
validation-gen/tests: add maxBytes tag tests
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:45:17 -05:00
Bryce Palmer
c9652760b5
validation-gen/validators: add maxBytes validator
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:45:17 -05:00
Bryce Palmer
100b1a6136
api/validate: add MaxBytes limit validation
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:44:09 -05:00
Bryce Palmer
b9cebe2a6b
validation-gen/tests/maxlength: use TooLongCharacters error utility for assertions
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:44:09 -05:00
Bryce Palmer
91893a3929
validators/limits: minor fixes to MaxLength validator
...
for strict canonical integer parsing
and deterministic valid scope list output
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:44:09 -05:00
Bryce Palmer
fff6e5950d
validation-gen/util: add ParseInt utility for canonical integer parsing
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:44:09 -05:00
Bryce Palmer
b5dd643c95
validate/limits: update MaxLength validation to be character-based
...
so that it aligns with the OpenAPI maxLength
validation evaluation process that performs
rune counting instead of a byte-based length check
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-03-02 09:44:08 -05:00
Bryce Palmer
400743bdc3
field/errors: add TooLongCharacters error utility
...
Signed-off-by: Bryce Palmer <bpalmer@redhat.com >
2026-02-27 09:46:58 -05:00
Kubernetes Prow Robot
0ed06f9d34
Merge pull request #135122 from itzPranshul/liner-enablement
...
Enable optionalfields rule for Kube API linter
2026-02-27 18:06:56 +05:30
Kubernetes Prow Robot
07a1af766f
Merge pull request #137277 from Karthik-K-N/resolve-todo
...
Update test example to use tCtx Eventually
2026-02-27 15:37:56 +05:30
Karthik Bhat
72609c329a
Update example test to use tCtx Eventually
2026-02-27 10:03:29 +05:30
pranshul gupta
10f7c34c16
added exceptions for StorageVersion.Spec , StorageVersion.Status , StorageVersionCondition.LastTransitionTime to be a pointer and StorageVersion.Spec and StorageVersion.Status to have omitempty tag
2026-02-27 09:00:07 +05:30
pranshul gupta
1c6365cda0
lint: add granular exception for apiserverinternal
...
Demonstrates the 1:1 migration strategy by enabling the 'apiserverinternal'
API group and adding a specific exception for StorageVersionCondition.
2026-02-27 08:29:35 +05:30
pranshul gupta
c0c06c9ac6
lint: Enable optionalfields rule in KAL with mass exclusion
2026-02-27 08:29:35 +05:30
pranshul gupta
b278254eba
Enable optionalfields rule for Kube API linter
2026-02-27 08:29:35 +05:30
Kubernetes Prow Robot
b55862975c
Merge pull request #137274 from lalitc375/tags-graduation
...
Revert the graduation of maxLength
2026-02-27 08:24:01 +05:30
Kubernetes Prow Robot
4e894632b8
Merge pull request #137268 from pohly/ktesting-tcontext-type
...
ktesting: remove type alias
2026-02-27 08:23:54 +05:30
Kubernetes Prow Robot
ee22853ef9
Merge pull request #136270 from bart0sh/PR213-DRA-refactor-getting-claims
...
DRA Kubelet: refactor getting claims
2026-02-27 06:47:57 +05:30
Kubernetes Release Robot
225eb9047b
CHANGELOG: Update directory for v1.35.2 release
2026-02-27 00:09:04 +00:00
Kubernetes Release Robot
45a80d28a6
CHANGELOG: Update directory for v1.32.13 release
2026-02-26 23:58:21 +00:00
Kubernetes Release Robot
6749f35636
CHANGELOG: Update directory for v1.33.9 release
2026-02-26 23:57:26 +00:00
Kubernetes Release Robot
d8f2c00a48
CHANGELOG: Update directory for v1.34.5 release
2026-02-26 23:56:35 +00:00
Kubernetes Prow Robot
43112f9cc9
Merge pull request #136960 from zylxjtu/pauseimage
...
Add the windows 2025 support to pause image
2026-02-27 05:13:54 +05:30
Kubernetes Prow Robot
887929bb95
Merge pull request #137147 from haojiwu/haoji/fix-issue-136288
...
Fix RepairIPAddress controller startup failure when namespace informer is not yet synced
2026-02-27 04:13:55 +05:30
Kubernetes Prow Robot
44b486f43c
Merge pull request #137189 from dhruv7539/codex/getlogs-reactor-support
...
client-go: make fake Pods.GetLogs honor reactors
2026-02-27 02:05:55 +05:30
Lalit Chauhan
7b5dfd5609
Revert the graduation of maxLength
2026-02-26 19:41:35 +00:00
Kubernetes Prow Robot
7d70fe491d
Merge pull request #135775 from bitoku/no-noexec
...
Update OCI image volume type description to remove "noexec" attribute
2026-02-27 01:07:56 +05:30
Ayato Tokubi
aa1e24659e
Update OCI image volume type description to remove "noexec" attribute
...
Signed-off-by: Ayato Tokubi <atokubi@redhat.com >
2026-02-26 18:32:40 +00:00
Kubernetes Prow Robot
0a68f98494
Merge pull request #137261 from tchap/kcm-le-check-context-canceled
...
client-go/leaderelection: Short-circuit on context canceled
2026-02-26 23:50:35 +05:30
Kubernetes Prow Robot
20c59228e2
Merge pull request #137136 from kfess/bugfix/container-restart-policy-err-message
...
fix ContainerRestartRules error message
2026-02-26 23:50:26 +05:30
dhruv7539
3ed3163977
client-go: error on invalid fake pod logs reactor object
2026-02-26 09:58:23 -08:00
Patrick Ohly
c4c9a9d4de
ktesting: remove type alias
...
The type alias made `go doc ./test/utils/ktesting.TContext` useless and was a
weird workaround for preserving the original interface type name. Passing a
TContext instance by value (almost) preserves the original API and is
acceptable because the struct is still small. The only consumers which need to
be updated are those which relied on passing nil as tCtx.
If we ever find that TContext is or becomes too large, then we can make it
a wrapper around some pointer.
2026-02-26 15:42:55 +01:00
Kubernetes Release Robot
9d685325ed
CHANGELOG: Update directory for v1.36.0-alpha.2 release
2026-02-26 14:31:40 +00:00
Kubernetes Prow Robot
26a82cd894
Merge pull request #136173 from Phaow/add-vgs-tests
...
test: add vgs retain policy test
2026-02-26 19:12:24 +05:30
Ondra Kupka
aa494f8174
client-go/leaderelection: Check context canceled
...
The change introduced in 59cd1d0b3b
causes PollUntilContextTimeout to call the condition function even when
the context is canceled already. This is unnecessary in our case and
only leads to one extra loop of processing and extra error messages.
This change makes the renew loop behave like it did before the change.
2026-02-26 12:06:37 +01:00
Kubernetes Prow Robot
f60990d3f9
Merge pull request #136459 from Karthik-K-N/refactor
...
Refactor NewTestContext to return Context instead of TContext
2026-02-26 14:56:25 +05:30
Ed Bartosh
65e0274e06
DRA: Kubelet: add namespace to error messages
...
Include the namespace in "unable to get claim info" error messages
in prepareResources and GetResources for easier debugging.
2026-02-26 11:09:02 +02:00
Ed Bartosh
7845a9b330
DRA: TestGetResources: add new test case
...
Added a test case to cover a scenario when a container
references the same ResourceClaim with multiple distinct
request names.
2026-02-26 11:08:59 +02:00
Ed Bartosh
7b44affb55
DRA Kubelet: optimize UpdateAllocatedResourcesStatus claim lookup
...
Use map for O(1) claim status lookup instead of O(n*m) nested loop.
2026-02-26 11:07:43 +02:00
Ed Bartosh
1f8bd2ffaa
DRA Kubelet: optimize GetContainerClaimInfos claim lookup
...
Use map for O(1) container claim lookup instead of O(n*m) nested loop.
2026-02-26 11:07:43 +02:00
Ed Bartosh
0a9377b318
DRA Kubelet: optimize GetResources claim collection
...
Refactor the GetResources function in the DRA manager to collect all
resource claims (regular and extended resource) upfront into a single
map before processing, rather than processing them separately with
multiple lock acquisitions.
This optimization:
- Eliminates nested O(n*m) loops in both regular and extended resource paths
- Reduces lock acquisitions from N+1 to N (one per unique claim name)
- Provides a unified processing pattern for all claim types
- Pre-filters extended resources using a map for O(1) lookup
2026-02-26 11:07:42 +02:00
Kubernetes Prow Robot
a04516e8ce
Merge pull request #137255 from pohly/ktesting-contexthelper-test-fix
...
Ktesting: contexthelper panic + test fix
v1.36.0-alpha.2
2026-02-26 14:04:26 +05:30
Patrick Ohly
620c1b6305
ktesting: fix potential unit test flake
...
I've not been able to trigger the flake, but it could happen:
- time.Sleep unblocks some background goroutines inside the synctest bubble.
- Those goroutines do not actually run yet.
- The main test checks for the result of those goroutines.
Adding a `synctest.Wait` ensures that all background processing is complete
because it waits for all goroutines to be durably blocked.
2026-02-26 08:45:35 +01:00
Patrick Ohly
8a2d153817
ktesting: fix potential log panic
...
If the goroutine happens to log after the test has already terminated,
testing.T.Log panics. We must ensure that the goroutine has stopped before
allowing the test to terminate.
2026-02-26 08:44:18 +01:00
Kubernetes Prow Robot
0d156f1eab
Merge pull request #137251 from pacoxu/etcd-learner-bugfix
...
kubeadm: do not add learner member to etcd client endpoints
2026-02-26 13:06:24 +05:30
Karthik Bhat
43bfd8615d
Refactor NewTestContext to return Context instead of TContext
2026-02-26 11:27:26 +05:30
haojiwu
ef30ab659e
Update startup_race_test.go
2026-02-25 20:52:44 -08:00
Paco Xu
a542dc586a
kubeadm: do not add learner member to etcd client endpoints
2026-02-26 10:36:38 +08:00
Kubernetes Prow Robot
761638907a
Merge pull request #137120 from lalitc375/lint-shadow
...
Enable validation-gen lint rule
2026-02-26 05:16:29 +05:30
Kubernetes Prow Robot
1ec27767f3
Merge pull request #136758 from harche/shareid_test
...
KEP-4680: Add tests to validate ShareID does not interfere with DRA Resource Health Status
2026-02-26 05:16:22 +05:30