Commit Graph

114279 Commits

Author SHA1 Message Date
cyclinder
4f913dbcdd bump kube-dns to v1.22.20 2023-02-27 14:34:53 +08:00
Mengjiao Liu
81aefe5fee Improve spec.template.spec.restartPolicy description 2023-02-27 14:25:48 +08:00
SataQiu
70b33409de kubeadm: modify '--config' flag from required to optional for 'kubeadm kubeconfig user' 2023-02-27 12:19:31 +08:00
Kubernetes Prow Robot
0e077bb7ac
Merge pull request #116070 from aramase/aramase/f/kms-pkg/util
[KMS] move util from envelope to kms package
2023-02-26 19:52:18 -08:00
Dave Chen
a825450707 kubeadm: improve test coverage by validating the data structure
data structure is what returned if everything okay, but this
structure is not validated at all both in `init` and `join` cmd.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-02-27 10:41:25 +08:00
Yuan Chen
b929908f3b Add symlink check to e2e statefulset app
Fix a bug
2023-02-26 18:37:58 -08:00
Rayowang
119c5f4512 update openapi-spec, generated proto and generated openapi 2023-02-27 10:08:02 +08:00
Rayowang
00c836b44a Fix API field references for autoscaling v1, v2 and v2beta2 2023-02-27 10:02:56 +08:00
Kubernetes Prow Robot
53b8170b97
Merge pull request #116055 from aramase/aramase/f/kubernetes#111923
[KMSv2] log request metadata as part of read/write
2023-02-26 17:02:17 -08:00
Anish Ramasekar
1f98b49bf3
[KMS] move util from envelope to kms package
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-27 00:47:46 +00:00
Anish Ramasekar
e40b3cf54e
[KMSv2] log request metadata as part of read/write
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-27 00:00:36 +00:00
Kubernetes Prow Robot
b670d1ba7c
Merge pull request #116062 from liggitt/revert-field-manager
Revert "Merge pull request #115324 from alexzielenski/apiserver/smd/use-openapiv3
2023-02-25 15:38:17 -08:00
Jordan Liggitt
6165a12c71
Revert "Merge pull request #115324 from alexzielenski/apiserver/smd/use-openapiv3"
This reverts commit 7efa62dfdf, reversing
changes made to c48a7971e3.
2023-02-25 16:14:23 -05:00
Kubernetes Prow Robot
7ad31bc8c3
Merge pull request #116060 from pacoxu/corefile-migration-no-warning
update github.com/coredns/corefile-migration v1.0.20
2023-02-25 08:58:17 -08:00
Paco Xu
b1ee8c8b82 kubeadm: no need to check if target coredns version is not changed 2023-02-25 21:53:28 +08:00
Paco Xu
744d9bfda3 update github.com/coredns/corefile-migration v1.0.20
- Minor change: Don't return Unsupported/Deprecated plugins for non-migration cases, i.e. when the start version is the same as the end version.
2023-02-25 21:39:44 +08:00
moriya
6b4d08bd5c fix: typo 2023-02-25 19:06:07 +09:00
Kubernetes Prow Robot
7efa62dfdf
Merge pull request #115324 from alexzielenski/apiserver/smd/use-openapiv3
update SSA to use OpenAPIV3 for builtin and CRD models
2023-02-24 20:04:05 -08:00
Kubernetes Prow Robot
c48a7971e3
Merge pull request #116053 from aramase/aramase/c/rm_dek_interarrival_kmsv2
[KMSv2] remove setting `dek_cache_inter_arrival_time_seconds` for KMSv2 only
2023-02-24 19:00:13 -08:00
Kubernetes Prow Robot
a34f8423a7
Merge pull request #115907 from qinqon/svc-same-address-different-pod
svc: Support pods with same address
2023-02-24 19:00:05 -08:00
Kubernetes Prow Robot
70fee660fb
Merge pull request #115854 from kerthcet/cleanup/apiserver-cleanup
Cleanup resources when initializing error in integration
2023-02-24 15:58:05 -08:00
Anish Ramasekar
0e06d09676
[KMSv2] remove setting dek_cache_inter_arrival_time_seconds for KMSv2 only
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-02-24 23:23:40 +00:00
Kubernetes Prow Robot
fb57080e06
Merge pull request #115393 from seans3/openapi3-root
OpenAPI V3 Root interface and basic implementation
2023-02-24 13:21:28 -08:00
Alexander Zielenski
5883203c8f update swagger.json used in tests
dumped from 1.27 apiserver. now test is closesr to what is used in practice
2023-02-24 13:11:48 -08:00
Alexander Zielenski
8a85077a61 crd directly create smd schema from spec.Schema
remove unused builder function
2023-02-24 13:11:48 -08:00
Alexander Zielenski
3e96127af1 clean up unnecessary field 2023-02-24 13:10:01 -08:00
Sean Sullivan
5b482476b1 OpenAPI V3 Root interface and basic implementation 2023-02-24 11:54:34 -08:00
Kubernetes Prow Robot
ad52387994
Merge pull request #116018 from TommyStarK/bug-116012/volumebinding-inaccurate-log
scheduler/framework/plugins/volumebinding: fix inaccurate log for when a volume is bound to a claim
2023-02-24 11:03:28 -08:00
Chen Wang
7db339dba2 This commit contains the following:
1. Scheduler bug-fix + scheduler-focussed E2E tests
2. Add cgroup v2 support for in-place pod resize
3. Enable full E2E pod resize test for containerd>=1.6.9 and EventedPLEG related changes.

