Commit Graph

114310 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
dfa03231da
Merge pull request #116110 from knabben/knabben/polling-hpc-stats
Poll for stats until Windows kubelet present it in the stats endpoint
2023-03-01 15:11:27 -08:00
Kubernetes Prow Robot
51dedff4f3
Merge pull request #115277 from pohly/klog-update
klog update
2023-03-01 15:11:16 -08:00
Mark Rossetti
ab020ee628
Adding e2e test to verify hyperv container is running inside a VM on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2023-03-01 14:08:46 -08:00
kannon92
3489ace708 generated code 2023-03-01 21:43:25 +00:00
Sean Sullivan
17cd59ec1c Fixes bug with Root not handling Group without Version 2023-03-01 21:27:37 +00:00
kannon92
cb9334ebb2 update batch apis 2023-03-01 20:39:47 +00:00
kannon92
2da3e839b0 remove ValidateJobSpec and add more test cases to batch validation 2023-03-01 20:39:47 +00:00
Kubernetes Prow Robot
b0c949d9dd
Merge pull request #116148 from aramase/aramase/f/ci-metrics
[KMSv2] update ci script to create cluster and gather metrics
2023-03-01 12:39:30 -08:00
Kubernetes Prow Robot
94424ba808
Merge pull request #115634 from ameukam/e2e-hardcode-bucket-logs-location
Add retention policy to staging buckets
2023-03-01 12:39:18 -08:00
Amim Knabben
3fd3a76eb9 Poll for stats until Windows kubelet present it in the stats endpoint 2023-03-01 17:17:23 -03:00
Han Kang
0199276f85 include beta metrics in documentation and update docs for metrics 2023-03-01 11:32:19 -08:00
Kubernetes Prow Robot
60eefa8066
Merge pull request #115425 from pohly/scheduler-perf-benchstat
scheduler perf: benchstat support
2023-03-01 11:19:29 -08:00
Kubernetes Prow Robot
5b07dd0c54
Merge pull request #115413 from pacoxu/etcd-dep-update
upgrade etcd deps to v3.5.7
2023-03-01 11:19:18 -08:00
Kubernetes Prow Robot
fe671737ec
Merge pull request #116181 from pohly/dra-test-driver-update
e2e: dra test driver update
2023-03-01 10:10:39 -08:00
Kubernetes Prow Robot
10045196be
Merge pull request #116164 from justinsb/cleanup_dead_code_in_test
e2e: Remove dead code in tests
2023-03-01 10:09:31 -08:00
Kubernetes Prow Robot
e2fff53f43
Merge pull request #115859 from gjkim42/deflake-TestDirty
Deflake tests in `staging/src/k8s.io/kube-aggregator/pkg/apiserver`
2023-03-01 10:09:19 -08:00
Patrick Ohly
961819a4d0 dependencies: update klog v2.90.1
This improves performance of the text formatting and ktesting.

Because ktesting no longer buffers messages by default, one unit
test needs to ask for that explicitly.
2023-03-01 19:03:50 +01:00
Anish Ramasekar
c52ac0d59d
[KMSv2] update ci script to create cluster and gather metrics
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-03-01 18:03:37 +00:00
Arnaud Meukam
bf08cc38da
Add retention policy to staging buckets
Related to:
  - https://github.com/kubernetes/k8s.io/issues/4691

Ensure new staging bucketst are regional and apply lifecycle policy to
the objects of each staging bucket.

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2023-03-01 17:25:38 +01:00
Kubernetes Prow Robot
44bedc2a46
Merge pull request #116176 from aojea/testpingspdy
start to count time since the connection was actually established
2023-03-01 07:05:29 -08:00
Kubernetes Prow Robot
8cd4211630
Merge pull request #116033 from chengjoey/fix/apiserver-metrics
fix apiserver metrics `RecordsWatchCacheCapacityChange` use watchCacheCapacity as increase total
2023-03-01 07:05:17 -08:00
Justin SB
0b5fa19342 cleanup: replace deprecated sets.String
Replace with generics, including using the more-accurate type
types.UID for visitedUids.
2023-03-01 09:06:30 -05:00
Patrick Ohly
74785074c6 e2e dra: update logging
When running as part of the scheduler_perf benchmark testing, we want to print
less information by default, so we should use V to limit verbosity

