Commit Graph

118283 Commits

Author SHA1 Message Date
Nilekh Chaudhari
2c8288ac87
feat: improves metric and logging
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-07-18 22:44:02 +00:00
Kubernetes Prow Robot
c684de526c
Merge pull request #118990 from alexzielenski/apiserver/apiextensions/crd-validation-ratcheting
CRD Validation Ratcheting alpha implementation
2023-07-18 14:46:03 -07:00
Kevin Klues
0449cef8fd Increase timeout for DRA kubelet plugin client
The 10 second timeout was too low. Given that the retry loop for the
kubelet itself is 90s, increasing the timeout to half of this seems
reasonable. Ideally we would pull in the variable that sets the retry
timeout to 90s and then just set our local timeout to half of that.
Unfortunately, this is not exported, so we settle (for now with just
explicitly setting it to 45s.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2023-07-18 22:45:01 +01:00
Kubernetes Prow Robot
31d662e58e
Merge pull request #119009 from MikeSpreitzer/track-executing-requests
Track executing requests
2023-07-18 13:44:18 -07:00
Michał Woźniak
a15c27661e
Job controller implementation of backoff limit per index (#118009) 2023-07-18 13:44:11 -07:00
Kubernetes Prow Robot
f55f2785e2
Merge pull request #116254 from pohly/dra-node-authorizer
node authorizer: limit kubelet access to ResourceClaim objects
2023-07-18 13:44:04 -07:00
Mark Rossetti
b5012ba1e2
Mark existing NodeLogQuery e2e tests as [LinuxOnly] since they do not run on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2023-07-18 13:24:01 -07:00
Kubernetes Prow Robot
6264fd9dad
Merge pull request #119238 from kiashok/exposeCommitMemoryCri
Expose commit memory used in WindowsMemoryUsage struct
2023-07-18 12:33:31 -07:00
Kubernetes Prow Robot
7aa4e089cd
Merge pull request #118808 from Jefftree/updated-lazy-crd-controller-v2
Fix lazy OpenAPI V2 CRD Controller
2023-07-18 12:33:20 -07:00
Alexander Zielenski
bfb2c6a22a update go.mod 2023-07-18 11:49:30 -07:00
Alexander Zielenski
668497e755 use ratcheting schema validator when feature is enabled 2023-07-18 11:49:30 -07:00
Alexander Zielenski
e0f9db42ac add ratcheting schema validator using new openapi hooks 2023-07-18 11:49:30 -07:00
Alexander Zielenski
6f238334ab add CRDValidationRatcheting feature gate 2023-07-18 11:49:30 -07:00
Alexander Zielenski
635875ad52 refactor: convert slices to []interface before inserion into VendorExtensible 2023-07-18 11:49:30 -07:00
Alexander Zielenski
9ee6d97fc0 refactor: add ValidateCustomResourceUpdate to support future validators for CRD Updates 2023-07-18 11:49:29 -07:00
Eric Lin
173b5a75b9 Trim managedFields in controller-manager
Signed-off-by: Eric Lin <exlin@google.com>
2023-07-18 18:31:26 +00:00
Eric Lin
c86f562f29 Run hack/update-codegen.sh informers subprojects
Signed-off-by: Eric Lin <exlin@google.com>
2023-07-18 18:31:26 +00:00
Eric Lin
9c4651bd04 Add 'WithTransform' SharedInformerOption
Also add support for metadata informer factory to use SharedInformerOption

Signed-off-by: Eric Lin <exlin@google.com>
2023-07-18 18:31:08 +00:00
Jefftree
d194639252 Cleanup kubectl legacy server fallback 2023-07-18 18:24:56 +00:00
Kubernetes Prow Robot
238165450a
Merge pull request #119307 from bart0sh/PR121-DRA-UnprepareResources-Dont-Query-claim
DRA: don't query claims from API server
2023-07-18 11:07:21 -07:00
Kubernetes Prow Robot
6b0e66abad
Merge pull request #116968 from mansikulkarni96/windowsStatsFromCRI
kubelet: Implement support for Windows podAndContainerStatsFromCRI
2023-07-18 11:07:10 -07:00
Mike Spreitzer
a8a2fb317c Add tracking and reporting of executing requests
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
2023-07-18 13:38:43 -04:00
Keerthan Reddy Mala
106a931c29 fix intergration test 2023-07-18 10:24:04 -07:00
Keerthan Reddy Mala
d2df65ba6c update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag 2023-07-18 10:24:02 -07:00
Kubernetes Prow Robot
f3f5dd99ac
Merge pull request #119294 from mimowo/backoff-limit-per-index-api
Extend the Job API for BackoffLimitPerIndex
2023-07-18 10:05:21 -07:00
Kubernetes Prow Robot
4575facd23
Merge pull request #119256 from brianpursley/kubectl-1409
Prefer pods without a deletion timestamp over pods with a deletion timestamp when getting an ordered list of active pods
2023-07-18 10:05:09 -07:00
kiashok
1351845133 Update cri-api change in v1.28.0
Signed-off-by: kiashok <kiashok@microsoft.com>
2023-07-18 09:27:20 -07:00
kiashok
59b4951c64 Expose commit memory used in WindowsMemoryUsage struct
Signed-off-by: kiashok <kiashok@microsoft.com>
2023-07-18 09:23:55 -07:00
Ed Bartosh
0ec99fb0b2 Kubelet DRA: fix failing test cases 2023-07-18 19:06:33 +03:00
Kubernetes Prow Robot
56b59c89f5
Merge pull request #117666 from carlory/fix-008
Remove ability to re-enable serving deprecated policyv1beta1 APIs
2023-07-18 08:41:12 -07:00
Ed Bartosh
f6431c6138 DRA: don't query claims from API server
When a pod is force-deleted UnprepareResources fails to get a claim
from an API server.
PrepareResources should cache claim info required by the
UnprepareResources so that UnprepareResources would get it from
the cache instead of querying API server.
2023-07-18 18:23:10 +03:00
Michal Wozniak
cf0b74774f Extend the API for the Job job-index-failure-count annotation 2023-07-18 16:41:11 +02:00
Kubernetes Prow Robot
b3fc4cf7a9
Merge pull request #119386 from dgrisonnet/metrics-server-nanny
addons/metrics-server: fix nanny rbac permissions
2023-07-18 07:19:21 -07:00
Kubernetes Prow Robot
15450a3f02
Merge pull request #119318 from codefromthecrypt/CycleState-docs
Improve docs on framework.CycleState
2023-07-18 07:19:10 -07:00
Miciah Masters
43f8ccfcca TopologyAwareHints: Take lock in HasPopulatedHints
Prevent potential concurrent map access by taking a lock before reading the
topology cache's hintsPopulatedByService map.

* staging/src/k8s.io/endpointslice/topologycache/topologycache.go
(setHintsLocked, hasPopulatedHintsLocked): New helper functions.  These are
the same as the existing SetHints and HasPopulatedHints methods except that
these helpers assume that a lock is already held.
(SetHints): Use setHintsLocked.
(HasPopulatedHints): Take a lock and use hasPopulatedHintsLocked.
(AddHints): Take a lock and use setHintsLocked and hasPopulatedHintsLocked.
* staging/src/k8s.io/endpointslice/topologycache/topologycache_test.go
(TestTopologyCacheRace): Add a goroutine that calls HasPopulatedHints.
2023-07-18 09:23:26 -04:00
wackxu
a9d26ac7c7 Optimize the code of NodeUnschedulable to reduce TolerationsTolerateTaint function calls
Signed-off-by: wackxu <xushiwei5@huawei.com>
2023-07-18 21:00:05 +08:00
Brian Pursley
d281daee33 Prefer pods without a deletion timestamp over pods with a deletion timestamp when getting an ordered list of active pods.
This allows commands like kubectl port-forward, when used with deployments, to avoid selecting a pod that is terminating (due to a rollout, for example).
2023-07-18 08:31:37 -04:00
Kubernetes Prow Robot
6d83e22ba4
Merge pull request #118711 from TommyStarK/tom/gh_118436
add unit test for dra/manager.go
2023-07-18 04:17:09 -07:00
charles-chenzz
0372e4b662 add unit test for dra/manager.go.
Co-Authored-By: charles-chenzz <Rekles666@gmail.com>
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-07-18 12:14:27 +02:00
Michal Wozniak
fcbfdc1710 Extend the Job API for BackoffLimitPerIndex 2023-07-18 11:28:15 +02:00
Kubernetes Prow Robot
9946ea9fd8
Merge pull request #119365 from xmudrii/go1206-iptables
Bump distroless-iptables to 0.2.6
2023-07-18 02:11:20 -07:00
Kubernetes Prow Robot
d43e6705f1
Merge pull request #119095 from saschagrunert/debian-base-bookworm
Update debian-base to bookworm
2023-07-18 02:11:08 -07:00
Damien Grisonnet
3fd40ffb0e addons/metrics-server: fix nanny rbac permissions
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-07-18 10:37:55 +02:00
Kubernetes Prow Robot
f6bcef0fd3
Merge pull request #118601 from andrewsykim/apf-tune-max-seats
priority & fairness: support dynamic max seats
2023-07-18 01:11:20 -07:00
Hao Ruan
056c19e8b3
Add slash ended urls for service-account-issuer-discovery to match API in swagger (#117511)
* Add slash ended urls for service-account-issuer-discovery to match API in swagger

* update the comment for adding slash-ended URLs

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

---------

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2023-07-18 01:11:08 -07:00
Adrian Cole
89ab733760 Improve docs on framework.CycleState
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Kante Yin <kerthcet@gmail.com>
2023-07-18 14:48:20 +08:00
Alexander Zielenski
4da418aba7 refactor: cleanup to NewSchemaValidator takes JSONSchemaProps
avoids caller having to unnecessarily wrap
2023-07-17 21:49:59 -07:00
Alexander Zielenski
ba58130021 refactor: rename apiservervalidation -> apiextensionsvalidation 2023-07-17 21:49:59 -07:00
Jefftree
735be024cf Make CRDs built and aggregated lazily for oasv2 2023-07-18 04:49:56 +00:00
Jefftree
ea23e13463 Update OpenAPI Aggregator 2023-07-18 04:46:09 +00:00