Commit graph

1122 commits

Author SHA1 Message Date
Anish Ramasekar
03db2278d5
kubelet: Add CacheType field to ServiceAccountTokenAttributes with validation
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-07-10 14:50:51 -05:00
Benjamin Elder
5adc3bf08a hack/update-codegen.sh 2025-07-07 16:23:09 -07:00
Kubernetes Prow Robot
3fdc11cbe0
Merge pull request #130230 from carlory/cleanup-CSIDriverRegistry
clean up CSIDriverRegistry
2025-07-04 15:25:31 -07:00
Kubernetes Prow Robot
6720f62d82
Merge pull request #131992 from lalitc375/master
Deprecate StreamingConnectionIdleTimeout field, that is not being us…
2025-06-27 11:00:34 -07:00
Kubernetes Prow Robot
7c548c9d9e
Merge pull request #132231 from czeslavo/fix-outdated-volumes-links
Fix outdated links in VolumeSource godocs
2025-06-26 11:02:28 -07:00
Kubernetes Prow Robot
49c20d6f44
Merge pull request #132173 from dejanzele/feat/promote-job-pod-replacement-policy-ga
KEP-3939: Job Pod Replacement Policy; promote to GA
2025-06-24 07:04:28 -07:00
Lalit Chauhan
6a654e5be0 Deprecate StreamingConnectionIdleTimeout field, that is not being used for a long time 2025-06-18 21:15:30 +00:00
Kubernetes Prow Robot
354520cd9b
Merge pull request #131354 from tomoish/fix-netpol-podselector-doc
Fix: Clarify optional podSelector in NetworkPolicy docs and schema
2025-06-16 10:12:59 -07:00
Dejan Zele Pejchev
bccc9fe470
KEP-3939: Job Pod Replacement Policy; promote to GA
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
2025-06-16 16:26:03 +02:00
tomoish
7a95f3e478 Fix NetworkPolicy podSelector comments
Clarify that podSelector is optional and defaults to an empty selector,
matching all pods.
Replace “ingress rules” with “rules” to reflect both directions.

Update podSelector descriptions in NetworkPolicy documentation for clarity
2025-06-16 00:11:48 +09:00
Kubernetes Prow Robot
7e94ec9eac
Merge pull request #132000 from pohly/dra-api-alpha3-removal
DRA API: remove obsolete types from v1alpha3
2025-06-12 09:39:12 -07:00
Grzegorz Burzyński
11abb0042d
Fix outdated links in VolumeSource godocs 2025-06-11 17:14:39 +02:00
HirazawaUi
0ca9c380ad update all api files 2025-06-08 12:00:14 +08:00
Patrick Ohly
10de6780cf DRA API: remove obsolete types from v1alpha3
The v1alpha3 version is still needed for DeviceTaintRule, but the rest of the
types and most structs became obsolete in v1.32 when we introduced v1beta1 and
bumped the storage version to v1beta1.

