杨军10092085
62cadde688
Fix incorrect description of feature PodObservedGenerationTracking
2025-09-05 16:22:32 +08:00
Kubernetes Prow Robot
7284237ac4
Merge pull request #133229 from SergeyKanzhelev/fixupTypes
...
fix up types for 1.34 release - remove GA feature gates
2025-09-02 17:49:19 -07:00
Ahmet Alp Balkan
ad8afd3ab0
add generated files
2025-08-27 09:22:05 -07:00
yliao
3068b60b83
extended resource backed by DRA: codegen
2025-07-29 17:17:20 +00:00
Sergey Kanzhelev
cd4771d737
fix up types for 1.34 release - remove GA feature gates
2025-07-26 00:02:20 +00:00
Kubernetes Prow Robot
b93bcbfba1
Merge pull request #133195 from nojnhuh/dra-ga-comment
...
Update DRA Pod spec comments
2025-07-25 00:32:35 -07:00
Kubernetes Prow Robot
3fd1251165
Merge pull request #131089 from KevinTMtz/pod-level-hugepage-cgroups
...
[PodLevelResources] Propagate Pod level hugepage cgroup to containers
2025-07-24 19:08:26 -07:00
Jon Huhn
f1737db166
Update DRA Pod spec comments
2025-07-24 18:58:24 -05:00
Kubernetes Prow Robot
26045b2fab
Merge pull request #132642 from yuanwang04/restart-rules
...
Implement container restart policy rules
2025-07-24 16:44:51 -07:00
Kubernetes Prow Robot
7912e5fd67
Merge pull request #131549 from carlory/KEP-3751-GA
...
[Kep-3751] Promote VolumeAttributesClass to GA
2025-07-24 16:44:27 -07:00
Kevin Torres
1bc995c195
Generated files
2025-07-24 21:29:04 +00:00
carlory
94bf8fc8a9
Promoted API VolumeAttributesClass and VolumeAttributesClassList to storage.k8s.io/v1.
...
Promoted feature-gate `VolumeAttributesClass` to GA (on by default)
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-07-25 01:53:59 +08:00
Yuan Wang
af595a44ae
Add container restart rules to API
2025-07-24 16:49:52 +00:00
Patrick Ohly
4e592f6c14
DRA API: s/v1beta2/v1/ and generated files
2025-07-24 08:30:24 +02:00
Kubernetes Prow Robot
9adc49ffd4
Merge pull request #133046 from toVersus/reject-windows-in-api-server
...
[PodLevelResources] Add validation for Windows OS
2025-07-23 19:56:33 -07:00
Kubernetes Prow Robot
6ef2215eb7
Merge pull request #132558 from HirazawaUi/Implement-4762
...
KEP-4762: Allows setting any FQDN as the pod's hostname
2025-07-23 16:26:27 -07:00
Kubernetes Prow Robot
041974709c
Merge pull request #132106 from AndrewSirenko/vac-valid
...
[KEP-3751] Allow PVC VACName to go from non-nil to nil
2025-07-23 12:52:30 -07:00
Drew Sirenko
f7109ed281
[KEP-3751] Allow PVC VACName to update to nil or empty when status.currentVAC is nil
2025-07-23 10:59:18 -04:00
HirazawaUi
8b3814c4ab
Add the HostnameOverride field to the Pod API
2025-07-23 20:28:12 +08:00
Tsubasa Nagasawa
88af8b6060
Add PodLevelResources to the Windows OS limitations in the API doc
2025-07-23 07:08:21 +09:00
Bing Hongtao
6f3b6b91f0
KEP-3721: Support for env files ( #132626 )
...
* Add FileKeyRef field and struct to the Pod API
* Add the implementation code in the kubelet.
* Add validation code
* Add basic functionality e2e tests
* add codes for drop disabled pod fields
* update go.mod
2025-07-22 13:40:42 -07:00
Taahir Ahmed
6d4000f844
Pod Certificates: make update
...
Change-Id: Ib258c1f3bf238f41cfa1d6de8e8d0de5b8379a06
2025-07-21 21:49:57 +00:00
Sunny Song
1745094c40
Update VolumeAttributesClass API Description
2025-07-17 18:40:01 +00:00
Kubernetes Prow Robot
c2cd859eaf
Merge pull request #131458 from BenTheElder/hostnetwork-docs
...
document hostnetwork <> port implications
2025-07-14 16:42:23 -07:00
Benjamin Elder
604cc2b51f
hack/update-openapi-spec.sh
2025-07-07 16:24:51 -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
Joe Betz
1d17ca9b7e
generate code
2025-05-24 00:03:35 -04: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
Vlad Vasilyeu
c4d6fcb197
Remove misleading comment from NodeTaint TimeAdded field
2025-05-13 15:35:21 +00:00
Antonio Ojea
15ab88f88b
remove networking v1alpha1 and make update
2025-05-06 13:29:54 +00:00
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
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
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
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
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
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
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
Itamar Holder
ee4ac3d70a
add auto-generated files: ./hack/update-openapi-spec.sh
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-03-16 11:59:29 +02: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
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
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
Natasha Sarkar
6edd921746
run 'make update'
2025-03-06 20:08:06 +00:00