Pretty-printing doesn't belong into "application" code. I am moving that into
the ktesting formatting (https://github.com/kubernetes/kubernetes/pull/116180).
2023-03-01 15:02:03 +01:00
Patrick Ohly
106fce6fae e2e dra: improve goroutine handling
There is an API now to wait for informer factory goroutine termination.
While at it, an incorrect comment for mutex locking gets removed.
2023-03-01 15:00:30 +01:00
Justin SB
50a025acdb e2e: Remove dead code in tests
We were building a local pod variable that we were no longer using.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2023-03-01 08:08:33 -05:00
Kubernetes Prow Robot
9ef145d3a7
Merge pull request #116127 from pacoxu/negative-grace-period
retry for negative TerminationGracePeriodSeconds update
2023-03-01 04:29:16 -08:00
Antonio Ojea
d6f81c01f4 start to count time since the connection was actually established
Change-Id: Ib4986fb362600b760a4a853513d739f2d665836e
2023-03-01 11:58:57 +00:00
Swati Sehgal
7ea35d0cd8 node: device-mgr: sample device plugin: manifest to avoid registration
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-03-01 10:01:34 +00:00
Swati Sehgal
2c8fc26b89 node: device-mgr: sample device plugin: control registration process
Update the sample device plugin to enable the e2e node tests (or any
other entity with full access to the node filesystem) to control the
registration process. We add a new environment variable `REGISTER_CONTROL_FILE`.
The value of this variable must be a file which prevents the plugin
to register itself while it's present. Once removed, the plugin will
go on and complete the registration. The plugin will automatically
detect the parent directory on which the file resides and detect
deletions, unblocking the registration process. If the file is specified
but unaccessible, the plugin will fail. If the file is not specified,
the registration process will progress as usual and never pause.
The plugin will need read access to the parent directory.

This feature is useful because it is not possible to control the order
in which the pods are recovered after node reboot/kubelet restart.

In this approach, the testing environment will create a directory and
then a empty file to pause the registration process of the plugin.
Once pointed to that file, the plugin will start and wait for it to
be deleted. Only after the directory has been deleted,
the plugin would proceed to registration.

This feature is used in #114640 where e2e test is implemented to
simulate scenarios where application pods requesting devices come up before
the device plugin pod on node reboot/ kubelet restart.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-03-01 10:00:52 +00:00
Lukasz Szaszkiewicz
b5ecc658ab Update TestCompatibility 2023-03-01 11:00:36 +01:00
Lukasz Szaszkiewicz
52d613efde Add SetListOptionsDefaults for setting defaults on ListOptions 2023-03-01 11:00:32 +01:00
Lukasz Szaszkiewicz
69e4de131e generated 2023-03-01 11:00:25 +01:00
Lukasz Szaszkiewicz
7b67bbbcf3 Disable SendInitialEvents for etcd and watch cache 2023-03-01 11:00:12 +01:00
Lukasz Szaszkiewicz
e1537fc41b Add SendInitialEvents to storage ListOptions 2023-03-01 10:57:42 +01:00
Lukasz Szaszkiewicz
4b3e0a39e5 Update calls to ValidateListOptions 2023-03-01 10:57:35 +01:00
Lukasz Szaszkiewicz
ea084ff4da Add WatchList feature gate 2023-03-01 10:57:17 +01:00
Lukasz Szaszkiewicz
2ae115e5a2 Add SendInitialEvents parameter to ListOption 2023-03-01 10:55:40 +01: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
weizhichen
4d6be42c1a add unit test 2023-03-01 06:48:37 +00:00
Paco Xu
7d8437933e retry on conflict for negative TerminationGracePeriodSeconds update 2023-03-01 12:55:58 +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
Gunju Kim
e24e3de379
Deflake tests in staging/src/k8s.io/kube-aggregator/pkg/apiserver
`waitForEmptyQueue` cannot guarantee that all items in the queue have
been synced completely but guarantee that all items have been started.

This adds `waitForQueueComplete` and implements `completerWorkqueue` to
check if the workqueue is complete to deflake the tests in
staging/src/k8s.io/kube-aggregator/pkg/apiserver.
2023-03-01 13:29:17 +09:00
Gunju Kim
e7d8dfb5a0
Fix a data race in TestDirty
This uses atomic.Bool as updating and reading a boolean-type variable
concurrently is not thread-safe.
2023-03-01 13:23:27 +09:00
Paco Xu
b5dbb33da9 upgrade etcd deps to v3.5.7
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-03-01 12:14:52 +08:00
Shang Ding
f0b7063481 fix restricted debug profile
Ensure that the restricted debug profile with the node debugging
styles doesn't clear security context after we have already set
runAsNonRoot and drop-all capabilities.
2023-02-28 20:45:06 -06: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