Removing them now simplifies adding new features because new fields don't need
to be added to these obsolete types. This could have been done already in 1.33,
but wasn't to minimize disrupting on-going work.
2025-06-06 12:06:28 +02:00
Kubernetes Prow Robot
1449265589
Merge pull request #131664 from jpbetz/subresources-enable-replicas
Migrate to declarative validation: ReplicationController/scale spec.replicas field
2025-05-27 09:14:16 -07:00
Joe Betz
1d17ca9b7e generate code 2025-05-24 00:03:35 -04:00
Maciej Szulik
76f95271a5
kuberc: make update and update-vendor
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-05-23 11:02:58 +02:00
Kubernetes Prow Robot
fbd474a286
Merge pull request #131644 from Uladzislau97/taint-time-added
Remove misleading comment from NodeTaint TimeAdded field
2025-05-13 15:53:26 -07: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
Vlad Vasilyeu
c4d6fcb197 Remove misleading comment from NodeTaint TimeAdded field 2025-05-13 15:35:21 +00:00
Joe Betz
4821604f83 Reorganize scheme type converter into apimachinery utils
This removes a dependency from generated applyconfigurations to a testing
package. To do this, the type converter in the testing package has been
moved out to the apimachinery package and the utilities the converter
depend on have been reorganized.
2025-05-07 15:42:09 -04:00
Antonio Ojea
15ab88f88b remove networking v1alpha1 and make update 2025-05-06 13:29:54 +00:00
Kubernetes Prow Robot
e61430919e
Merge pull request #131431 from black-dragon74/apps-v1b2-typo
api: Fix typo in word "immediately"
2025-05-02 06:44:04 -07:00
Niraj Yadav
2e98d87c56 api: Fix typo in word "immediately"
In v1beta2 apps types, "immediately" is misspelled as
"immediatedly", this patch corrects that typo.

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
2025-05-02 10:48:46 +05:30
Kubernetes Prow Robot
595516a149
Merge pull request #130468 from jingyuanliang/PodAntiAffinity
fix: comment on preferred PodAntiAffinity
2025-04-24 12:00:34 -07:00
Kubernetes Prow Robot
93cc525932
Merge pull request #131333 from tenzen-y/fix-successpolicy-api-comment
Job: Fix API comments for SuccessCriteriaMet
2025-04-23 18:20:58 -07:00
Kubernetes Prow Robot
aa9e98805c
Merge pull request #131256 from mimowo/job-improve-backoff-docs
Improve Job API comment for the backoffLimit
2025-04-23 17:09:58 -07:00
Kubernetes Prow Robot
ea04d665da
Merge pull request #131061 from aramase/aramase/c/kep_4412_add_unique_req
clarify mutual exclusivity of service account annotation keys in godoc
2025-04-23 15:59:06 -07:00
Kubernetes Prow Robot
b775f9b92f
Merge pull request #130994 from BenTheElder/host-network-no-port
Remove inaccurate doc comment from podspec hostNetwork field
2025-04-23 14:40:36 -07:00
Kubernetes Prow Robot
25222679ec
Merge pull request #130928 from Jefftree/patch-4
Tag api change instead of apimachinery on generated openapi changes
2025-04-23 13:31:50 -07:00
Yuki Iwai
db1e107150 Job: Fix API comments for SuccessCriteriaMet
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2025-04-17 00:42:26 +09:00
Michal Wozniak
8f1326251c Improve Job API comment for the backoffLimit 2025-04-14 09:51:51 +02: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
e761be47a4 Run make update 2025-03-26 14:52:36 +00:00
Anish Ramasekar
f7e82d8059
clarify mutual exclusivity of service account annotation keys in godoc
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-25 17:30:42 -07:00
Kubernetes Prow Robot
ff25881bc1
Merge pull request #130556 from sreeram-venkitesh/kep-4960-container-stop-signals
KEP 4960: Container Stop Signals
2025-03-24 16:36:32 -07:00
Sreeram
d6d9a354d7 Generated files 2025-03-25 02:06:29 +05:30
Benjamin Elder
1c3dc397ae make update 2025-03-21 18:19:43 -07:00
Jean-Marc François
ac107137ce Refresh autogenerated files following the configurable tolerance updates. 2025-03-21 18:48:38 -04:00
carlory
0882efaf8e Remove general available feature-gate CPUManager
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-21 10:42:29 +08:00
Kubernetes Prow Robot
6bc352f6a9
Merge pull request #130535 from ffromani/cpumanager-policy-options-ga
node: kep-2625: cpu manager policy options GA
2025-03-20 11:24:46 -07: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
Francesco Romani
3c7ed00e22 node: kep-2625: cpu manager policy options GA
Move the support for CPUManager Policy Options to GA

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-20 08:31:32 +01:00
kerthcet
1a34095f75 KEP-3094 Promote NodeInclusionPolicyInPodTopologySpread to Stable
Signed-off-by: kerthcet <kerthcet@gmail.com>
2025-03-20 14:54:42 +08:00
Cici Huang
ea2f888109 Auto gen 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
4467dd3d6c
Merge pull request #130028 from AkihiroSuda/subids-per-pod
kubelet: config: add userNamespaces.idsPerPod
2025-03-19 10:18:33 -07:00
Jeffrey Ying
7f263b057d
Tag api change instead of apimachinery on generated openapi. changes 2025-03-19 13:04:18 -04: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
Jingyuan Liang
4120ed1df0 chore: make update for doc changes 2025-03-19 16:06:30 +00:00
Kensei Nakada
10c6a4258f feat: graduate MatchLabelKeysInPodAffinity to GA 2025-03-19 23:06:04 +09:00
Dan Winship
af3584778e update generate docs for PreferSameTrafficDistribution 2025-03-19 08:39:13 -04:00
Akihiro Suda
1592bfa4a8
kubelet: config: add userNamespaces.idsPerPod
IDsPerPod is the mapping length of subids for UserNS.
The length must be multiple of 65536.
Default: 65536