Co-Authored-By: Vinay Kulkarni <vskibum@gmail.com>
2023-02-24 18:21:21 +00:00
Vinay Kulkarni
f2bd94a0de In-place Pod Vertical Scaling - core implementation
1. Core Kubelet changes to implement In-place Pod Vertical Scaling.
2. E2E tests for In-place Pod Vertical Scaling.
3. Refactor kubelet code and add missing tests (Derek's kubelet review)
4. Add a new hash over container fields without Resources field to allow feature gate toggling without restarting containers not using the feature.
5. Fix corner-case where resize A->B->A gets ignored
6. Add cgroup v2 support to pod resize E2E test.
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources

Co-authored-by: Chen Wang <Chen.Wang1@ibm.com>
2023-02-24 18:21:21 +00:00
vinay kulkarni
231849a908 In-place Pod Vertical Scaling - Scheduler changes 2023-02-24 18:14:21 +00:00
ahg-g
5bca182544 Allow mutating schedulingGates in the Pod template for suspended Jobs 2023-02-24 18:10:26 +00:00
Kubernetes Prow Robot
67f4f9ad5a
Merge pull request #115666 from wojtek-t/refactor_delete_collection
Minor refactor of DeleteCollection in preparation for pagination support there
2023-02-24 09:43:34 -08:00
vinay kulkarni
3c70be1a12 Generated files and compat data from API changes 2023-02-24 17:18:04 +00:00
Vinay Kulkarni
76962b0fa7 In-place Pod Vertical Scaling - API changes
1. Define ContainerResizePolicy and add it to Container struct.
 2. Add ResourcesAllocated and Resources fields to ContainerStatus struct.
 3. Define ResourcesResizeStatus and add it to PodStatus struct.
 4. Add InPlacePodVerticalScaling feature gate and drop disabled fields.
 5. ResizePolicy validation & defaulting and Resources mutability for CPU/Memory.
 6. Various fixes from code review feedback (originally committed on Apr 12, 2022)
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources
2023-02-24 17:18:04 +00:00
Kubernetes Prow Robot
cfb32121c1
Merge pull request #115928 from pohly/dra-resource-requirements-pvc
DRA resource requirements in PVC
2023-02-24 08:39:35 -08:00
TommyStarK
5531295bf9 scheduler/framework/plugins/volumebinding: fix inaccurate log for when a volume is bound to a claim
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-02-24 16:43:38 +01:00
Patrick Ohly
093469fb30 api: generated files 2023-02-24 16:32:58 +01:00
Patrick Ohly
f32302e744 api: drop Resources.Claims from PVC and PVC template
PVC and containers share the same ResourceRequirements struct. The Claims field
in it only makes sense when used in containers. When used in a PVC, the field
should have been rejected by validation. This was overlooked when introducing
it, so now persisted objects might have it set and/or people may have started
to rely on it being accepted even when it has no effect.

Therefore we cannot reject it in validation anymore, but we can still strip
it out on create or update.
2023-02-24 16:32:58 +01:00
Kubernetes Prow Robot
a5f59ccf37
Merge pull request #116027 from pwschuurman/kep-3335-fix-validation
Remove StatefulSetStartOrdinal feature gate checks in StatefulSet validation
2023-02-24 07:17:45 -08:00
Kubernetes Prow Robot
6e213e7390
Merge pull request #114872 from Iceber/fix_acquire_leader
client-go: fix the wait time for trying to acquire the leader lease
2023-02-24 07:17:34 -08:00
Kubernetes Prow Robot
0753f02851
Merge pull request #115944 from SataQiu/warning-for-externalid
Add field-level warning for deprecated spec.externalID of node
2023-02-24 06:15:47 -08:00
Kubernetes Prow Robot
a8e7572a7b
Merge pull request #114656 from wojtek-t/generalize_cacher_tests_4
Reuse generic Watch test for watchcache
2023-02-24 06:15:34 -08:00
Kubernetes Prow Robot
e8662a46dd
Merge pull request #116037 from wojtek-t/move_cache_watcher
Split cacheWatcher into its own file
2023-02-24 04:01:34 -08:00
Wojciech Tyczyński
a537049110 Split cacheWatcher into its own file 2023-02-24 11:59:01 +01:00
joey
96b9531f3e
fix apiserver metrics RecordsWatchCacheCapacityChange use watchCache as increase total
if old less than new, Inc function should be called for `watchCacheCapacityIncreaseTotal` instead of `watchCacheCapacity`

Signed-off-by: joey <zchengjoey@gmail.com>
2023-02-24 16:02:35 +08:00
Kubernetes Prow Robot
5961d8ce1b
Merge pull request #115784 from seans3/openapi-fake-client
Refactor to use openapi fake client
2023-02-23 17:03:33 -08:00
Peter Schuurman
a714e9e485 Fix validation.go to validate without StatefulSetStartOrdinal feature gate check. Adds test case to validate regression fix of validation failing when spec.ordinals set and feature gate disabled 2023-02-23 16:22:56 -08:00
Sean Sullivan
298cb361c8 Removes old discovery hack ignoring 403 and 404 2023-02-23 15:18:03 -08:00
Kubernetes Prow Robot
35f3fc59c1
Merge pull request #115236 from danielvegamyhre/scalable-indexed-job
Support for elastic Indexed Jobs
2023-02-23 14:57:34 -08:00