Maciej Szulik
2bf3d8b733
KEP-3335: drop StatefulSetStartOrdinal feature gate
...
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
2025-06-05 14:02:44 +02:00
Rita Zhang
5058e385b0
DRAAdminAccess: update label key
...
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com >
2025-05-27 21:19:25 -07:00
Joe Betz
7dc8660d03
Update testing to fully track subresources
2025-05-23 21:47:08 -04:00
Joe Betz
105391403f
Enable scale subresource in generated validations
2025-05-23 21:47:08 -04:00
Joe Betz
a3eddf7d85
Add declarative validation testing for replicationcontroller/scale
2025-05-23 21:47:07 -04:00
Joe Betz
356f395f0d
Enable declarative validation for replicationcontroller/scale
2025-05-23 21:47:07 -04:00
Joe Betz
48e1079cf0
Add subresource mapping support to ValidateDeclaratively and introduce configs
...
# Conflicts:
# staging/src/k8s.io/apiserver/pkg/registry/rest/validate_test.go
2025-05-23 21:47:07 -04:00
Kubernetes Prow Robot
c96032addd
Merge pull request #131318 from aojea/lock_servicecidr
...
Lock MultiCIDRServiceAllocator to default and DisableAllocatorDualWrite to GA
2025-05-13 09:51:28 -07:00
Kubernetes Prow Robot
f603a0ada8
Merge pull request #129472 from dims/api-server-crashes-on-concurrent-map-iteration-and-write
...
Fix API server crash on concurrent map iteration and write
2025-05-08 16:25:13 -07:00
sxllwx
75afa1e0ac
Fix API server crash on concurrent map iteration and write
...
Improve audit context handling by encapsulating event data and operations behind a structured API. Make
the Audit system more robust in concurrent environments by properly isolating mutable state. The cleaner
API simplifies interaction with audit events, improving maintainability. Encapsulation reduces bugs
by preventing direct manipulation of audit events.
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
Co-Authored-By: Jordan Liggitt <liggitt@google.com >
Co-Authored-By: sxllwx <scottwangsxll@gmail.com >
2025-05-08 15:31:16 -04:00
Keita Mochizuki
a3097010fa
Change the implementation design of matchLabelKeys in PodTopologySpread to be aligned with PodAffinity ( #129874 )
...
* Change the implementation design of matchLabelKeys in PodTopologySpread to be aligned with PodAffinity
* fix1
2025-05-07 13:01:15 -07:00
Antonio Ojea
9bcec340f8
modify unit test for compatibility version
...
Change-Id: Iacc4066e359d8c7e8fa2d2fab76262cfa50daebb
2025-05-06 13:29:55 +00:00
Antonio Ojea
15ab88f88b
remove networking v1alpha1 and make update
2025-05-06 13:29:54 +00:00
Luca Lanziani
2ea6892077
Always check for Immutable selector in Deployment Replicaset Daemonset ( #131017 )
...
* Always for Immutable selector in Deployment Replicaset Daemonset
With extensions/v1beta1 removed there is no need of a special case
to check for Spec.Selector immutability.
The ValidateImmutableField is now moved into the
Validate[Resource]Update method, tests for v1beta1 are removed and test
for v1 are added.
Validation tests were updated to reflect the changes,
mostly decoupling other fields changes from selectors and creating a
dedicated case to test selector immutability.
* Move validation inside appropriate function
* Fix validation tests
2025-04-23 15:58:37 -07:00
Antonio Ojea
0266d3bcb3
Allow single-to-dual-stack reconfiguration for ServiceCIDR
...
This change modifies the validation logic for ServiceCIDR updates
(`ValidateServiceCIDRUpdate`) to specifically permit upgrading a
single-stack ServiceCIDR (either IPv4 or IPv6) to a dual-stack
configuration.
This reconfiguration path is considered safe because it only involves adding
a new CIDR range without altering the existing primary CIDR. This
ensures that existing Service IP allocations are not disrupted.
Other modifications, such as:
- Downgrading from dual-stack to single-stack
- Reordering CIDRs in a dual-stack configuration
- Changing the primary CIDR during a single-to-dual-stack
reconfiguration
remain disallowed by the validation. These operations carry a higher
risk of breaking existing Services or cluster networking
configurations. Preventing these updates automatically encourages
administrators to perform such changes manually after carefully
assessing the potential impact on their specific cluster environment.
The validation errors and controller logs provide guidance when such
disallowed changes are attempted.
Change-Id: I41dc09dfddb05f277925da2262f8114d6accbd1d
2025-04-14 17:05:44 +00:00
Filip Křepinský
8db1426554
rename DeploymentPodReplacementPolicy FG to DeploymentReplicaSetTerminatingReplicas
2025-03-27 20:27:44 +01:00
Kubernetes Prow Robot
070f0ad3bd
Merge pull request #129970 from mortent/AddResourceV1beta2API
...
Add resource v1beta2 API
2025-03-26 09:10:47 -07:00
Morten Torkildsen
39507d911f
Add resource v1beta2 API
2025-03-26 14:41:09 +00:00
Jean-Marc François
dc1696d807
Fix API doc and tolerance field handling when gate is flipped.
2025-03-21 18:48:37 -04:00
Kubernetes Prow Robot
71eb04295a
Merge pull request #130970 from pohly/dra-device-taints-rest-flake
...
DRA API: fix DeviceTaintRule REST storage test
2025-03-21 04:16:31 -07:00
Patrick Ohly
a18354c60d
DRA API: fix DeviceTaintRule REST storage test
...
The defaulting of TimeAdded randomly broke some of the tests:
TestList:
resttest.go:1393: expected:
[]runtime.Object{(*resource.DeviceTaintRule)(0xc000b83080), (*resource.DeviceTaintRule)(0xc000b831e0)},
got:
[]runtime.Object{(*resource.DeviceTaintRule)(0xc0003db608), (*resource.DeviceTaintRule)(0xc0003db750)}
...
TestCreate:
resttest.go:346: unexpected obj: &resource.DeviceTaintRule{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo2", GenerateName:"", Namespace:"", SelfLink:"", UID:"18d3084d-7d11-4575-8730-4650b81cf1a7", ResourceVersion:"8", Generation:1, CreationTimestamp:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:resource.DeviceTaintRuleSpec{DeviceSelector:(*resource.DeviceTaintSelector)(nil), Taint:resource.DeviceTaint{Key:"example.com/taint", Value:"", Effect:"NoExecute", TimeAdded:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local)}}}, expected &resource.DeviceTaintRule{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo2", GenerateName:"", Namespace:"", SelfLink:"", UID:"18d3084d-7d11-4575-8730-4650b81cf1a7", ResourceVersion:"8", Generation:1, CreationTimestamp:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:resource.DeviceTaintRuleSpec{DeviceSelector:(*resource.DeviceTaintSelector)(nil), Taint:resource.DeviceTaint{Key:"example.com/taint", Value:"", Effect:"NoExecute", TimeAdded:time.Date(2025, time.March, 21, 8, 27, 24, 0, time.Local)}}}
Failure rate before: 3m40s: 1332 runs so far, 7 failures (0.53%)
It's not obvious from the test failure, but the difference is the
TimeAdded. Setting it beforehand to a value that can be encoded (i.e. truncated
to seconds) fixes the flake.
Failure rate after: 5m0s: 1825 runs so far, 0 failures
2025-03-21 08:33:39 +01:00
James Munnelly
8cfb9adbf6
overwrite existing labels during pod Binding storage
2025-03-20 22:39:38 +00:00
James Munnelly
934e247030
Remove kubernetes.io/hostname label copying, skip overriding, and support direct spec.nodeName changes.
2025-03-20 20:19:53 +00:00
James Munnelly
6ddabb6ee6
updating to reflect latest KEP design
2025-03-20 20:19:53 +00:00
James Munnelly
5e7e1e7cf1
KEP-4742: Node Topology Labels via Downward API
2025-03-20 20:19:51 +00:00
Kubernetes Prow Robot
41dd679fee
Merge pull request #130920 from kerthcet/feat/promote-to-ga
...
KEP-3094: Promote NodeInclusionPolicyInPodTopologySpread to Stable
2025-03-20 07:52:32 -07:00
kerthcet
1a34095f75
KEP-3094 Promote NodeInclusionPolicyInPodTopologySpread to Stable
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2025-03-20 14:54:42 +08:00
Kubernetes Prow Robot
d8607b91a7
Merge pull request #130764 from cici37/partitionableDevice
...
[KEP-4815]DRA Partitionable device
2025-03-19 20:12:47 -07:00
Tim Allclair
aba588cd14
Deprecate IPPVSAllocatedStatus: always set allocatedResources with InPlacePodVerticalScaling
2025-03-19 16:00:02 -07:00
Cici Huang
ece1d76e80
API manual changes
...
Co-authored-by: Morten Torkildsen <mortent@google.com >
2025-03-19 22:10:48 +00:00
Kubernetes Prow Robot
68ba091fca
Merge pull request #130844 from danwinship/improved-traffic-distribution
...
KEP-3015 PreferSameZone/PreferSameNode traffic distribution
2025-03-19 13:00:48 -07:00
Kubernetes Prow Robot
ab3cec0701
Merge pull request #130447 from pohly/dra-device-taints
...
device taints and tolerations (KEP 5055)
2025-03-19 13:00:32 -07:00
Kubernetes Prow Robot
2b79593ece
Merge pull request #130225 from ritazh/dra-admin-access-namespace
...
DRA: AdminAccess validate based on namespace label
2025-03-19 10:18:50 -07:00
Kubernetes Prow Robot
f1c634f93e
Merge pull request #130463 from sanposhiho/ga-mlk
...
feat: graduate MatchLabelKeysInPodAffinity to GA
2025-03-19 09:06:31 -07:00
Kensei Nakada
10c6a4258f
feat: graduate MatchLabelKeysInPodAffinity to GA
2025-03-19 23:06:04 +09:00
Dan Winship
4435ead24a
Add PreferSameTrafficDistribution feature gate and associated API.
2025-03-19 08:39:13 -04:00
Rita Zhang
0301e5a9f8
DRA: AdminAccess validate based on namespace label
...
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com >
2025-03-18 22:56:54 -07:00
Kubernetes Prow Robot
7fb8bd8aca
Merge pull request #130905 from tallclair/ippr-beta
...
[FG:InPlacePodVerticalScaling] Graduate to Beta
2025-03-18 18:45:54 -07:00
Tim Allclair
cd1a5c6d5c
Fix Kubelet unit tests
2025-03-18 15:51:09 -07:00
Patrick Ohly
797475e113
DRA: add device taints API
...
This adds the "DeviceTaint" top-level type to v1alpha3 and related fields to
ResourceSlice and ResourceClaim. It's complete enough bring up an API server
and generate files.
2025-03-18 20:52:54 +01:00
Eddie Torres
c766a52356
Implement KEP 4876 Mutable CSINode ( #130007 )
...
* Implement KEP-4876 Mutable CSINode Allocatable Count
Signed-off-by: torredil <torredil@amazon.com >
* Update TestGetNodeAllocatableUpdatePeriod
Signed-off-by: torredil <torredil@amazon.com >
* Implement CSINodeUpdater
Signed-off-by: torredil <torredil@amazon.com >
* Use sync.Once in csiNodeUpdater
Signed-off-by: torredil <torredil@amazon.com >
* ImVerify driver is installed before running periodic updates
Signed-off-by: torredil <torredil@amazon.com >
* Update NodeAllocatableUpdatePeriodSeconds type comment
Signed-off-by: torredil <torredil@amazon.com >
* Leverage apivalidation.ValidateImmutableField in ValidateCSINodeUpdate
Signed-off-by: torredil <torredil@amazon.com >
* Update strategy functions
Signed-off-by: torredil <torredil@amazon.com >
* Run hack/update-openapi-spec.sh
Signed-off-by: torredil <torredil@amazon.com >
* Update VolumeError.ErrorCode field
Signed-off-by: torredil <torredil@amazon.com >
* CSINodeUpdater improvements
Signed-off-by: torredil <torredil@amazon.com >
* Iron out concurrency in syncDriverUpdater
Signed-off-by: torredil <torredil@amazon.com >
* Run hack/update-openapi-spec.sh
Signed-off-by: torredil <torredil@amazon.com >
* Revise logging
Signed-off-by: torredil <torredil@amazon.com >
* Revise log in VerifyExhaustedResource
Signed-off-by: torredil <torredil@amazon.com >
* Update API validation
Signed-off-by: torredil <torredil@amazon.com >
* Add more code coverage
Signed-off-by: torredil <torredil@amazon.com >
* Fix pull-kubernetes-linter-hints
Signed-off-by: torredil <torredil@amazon.com >
* Update API types documentation
Signed-off-by: torredil <torredil@amazon.com >
* Update strategy and validation for new errorCode field
Signed-off-by: torredil <torredil@amazon.com >
* Update validation tests after strategy changes
Signed-off-by: torredil <torredil@amazon.com >
* Update VA status strategy
Signed-off-by: torredil <torredil@amazon.com >
---------
Signed-off-by: torredil <torredil@amazon.com >
2025-03-18 12:45:49 -07:00
Natasha Sarkar
a15520fbea
Move pod resize status to pod conditions
2025-03-17 22:01:05 +00:00
Kubernetes Prow Robot
c12006e8b4
Merge pull request #130742 from gauravkghildiyal/kep-2433-ga
...
Promote TopologyAwareHints feature-gate to GA
2025-03-14 17:41:53 -07:00
Gaurav Ghildiyal
619957c976
Graduate TopologyAwareHints feature-gate to GA in 1.33 and LockToDefault
2025-03-14 12:06:02 -07:00
Joe Betz
5a98d4dbb4
Limit declarative validation to spec until subresource support is added
2025-03-14 11:58:19 -04:00
Joe Betz
f7296b31f0
Add declarative test cases for RC.Spec.MinReadySeconds
2025-03-13 21:26:17 -04:00
Joe Betz
20b69a54bf
Add declarative test cases for RC.Spec.Replicas
2025-03-13 21:24:50 -04:00
Kubernetes Prow Robot
32d8e0ce4f
Merge pull request #130732 from thockin/master_replicationcontroller_replicas_pointer
...
Change internal-version RC.Spec.Relicas to a ptr
2025-03-13 16:05:46 -07:00
Kubernetes Prow Robot
04fb7ac18b
Merge pull request #130536 from tenzen-y/promote-successpolicy-to-ga
...
KEP-3998: Promote JobSuccessPolicy to Stable
2025-03-13 13:27:54 -07:00
Kubernetes Prow Robot
be127ae0e2
Merge pull request #130751 from Jefftree/cle-promote-beta
...
[KEP-4355] Promote Coordinated Leader Election to Beta
2025-03-13 11:55:47 -07:00