Implements kubernetes/enhancements PR 5020 (addendum to KEP-127)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-03-19 17:26:11 +09:00
carlory
a2624f9c64 make update 2025-03-19 15:09:26 +08:00
Patrick Ohly
99dbd85c45 DRA: generated files for device taints API 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
Kubernetes Prow Robot
83c5f99f97
Merge pull request #128184 from cupnes/add-storage-capacity-scoring
KEP-4049: Add storage capacity scoring to VolumeBinding plugin
2025-03-18 03:49:49 -07:00
Kubernetes Prow Robot
16ef87e1b8
Merge pull request #128622 from jpbetz/admission-policy-generalize-api-docs
Clean up API docs shared by ValidatingAdmissionPolicy and MutatingAdmissionPolicy
2025-03-17 20:27:48 -07:00
Kubernetes Prow Robot
2499a2c0a0
Merge pull request #129954 from iholder101/swap/capacity-on-node-sys-info
[KEP-2400] Report swap capacity as part of node.status.nodeSystemInfo
2025-03-17 19:17:48 -07:00
Natasha Sarkar
a15520fbea Move pod resize status to pod conditions 2025-03-17 22:01:05 +00:00
Kubernetes Prow Robot
fcb2418f7b
Merge pull request #128152 from stlaz/ensure-secret-images
Multi-tenancy in accessing node images via Pod API
2025-03-17 07:09:49 -07:00
Yuma Ogami
43382b1b39 Switch control from VolumeCapacityPriority to StorageCapacityScoring
The tests and comments have also been updated because while
VolumeCapacityPriority preferred a node with the least allocatable,
StorageCapacityScoring preferred a node with the maximum allocatable.
2025-03-17 00:49:58 +00:00
Itamar Holder
4bdaf6cbbd add auto-generated files: ./hack/update-codegen.sh
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-03-16 11:59:28 +02:00
Stanislav Láznička
0ca2333846
make update 2025-03-14 16:28:53 +01:00
Tim Hockin
1e33616068 Add declarative default for RC.Spec.MinReadySeconds 2025-03-13 21:26:14 -04:00
Tim Hockin
21b3da7e5a Add declarative default for RC.Spec.Replicas
Remove manual default:

```
$ git diff
diff --git a/pkg/apis/core/v1/defaults.go b/pkg/apis/core/v1/defaults.go
index e66de8bb432..1dd28dd35fb 100644
--- a/pkg/apis/core/v1/defaults.go
+++ b/pkg/apis/core/v1/defaults.go
@@ -60,10 +60,6 @@ func SetDefaults_ReplicationController(obj *v1.ReplicationController) {
                        obj.Labels = labels
                }
        }
-       if obj.Spec.Replicas == nil {
-               obj.Spec.Replicas = new(int32)
-               *obj.Spec.Replicas = 1
-       }
 }
 func SetDefaults_Volume(obj *v1.Volume) {
        if ptr.AllPtrFieldsNil(&obj.VolumeSource) {
```

The test fails:

```
$ go test ./pkg/apis/core/v1 | grep -v gate | grep -v SetEmulationVersion
--- FAIL: TestSetDefaultReplicationControllerReplicas (0.00s)
    defaults_test.go:1608: expected: 1 replicas, got: 0
FAIL
FAIL	k8s.io/kubernetes/pkg/apis/core/v1	0.269s
FAIL
```

Declare the default, update codegen and re-run the test:

```
$ git diff
diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go
index 406ab56a002..7e5136fe9f6 100644
--- a/staging/src/k8s.io/api/core/v1/types.go
+++ b/staging/src/k8s.io/api/core/v1/types.go
@@ -5101,6 +5101,7 @@ type ReplicationControllerSpec struct {
        // Defaults to 1.
        // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
        // +optional
+       // +default=1
        // +k8s:minimum=0
        Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`

$ ./hack/update-codegen.sh default
+++ [1219 08:58:43] Generating defaulter code for 102 targets

