Commit Graph

114136 Commits

Author SHA1 Message Date
Moshe Levi
2c79af0d63 kubelet dra: add unit tests for checkpoint
Signed-off-by: Moshe Levi <moshele@nvidia.com>
2023-03-12 09:13:19 +02:00
Moshe Levi
e7256e08d3 kubelet dra: add checkpointing mechanism in the DRA Manager
The checkpointing mechanism will repopulate DRA Manager in-memory cache on kubelet restart.
This will ensure that the information needed by the PodResources API is available across
a kubelet restart.

The ClaimInfoState struct represent the DRA Manager in-memory cache state in checkpoint.
It is embedd in the ClaimInfo which also include the annotation field. The separation between
the in-memory cache and the cache state in the checkpoint is so we won't be tied to the in-memory
cache struct which may change in the future. In the ClaimInfoState we save the minimal required fields
to restore the in-memory cache.

Signed-off-by: Moshe Levi <moshele@nvidia.com>
2023-03-10 12:22:15 +02:00
John Howard
b99fe0d5b9
client-go: support Shutdown() for metadata and dynamic informers (#114434)
* client-go: support `Shutdown()` for metadata and dynamic informers

Followup to https://github.com/kubernetes/kubernetes/pull/112200,
specifically
https://github.com/kubernetes/kubernetes/pull/112200#issuecomment-1344812038.

* add comments

* Defer lock
2023-02-28 23:09:17 -08:00
Kubernetes Prow Robot
a023a5eb17
Merge pull request #115988 from justinsb/prunev2_add_labels
prunev2: Add labels for objects that we apply
2023-02-28 20:33:16 -08:00
Kubernetes Prow Robot
93a5181871
Merge pull request #116022 from nilekhc/reference-implementation-provider
[kmsv2] feat: add kms mock plugin for e2e tests
2023-02-28 17:57:17 -08:00
Nilekh Chaudhari
43acba8084
feat: kms base64 plugin for e2e tests
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-03-01 00:11:17 +00:00
Kubernetes Prow Robot
9b213330f5
Merge pull request #116153 from alexzielenski/podsecurity-featuregate-re-enable
skip special features in TestPodSecurityGAOnly
2023-02-28 16:07:23 -08:00
Kubernetes Prow Robot
11ff3fbeee
Merge pull request #116090 from abserari/patch-1
Typo: fix EndpointsLeasesResourceLock ->ConfigMapsLeasesResourceLock
2023-02-28 16:07:16 -08:00
Kubernetes Release Robot
23909d3c2c CHANGELOG: Update directory for v1.26.2 release 2023-02-28 22:56:38 +00:00
Kubernetes Prow Robot
a1f4fa0b0c
Merge pull request #116141 from thockin/codegen_script_wide_vars
Codegen: set LC_ALL and unset GREP_OPTIONS
2023-02-28 14:54:23 -08:00
Kubernetes Prow Robot
f22060cda6
Merge pull request #116140 from dashpole/fix_nobody_tracing
Update otelhttp dependency to v0.35.1
2023-02-28 14:54:16 -08:00
Kubernetes Prow Robot
de995809d0
Merge pull request #116130 from pohly/test-golangci-lint-improvements
golangci-lint improvements
2023-02-28 14:54:07 -08:00
Kubernetes Prow Robot
a683997964
Merge pull request #116128 from wojtek-t/event_metrics
Add metrics for number of events received from etcd
2023-02-28 14:54:00 -08:00
Kubernetes Prow Robot
6e202d6fdb
Merge pull request #116116 from ahg-g/ahg-mutable-job-ga
Graduate JobMutableNodeSchedulingDirectives feature to GA
2023-02-28 14:53:52 -08:00
Kubernetes Prow Robot
1efc044598
Merge pull request #116105 from thockin/codegen-15-subprojects
Fix codegen for older bash
2023-02-28 14:53:45 -08:00
Kubernetes Prow Robot
0469455ff7
Merge pull request #116082 from mimowo/fix-oomkiller-test
Fix the flaky OOMKiller test by sleep at start
2023-02-28 14:53:37 -08:00
Kubernetes Prow Robot
6a25c528bb
Merge pull request #115891 from bart0sh/PR103-CRI-add-CDI-devices
DRA: Pass CDI devices with a new CRI field
2023-02-28 14:53:28 -08:00
Kubernetes Prow Robot
bd1435dccd
Merge pull request #114016 from songxiao-wang87/runwxs-test3
word misspelling
2023-02-28 14:53:16 -08:00
Kubernetes Release Robot
27ec02e076 CHANGELOG: Update directory for v1.25.7 release 2023-02-28 21:51:56 +00:00
Alexander Zielenski
9ef1fc543f skip special features in TestPodSecurityGAOnly
was causing some alpha/beta features to be disabled after running sometimes
2023-02-28 13:21:35 -08:00
Kubernetes Release Robot
c4ca8ccf3c CHANGELOG: Update directory for v1.23.17 release 2023-02-28 21:06:52 +00:00
Kubernetes Release Robot
a003138bf7 CHANGELOG: Update directory for v1.24.11 release 2023-02-28 20:22:51 +00:00
Wojciech Tyczyński
85359d74ed Add metrics for number of events received from etcd 2023-02-28 20:30:17 +01:00
Kubernetes Prow Robot
18eea58ac2
Merge pull request #115359 from iancoolidge/devel-cpuset
More code-review changes from k/utlils cpuset review
2023-02-28 10:55:16 -08:00
Justin SB
ab05830840 prunev2: Add labels for objects that we apply
As we apply objects when using apply/prune v2, we want to be sure they
include the label that ties them back to the applyset they are part
of.

Co-Authored-By: Katrina Verey <katrina.verey@shopify.com>
2023-02-28 13:27:33 -05:00
Tim Hockin
6a09ba8f52
Codegen: set LC_ALL and unset GREP_OPTIONS
LC_ALL is always wanted and GREP_OPTIONS is never wanted.  The `grep
--color=never` dates back to 2016, an issue with OLD grep on Macs, which
was hard to deal with when this was all Makefile magic.  Now that it's a
script, we can do it simpler.
2023-02-28 10:17:52 -08:00
David Ashpole
e0d44fd216
update otelhttp to v0.35.1 2023-02-28 17:52:30 +00:00
Ed Bartosh
5a86895070 DRA: pass CDI devices through CRI CDIDevice field 2023-02-28 19:21:20 +02:00
Ed Bartosh
fb3f8ac3c3 CRI: add CDIDevice to the ContainerConfig 2023-02-28 19:21:11 +02:00
Kubernetes Prow Robot
e519921666
Merge pull request #115940 from ahg-g/ahg-mutable-ga
Allow mutating schedulingGates in the Pod template for suspended Jobs
2023-02-28 08:51:17 -08:00
Patrick Ohly
fa98647a30 golangci-lint: update logcheck original-url 2023-02-28 17:22:33 +01:00
Patrick Ohly
cf2e6291d1 hack: move golangci-lint config files
Because the script now explicitly selects the configuration file, the files no
longer have to be in the root directory. Having them in hack without the
leading dot is better because they then have the same owners as the script and
are more visible.

The downside is that manual invocations of golangci-lint without the parameter
no longer work.
2023-02-28 17:22:31 +01:00
Patrick Ohly
2d513e1330 golangci-lint: show more information about actual invocation
Both env variables and parameters are relevant for users who want to invoke the
command directly or follow how it is used.
2023-02-28 17:21:52 +01:00
ahg-g
2ecd24011a Graduate JobMutableNodeSchedulingDirectives feature to GA 2023-02-28 15:47:13 +00:00
Kubernetes Prow Robot
6f68a13696
Merge pull request #115961 from pohly/e2e-framework-deprecate-gomega-wrappers
e2e framework: deprecate gomega wrappers
2023-02-28 06:27:29 -08:00
Kubernetes Prow Robot
04e7021d06
Merge pull request #114625 from Divya063/feature-private-image-registry
[E2E] Add support for pulling images from private registry
2023-02-28 06:27:17 -08:00
Antonio Ojea
3b17aece1f
cacher allow context cancellation if not ready (#116024)
* cacher allow context cancellation if not ready

Replace the sync.Cond variable with a channel so we can use the
context cancellation signal.

Co-authored-by: Wojciech Tyczy<C5><84>ski <wojtekt@google.com>
Change-Id: I2f75313a6337feee440ece4c1e873c32a12560dd

* wait again on pending state

Change-Id: I1ad79253a5a5d56a4d9611125825b1f7ad552be8

---------

Co-authored-by: Wojciech Tyczy<C5><84>ski <wojtekt@google.com>
2023-02-28 03:23:16 -08:00
Kubernetes Prow Robot
806b215cce
Merge pull request #115987 from yuanchen8911/cleanup
Replace closures in test packages
2023-02-28 01:47:29 -08:00
Kubernetes Prow Robot
f2fdda8667
Merge pull request #115918 from yt2985/genericWatch
Partition watchers by namespace/name scope
2023-02-28 01:47:17 -08:00
Kubernetes Prow Robot
fb37f1331b
Merge pull request #113574 from chendave/cleanup_testcases
kubeadm: Improve testcases for `init` and `join` command
2023-02-28 00:43:16 -08:00
Divya Rani
a8b1e57246 add support for pulling images from private registry 2023-02-28 00:40:51 -08:00
Kubernetes Prow Robot
35f0507dca
Merge pull request #111856 from mengjiao-liu/improve-podSpec.restartPpolicy-description
Improve spec.template.spec.restartPolicy description
2023-02-27 22:53:27 -08:00
Kubernetes Prow Robot
b9fd1802ba
Merge pull request #102884 from vinaykul/restart-free-pod-vertical-scaling
In-place Pod Vertical Scaling feature
2023-02-27 22:53:15 -08:00
Kubernetes Prow Robot
aad3050519
Merge pull request #116102 from danielvegamyhre/strategy-nit
Move AllowElasticIndexedJobs into JobValidationOptions declaration
2023-02-27 19:25:26 -08:00
Kubernetes Prow Robot
e6522f8053
Merge pull request #116095 from sourcelliu/preemption
Improve the performance of method CandidatesToVictimsMap
2023-02-27 19:25:15 -08:00
Kubernetes Prow Robot
b381469293
Merge pull request #116111 from apelisse/conformance-field-validation
turn field validation e2e tests into conformance tests
2023-02-27 18:19:22 -08:00
Kubernetes Prow Robot
f6753da51b
Merge pull request #116059 from Gekko0114/fix_typo
fix typo on Evictor's Preempt func
2023-02-27 18:19:15 -08:00
Kubernetes Prow Robot
36402f2833
Merge pull request #116039 from liggitt/crd-compat
Add CRD compatibility fixtures
2023-02-27 14:55:16 -08:00
Kevin Delgado
9828f62237 turn field validation e2e tests into conformance tests 2023-02-27 14:39:21 -08:00
Kubernetes Prow Robot
c5cd7a1db5
Merge pull request #116031 from ritazh/kmsv2_mockkms
kmsv2: add mock kms for reference implementation
2023-02-27 13:51:28 -08:00