$ git diff
diff --git a/pkg/apis/core/v1/zz_generated.defaults.go b/pkg/apis/core/v1/zz_generated.defaults.go
index 3b6eb4f0a93..567c49053aa 100644
--- a/pkg/apis/core/v1/zz_generated.defaults.go
+++ b/pkg/apis/core/v1/zz_generated.defaults.go
@@ -878,6 +878,10 @@ func SetObjectDefaults_PodTemplateList(in *corev1.PodTemplateList) {

 func SetObjectDefaults_ReplicationController(in *corev1.ReplicationController) {
        SetDefaults_ReplicationController(in)
+       if in.Spec.Replicas == nil {
+               var ptrVar1 int32 = 1
+               in.Spec.Replicas = &ptrVar1
+       }
        if in.Spec.Template != nil {
                SetDefaults_PodSpec(&in.Spec.Template.Spec)
                for i := range in.Spec.Template.Spec.Volumes {

$ go test ./pkg/apis/core/v1 | grep -v gate | grep -v SetEmulationVersion
ok  	k8s.io/kubernetes/pkg/apis/core/v1	(cached)
```
2025-03-13 21:24:48 -04:00
Kubernetes Prow Robot
23d6377028
Merge pull request #130019 from yongruilin/version-intro
KEP-4330: extend version information with more detailed version fields
2025-03-13 17:43:46 -07:00
yongruilin
a3094ccbe6 feat: extend version information with more detailed version fields
- Add new version fields to version.Info struct:
  * EmulationMajor and EmulationMinor to track emulated version
  * MinCompatibilityMajor and MinCompatibilityMinor for compatibility tracking
- Update related code to populate and use these new fields
- Improve version information documentation and OpenAPI generation
- Modify version routes and documentation to reflect new version information structure
2025-03-13 21:44:31 +00: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
94cc4babc2
Merge pull request #130233 from soltysh/statefulset_api
StatefulSet: add explicit validation for .spec.serviceName and mark the field optional
2025-03-13 13:27:46 -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
Maciej Szulik
d6e5d4f20d
make update
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-03-13 17:53:16 +01:00
Kubernetes Prow Robot
68899f8e6d
Merge pull request #124360 from carlory/kep-3751-quota-2
Add quota support for PVC with VolumeAttributesClass
2025-03-13 07:35:48 -07:00
carlory
27706a0b54 Add quota support for PVC with VolumeAttributesClass
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-13 13:50:44 +08:00
Kubernetes Prow Robot
92d7e55abd
Merge pull request #129886 from danwinship/endpointslice-api-notes
Try to clarify EndpointSlice semantics some more
2025-03-12 21:19:53 -07:00
Kubernetes Prow Robot
7b6c56e5fb
Merge pull request #130135 from saschagrunert/image-volume-beta
[KEP-4639] Graduate image volume sources to beta
2025-03-12 18:03:58 -07:00
Jefftree
a7505f0262 generated 2025-03-12 19:25:30 +00:00
Kubernetes Prow Robot
caf541857f
Merge pull request #130673 from gauravkghildiyal/kep-4444-ga
Promote ServiceTrafficDistribution feature-gate to GA and update docs with latest descriptions
2025-03-12 08:23:47 -07:00
Anish Ramasekar
ba2eecca0d
Add TokenAttributes field to v1 CredentialProvider
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-11 19:24:39 -05:00
Stanislav Láznička
ccd2d4d62a
generate code 2025-03-11 18:07:26 +01:00
Sascha Grunert
f9e5dd84ad
Graduate image volume sources to beta
Graduate the feature to beta, by:

- Allowing `subPath`/`subPathExpr` for image volumes
- Modifying the CRI to pass down the (resolved) sub path
- Adding metrics which are outlined in the KEP

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-03-11 13:41:45 +01:00
Gaurav Ghildiyal
ca43bb1719 Run 'make update' 2025-03-09 14:54:36 -07:00
Kubernetes Prow Robot
2effa5e3cf
Merge pull request #130352 from natasha41575/kubelet-pod-observedgen
[FG:PodObservedGenerationTracking] Kubelet sets pod `status.observedGeneration` when updating the pod status
2025-03-07 13:33:45 -08:00
Kubernetes Prow Robot
9d45ea8b9d
Merge pull request #128586 from mortent/DRAPrioritizedList
Prioritized Alternatives in Device Requests
2025-03-06 21:01:44 -08:00
Yuki Iwai
749f03a49f Gradeate Job SuccessPolicy to Stable
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2025-03-07 07:21:12 +09:00
Natasha Sarkar
6edd921746 run 'make update' 2025-03-06 20:08:06 +00:00
Jefftree
71622aee49 Revert "generated"
This reverts commit 2d10dec3a2.
2025-03-01 14:10:35 +00:00
Kubernetes Prow Robot
d04883c90c
Merge pull request #130061 from mimowo/make-backoffperindex-stable
Graduate Backoff Limit Per Index as stable
2025-02-28 13:37:02 -08:00
Morten Torkildsen
7fcaaa08ee Run make update 2025-02-28 20:59:31 +00:00
Morten Torkildsen
68040a3173 Run make update 2025-02-28 19:28:26 +00:00
Jefftree
2d10dec3a2 generated 2025-02-27 17:50:36 +00:00
Kubernetes Prow Robot
a18b4a8d97
Merge pull request #129158 from LionelJouin/fix-128831
Fix ResourceClaim status API inconsistency
2025-02-26 20:32:30 -08:00
Kubernetes Prow Robot
1b4c3483ce
Merge pull request #127577 from vaibhav2107/eviction-hard
Added the MergeDefaultEvictionSettings Kubelet Config
2025-02-26 12:10:30 -08:00
Michal Wozniak
a91ed902fe Graduate Backoff Limit Per Index as stable
Reenable the JobBackoffLimitPerIndex_Reenabling integration test
2025-02-26 17:06:37 +01:00
vaibhav2107
a97c6a7045 Added the mergeDefaultEvictionSettings Kubelet Config 2025-02-24 23:06:06 +05:30
Kubernetes Prow Robot
f67b346129
Merge pull request #130298 from thockin/max_of_of
Fix dup word in API doc
2025-02-20 15:00:34 -08:00
Tim Hockin
ec66befdcb
Fix dup word in API doc 2025-02-20 09:02:57 -08:00
Jefftree
ff69b5bcf3 generated 2025-02-20 00:51:22 +00:00