Commit Graph

24583 Commits

Author SHA1 Message Date
Michal Wozniak
168e016947 Benchmark job with backoff limit per index 2023-10-31 17:35:39 +01:00
Kubernetes Prow Robot
74fefd877f
Merge pull request #121638 from tkashem/apf-ga
apiserver: set APF featuregate to stable
2023-10-31 15:57:57 +01:00
Abu Kashem
c7fcef1875
apiserver: set APF featuregate to ga 2023-10-31 08:46:24 -04:00
Kubernetes Prow Robot
d337523d62
Merge pull request #121588 from vlasebian/fix-issue-121209
Fix flaky test for services that shouldn't be available when PublishNotReadyAddresses is false
2023-10-31 13:14:06 +01:00
Sai Ramesh Vanka
8e52fc7266 Minor fix to copy the required kubelet, service logs after the execution of the node e2e tests
* It is observed in some of the periodic job results that the kubelet along with few other logs
are not getting copied to the artifacts directory once the node e2e tests are executed
* Following is the sample error log that is displayed once the tests are run
```
I1031 13:15:49.056897   40204 ssh.go:146] Running the command ssh, with args: [-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR -i /home/svanka/.ssh/google_compute_engine core@35.185.108.51 -- sudo ls core@35.185.108.51:/tmp/node-e2e-20231031T125637/results/*.log]
E1031 13:16:15.346641   40204 ssh.go:149] failed to run SSH command: out: ls: cannot access 'core@35.185.108.51:/tmp/node-e2e-20231031T125637/results/*.log': No such file or directory
, err: exit status 2
```
* This change fixes the above issue and helps in gathering the required test artifacts once the tests execution is completed

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
2023-10-31 15:36:39 +05:30
Kubernetes Prow Robot
e8d45596df
Merge pull request #121049 from siyuanfoundation/refactor
k8s.io/apiserver/storage/etcd: refactor etcd GetList.
2023-10-31 10:49:33 +01:00
carlory
ae90a69677 volumeattributesclass and core api changes 2023-10-31 11:18:56 +08:00
Kubernetes Prow Robot
f5a5d83d7c
Merge pull request #121089 from tkashem/apf-v1
Promote APF API to v1
2023-10-31 02:39:30 +01:00
Kubernetes Prow Robot
ab13d0b47c
Merge pull request #120780 from munnerz/bound-token-improvements
Including JTI & node reference in issued service account tokens (kep 4193)
2023-10-31 01:22:56 +01:00
Kubernetes Prow Robot
2a4d5c5fd5
Merge pull request #120300 from wojtek-t/refactor_streaming_watch_encoder
Refactor streaming watch encoder to enable caching
2023-10-31 00:09:12 +01:00
Antoine Pelisse
5b268e6daf apply: Add test for duplicates in associative lists 2023-10-30 15:55:50 -07:00
Kubernetes Prow Robot
08070433cc
Merge pull request #121373 from cici37/crdGA
[KEP-2876] Promote CRD validation rule to GA
2023-10-30 22:42:09 +01:00
James Munnelly
76463e21d4 KEP-4193: bound service account token improvements 2023-10-30 21:15:10 +00:00
Kubernetes Prow Robot
05765a851c
Merge pull request #121389 from aleksandra-malinowska/sts-restart-always
Resubmit "Make StatefulSet restart pods with phase Succeeded"
2023-10-30 21:11:51 +01:00
Kubernetes Prow Robot
d4592dc70a
Merge pull request #121310 from nilekhc/polling
[KMSv2] feat: updates encryption config file watch logic to polling
2023-10-30 21:11:42 +01:00
Kubernetes Prow Robot
e4212878dd
Merge pull request #119208 from atosatto/separate-taint-manager
Decouple TaintManager from NodeLifeCycleController (KEP-3902)
2023-10-30 21:11:33 +01:00
Kubernetes Prow Robot
ceea5fd0cb
Merge pull request #119109 from jiahuif-forks/feature/validating-admission-policy/crd-typechecking
ValidatingAdmissionPolicy - Type Checking for API Expensions types
2023-10-30 21:11:19 +01:00
Siyuan Zhang
a968f51fa2 k8s.io/apiserver/storage/etcd: refactor etcd GetList.
Reorder some code.

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2023-10-30 12:48:32 -07:00
Kubernetes Prow Robot
c7a7cb8e17
Merge pull request #121531 from saschagrunert/e2e-node-imageid
Make e2e node image ID test more flexible
2023-10-30 17:40:16 +01:00
Nilekh Chaudhari
e95b7c6d8b
feat: updates encryption config file watch logic to polling
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>

fix (#2)

Signed-off-by: Monis Khan <mok@microsoft.com>
2023-10-30 16:20:39 +00:00
Ionut Balutoiu
8e5b959e12 windows-tests: Add retries to Windows assertConsistentConnectivity func
Add retry logic to the `assertConsistentConnectivity` function from
the `test/e2e/windows/hybrid_network.go` file.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-10-30 17:15:05 +02:00
Andrea Tosatto
ccda2d6fd4 kube-controller-manager: Decouple TaintManager from NodeLifeCycleController (KEP-3902) 2023-10-30 12:23:56 +00:00
Abu Kashem
9fd2ab419a
apiserver: allow zero value for the 'nominalConcurrencyShares' field 2023-10-30 08:18:40 -04:00
Abu Kashem
17bda3c3e0
apiserver: apf controller, bootstrap, tests should use flowcontrol v1 API 2023-10-30 08:18:35 -04:00
Abu Kashem
25aebca8d5
apiserver: add etcd data and storage version hash for apf v1 2023-10-30 07:48:23 -04:00
Abu Kashem
b24dd44904
apiserver: enable apf v1 API 2023-10-30 07:48:22 -04:00
Vlad Vitan
feb0e2fc2f Fix flaky test for services that shouldn't be available when PublishNotReadyAddresses is false 2023-10-29 17:15:06 +01:00
Shiming Zhang
3a308140cd Fix e2e 2023-10-29 23:16:13 +08:00
Kubernetes Prow Robot
e0a623d191
Merge pull request #121538 from mimowo/job-e2e-short-termination-time
Improve execution time of job e2e tests
2023-10-28 11:28:52 +02:00
Michal Wozniak
e50cc47a06 Improve execution time for job e2e tests 2023-10-27 19:50:04 +02:00
Kubernetes Prow Robot
f3c13d8d8a
Merge pull request #121366 from bzsuni/cleanup/test/PollImmediateUntilWithContext
use PollUntilContextCancel to replace PollImmediateUntilWithContext in test
2023-10-27 19:08:14 +02:00
Kubernetes Prow Robot
fe21e4d749
Merge pull request #120682 from yt2985/cleanSA
LegacyServiceAccountTokenCleanUp beta
2023-10-27 19:08:05 +02:00
Kubernetes Prow Robot
de4aa52171
Merge pull request #121476 from pohly/golangci-lint-update
golangci-lint v1.55.1
2023-10-27 17:43:21 +02:00
Kubernetes Prow Robot
0a36bcd11d
Merge pull request #121346 from carlory/fix-120840
fix volume conformance e2e test break other test
2023-10-27 17:43:07 +02:00
Kubernetes Prow Robot
6f4ad7a413
Merge pull request #121491 from dejanzele/pod-replacement-policy-e2e
Switch feature flag to beta for pod replacement policy and add e2e test
2023-10-27 14:49:16 +02:00
Kubernetes Prow Robot
f4f5d07f4b
Merge pull request #121557 from bart0sh/PR126-e2e-mark-CDI-test-as-NodeSpecialFeature
e2e_node: mark CDI test as NodeSpecialFeature
2023-10-27 13:41:01 +02:00
Kubernetes Prow Robot
1c0dbe2eef
Merge pull request #121551 from pohly/fix-klog-calls
sample device plugin: fix incorrect Errorf invocation
2023-10-27 13:40:47 +02:00
carlory
77dfd63d1d fix volume conformance e2e test break other test 2023-10-27 17:05:52 +08:00
Kubernetes Prow Robot
fd5c406112
Merge pull request #120933 from mengjiao-liu/contextual-logging-scheduler-remaining-part
kube-scheduler: convert the remaining part to use contextual logging
2023-10-27 10:30:58 +02:00
tinatingyu
5925dc0775 LegacyServiceAccountTokenCleanUp beta 2023-10-27 03:52:06 +00:00
Kubernetes Prow Robot
ebf46ce1b4
Merge pull request #121485 from ritazh/kmsv2-ga
[KMSv2] promote KMSv2 and KMSv2KDF to GA
2023-10-27 02:23:50 +02:00
Ed Bartosh
69b9d50f9d e2e_node: mark CDI test as NodeSpecialFeature
This test depends on CDI support in a runtime and doesn't work
with the out-of-the box Containerd. Marking it as a NodeSpecialFeature
should fix Containerd CI job failures.
2023-10-27 02:06:43 +03:00
Kubernetes Prow Robot
0712728ee9
Merge pull request #121555 from borg-land/skip-gcp-tests-aws
Don't run `cloud-provider-gcp` tests against aws clusters
2023-10-27 01:05:14 +02:00
Rita Zhang
a9b1adbafc
[KMSv2] promote KMSv2 and KMSv2KDF to GA
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-10-26 15:05:31 -07:00
upodroid
9f06eb4ca2 don't run these tests on aws 2023-10-26 22:47:39 +01:00
Kubernetes Prow Robot
3c34118d39
Merge pull request #121332 from Riaankl/remove-pv-pvc-status-endpoints
Remove PersistentVolumeStatus & PersistentVolumeClaimStatus Endpoints from pending_eligible_endpoints.yaml
2023-10-26 22:51:17 +02:00
Kubernetes Prow Robot
a2436453da
Merge pull request #121331 from ii/promote-pv-pvc-status-test
Promote e2e test for PersistentVolumeStatus & PersistentVolumeClaimStatus Endpoints +6 Endpoints
2023-10-26 22:51:04 +02:00
Dejan Pejchev
e98c33bfaf
switch feature flag to beta for pod replacement policy and add e2e test
update pod replacement policy feature flag comment and refactor the e2e test for pod replacement policy

minor fixes for pod replacement policy and e2e test

fix wrong assertions for pod replacement policy e2e test

more fixes to pod replacement policy e2e test

refactor PodReplacementPolicy e2e test to use finalizers

fix unit tests when pod replacement policy feature flag is promoted to beta

fix podgc controller unit tests when pod replacement feature is enabled

fix lint issue in pod replacement policy e2e test

assert no error in defer function for removing finalizer in pod replacement policy e2e test

implement test using a sh trap for pod replacement policy

reduce sleep after SIGTERM in pod replacement policy e2e test to 5s
2023-10-26 21:50:37 +02:00
Patrick Ohly
af14f97cba sample device plugin: fix incorrect Errorf invocation
Linting together with an upcoming klog update finds this problem:

    test/images/sample-device-plugin/sampledeviceplugin.go:165:4: printf: k8s.io/klog/v2.Errorf does not support error-wrapping directive %w (govet)
    			klog.Errorf("Failed to add watch to %q: %w", triggerPath, err)
     			^
2023-10-26 21:22:36 +02:00
Jiahui Feng
3f73cdcf2a extend SchemaResolver for more types of schemas. 2023-10-26 10:25:41 -07:00
Jiahui Feng
05cd3e66ef simplified e2e test for CRD typechecking. 2023-10-26 10:21:49 -07:00
Jordan Liggitt
84faaf4427
Prevent sampledeviceplugin binary commit 2023-10-26 09:57:06 -04:00
Jordan Liggitt
110ffa13b7
Delete binary file 2023-10-26 09:48:29 -04:00
Aleksandra Malinowska
e07d898cfd Make StatefulSet restart pods with phase Succeeded 2023-10-26 15:34:01 +02:00
Kubernetes Prow Robot
993c918311
Merge pull request #121255 from tukwila/OpenAPIV3-cleanup
Remove GAed feature gates OpenAPIV3
2023-10-26 14:09:17 +02:00
Patrick Ohly
6302f01121 e2e node: fix broken assertion
It looks like the test or the branch is never executed, because it wouldn't
pass: a []v1.NodeIP is value is never the same as []string. Found by the
upcoming ginkgolinter update.

    ERROR: test/e2e_node/pod_host_ips.go:167:45: ginkgo-linter: use Equal with different types: Comparing []k8s.io/api/core/v1.HostIP with []string; either change the expected value type if possible, or use the BeEquivalentTo() matcher, instead of Equal() (ginkgolinter)
    ERROR: 					gomega.Expect(p.Status.HostIPs).Should(gomega.Equal(nodeIPs))
    ERROR: 					                                       ^
2023-10-26 13:25:00 +02:00
Patrick Ohly
d0a5cd16da e2e upgrades: fix broken assertion
It looks like the test is never executed, because it wouldn't pass: an int32
value is never the same as an int 0. Found by the upcoming ginkgolinter update.
2023-10-26 13:25:00 +02:00
Kubernetes Prow Robot
7658fe8dc4
Merge pull request #118456 from testwill/bool-constant
chore: omit comparison to bool constant
2023-10-26 12:59:05 +02:00
Sascha Grunert
c6b42c8a72
Make e2e node image ID test more flexible
Container runtimes like CRI-O actually show the image identifier in the
`ImageID` field rather than the repo digest. For the digest we already
have the `Image` field. We still allow the digest in the `ImageID` field
for historic reasons.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-10-26 11:07:12 +02:00
Kubernetes Prow Robot
3ae4dbd45f
Merge pull request #121442 from swatisehgal/topology-mgr-test-fix
node: e2e: topology-mgr: Determine threads per core to disambiguage cores from cpus
2023-10-26 04:22:52 +02:00
Kubernetes Prow Robot
2e2e68e7f0
Merge pull request #121479 from wzshiming/test/pod-host-ips
Add PodHostIPs test
2023-10-26 02:13:52 +02:00
Kubernetes Prow Robot
1662399131
Merge pull request #121506 from kwilczynski/fix/upstream/remove-dbus-restart-test
Remove problematic Dbus restart test
2023-10-26 01:08:41 +02:00
Kubernetes Prow Robot
e0eb5edbf9
Merge pull request #121487 from mimowo/fix-flaky-e2e-tests-for-job
Do not preallocate node for Job e2e tests to fix flakes
2023-10-26 01:08:32 +02:00
Kubernetes Prow Robot
a88dbd9269
Merge pull request #121440 from bart0sh/PR125-e2e-test-DevicePluginCDIDevices
e2e_node: test device plugin support of CDI devices
2023-10-26 01:08:23 +02:00
Kubernetes Prow Robot
ab096ef3de
Merge pull request #121459 from jiahuif-forks/feature/cel/allow-empty-object
allow empty object to be CEL value.
2023-10-25 23:48:40 +02:00
Kubernetes Prow Robot
ae603d5260
Merge pull request #121095 from aramase/aramase/f/kmsv2_tracing
[KMSv2] Add tracing
2023-10-25 21:29:01 +02:00
Cici Huang
f71040f620 Remove the usage of feature gate 2023-10-25 17:05:00 +00:00
Kubernetes Prow Robot
6fed03ea91
Merge pull request #121408 from alculquicondor/merge-job-metric-tests
Remove independent tests for job metrics
2023-10-25 19:02:50 +02:00
Anish Ramasekar
8d3a25c7c9
[KMSv2] Add tracing
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-10-25 16:50:20 +00:00
Kubernetes Prow Robot
8caa6fb2e0
Merge pull request #121368 from mimowo/backoff-limit-per-index-e2e-test
Backoff limit per index e2e test
2023-10-25 13:18:37 +02:00
Kubernetes Prow Robot
4294c35fc9
Merge pull request #121297 from calvinballing/spellcheck-markdown
Fix typos in markdown
2023-10-25 13:18:26 +02:00
Krzysztof Wilczyński
2a8982b27b
Remove problematic Dbus restart test
Signed-off-by: Krzysztof Wilczyński <kwilczynski@redhat.com>
2023-10-25 19:53:50 +09:00
Michal Wozniak
69ca55f136 Do not preallocate node for Job e2e tests to fix flakes 2023-10-25 12:11:08 +02:00
Kubernetes Prow Robot
558a6797a2
Merge pull request #121497 from nilekhc/test-hot-reload-test-flake
[KMSv2] tests: fixes flake in TestEncryptionConfigHotReload
2023-10-25 06:57:13 +02:00
Nilekh Chaudhari
a92c1269e2
test: fixes hot reload flake
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-10-25 01:14:00 +00:00
Nilekh Chaudhari
71a1565d06
revert: reverts fixes for TestEncryptionConfigHotReload flake
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-10-25 01:08:04 +00:00
Kubernetes Prow Robot
6817e6a7cc
Merge pull request #119912 from kannon92/pod-replacement-policy-integration-tests
Add a missing integration test for PodReplacementPolicy
2023-10-25 02:09:49 +02:00
Kubernetes Prow Robot
8cdab8a5db
Merge pull request #121481 from dejanzele/job-pod-creation-total-metrics
feat: add job_pods_creation_total metric
2023-10-24 23:43:20 +02:00
kannon92
aeceec72bb add integration tests 2023-10-24 17:09:40 -04:00
Aldo Culquicondor
97e72d792c
Remove independent tests for metrics
Change-Id: Ibefebf95df47c68e6752e85c61fface9f06cbd38
2023-10-24 16:29:08 -04:00
Kubernetes Prow Robot
413b15a8d9
Merge pull request #120914 from kannon92/kubelet-disk-api-cri-update
Kubelet disk api cri update
2023-10-24 21:00:40 +02:00
Dejan Pejchev
9e2821d585
revert changes to TestMetricsOnSuccesses for job pods creation total metric 2023-10-24 19:41:14 +02:00
Claudiu Belu
055e926a92 e2e: Increases the memory limit for downward API tests
Currently, the downward API tests flake on Windows with a failure
to allocate memory when starting the agnhost binary used in these
tests. The tests are spawning pods with a memory limit of 64MB,
which is a bit on the low side for a Windows Pod, even if it's
a nanoserver-based image.

Increases the memory limit to 128MB, the primary goal of the tests
is not to enforce and test the limits, but to check if these details
are projected into the Pod.
2023-10-24 15:53:10 +00:00
Dejan Pejchev
88c0a8be1b
feat: add job_pods_creation_total metric 2023-10-24 17:49:04 +02:00
Kubernetes Prow Robot
87981480f3
Merge pull request #119186 from seans3/stream-translator-proxy
Stream Translator Proxy and FallbackExecutor for WebSockets
2023-10-24 17:10:34 +02:00
Shiming Zhang
1224e0e881 Add PodHostIPs test 2023-10-24 22:07:03 +08:00
Dejan Zele Pejchev
f8a4e343a1
Fix tracking of terminating Pods when nothing else changes (#121342)
* cleanup: refactor pod replacement policy integration test into staged assertion

* cleanup: remove typo in job_test.go

* refactor PodReplacementPolicy test and remove test for defaulting the policy

* fix issue with missing update in job controller for terminating status and refactor pod replacement policy integration test

* use t.Cleanup instead of defer in PodReplacementPolicy integration tests

* revert t.Cleanup to defer for reseting feature flag in PodReplacementPolicy integration tests
2023-10-24 15:04:46 +02:00
Kubernetes Prow Robot
9aa04752e7
Merge pull request #118463 from testwill/replace_loop
chore: slice replace loop
2023-10-24 15:04:39 +02:00
Mengjiao Liu
b0a73213d6 kube-scheduler: convert the remaining part to use contextual logging 2023-10-24 17:56:48 +08:00
Ed Bartosh
bbb4a88bbb e2e_node: implement DevicePluginCDIDevices test case 2023-10-24 12:35:33 +03:00
Kubernetes Prow Robot
9ae55e9886
Merge pull request #121391 from pohly/e2e-storage-test-labels
e2e storage: test labels
2023-10-24 10:12:40 +02:00
Michal Wozniak
b06675724d Add e2e test for backoffLimitPerIndex 2023-10-24 09:11:35 +02:00
Kubernetes Prow Robot
6d7d249372
Merge pull request #121077 from chrishenzie/readwriteoncepod-ga
Graduate ReadWriteOncePod to GA
2023-10-24 05:26:05 +02:00
Kubernetes Prow Robot
441d4b54ae
Merge pull request #120397 from ty-dc/StaticCheck
cleanup: omit comparison with bool constants
2023-10-24 05:25:52 +02:00
Jiahui Feng
a6f5246565 integration test for empty & unstructured. 2023-10-23 16:19:32 -07:00
Sean Sullivan
168998e87b StreamTranslator and FallbackExecutor for WebSockets 2023-10-23 15:33:38 -07:00
Kubernetes Prow Robot
18d5a6fa64
Merge pull request #121452 from nilekhc/test-hot-reload-test-flake
tests: fixes flake in TestEncryptionConfigHotReload
2023-10-24 00:30:19 +02:00
Kubernetes Prow Robot
5a4e792e06
Merge pull request #120534 from pohly/dra-scheduler-ssa-as-fallback
dra scheduler: fall back to SSA for PodSchedulingContext updates
2023-10-23 21:06:58 +02:00
Kevin Hannon
8ae0d390d7 add container filesystem to CRI api
Co-authored-by: Mike Brown <brownwm@us.ibm.com>
2023-10-23 15:04:30 -04:00
Nilekh Chaudhari
d9c967113f
tests: fixes flake in TestEncryptionConfigHotReload
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-10-23 18:03:05 +00:00
Kubernetes Prow Robot
52107864ba
Merge pull request #121445 from aojea/hostips
Revert "Promote KEP-2681 to beta in 1.29"
2023-10-23 19:52:11 +02:00
Kubernetes Prow Robot
f9609e7b4a
Merge pull request #121293 from AkihiroSuda/e2e-KubeletInUserNamespace
e2e: add [Environment:NotInUserNS] tag to sysctl tests
2023-10-23 18:39:49 +02:00
Kubernetes Prow Robot
604e9e0fb3
Merge pull request #121007 from borg-land/npd-host-exec-rewrite
Configure COS to use NPD in daemonset mode and align kubeup NPD manifests with the manifests in the NPD repo
2023-10-23 18:39:40 +02:00
Kubernetes Prow Robot
581552eaf0
Merge pull request #116065 from sanposhiho/match-label-key-alternative
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-23 18:39:13 +02:00
Patrick Ohly
27afb7d75d e2e storage: use framework to tag tests
This makes it possible to select tests through `ginkgo --label-filter`
also for the custom labels.
2023-10-23 17:32:06 +02:00
Ed Bartosh
8a42be978b Add CDI support to the sample device plugin
Co-authored-by: Evan Lezar <elezar@nvidia.com>
2023-10-23 18:25:59 +03:00
Antonio Ojea
6d02fbdbe0 Revert "Promote KEP-2681 to beta in 1.29"
This reverts commit 33f2d487e2.
2023-10-23 13:19:17 +00:00
Swati Sehgal
fa83d5fef1 node: e2e: topology-mgr: Disambiguage cores from cpus
Currently in the tests there is ambiguity in terms of host setup
when it comes to cpus or cores. This commit disambiguates that.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-23 13:01:17 +01:00
Swati Sehgal
e1f5eb3f14 node: e2e: topology-mgr: Determine threads per core
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-23 12:58:50 +01:00
Arda Güçlü
074a8b0084
KEP-3638: Promote plugin resolution to beta (#120663)
* Promote plugin resolution to beta

* Not use plugin for kubectl create -f command execution

`kubectl create -f` is legitimate command execution and we shouldn't
search plugins if user invokes this.

* Add integration test for plugin resolution for create command

* Reintroduce feature flag to ability to disable it explicitly
2023-10-23 13:41:38 +02:00
Kubernetes Prow Robot
f41ede6241
Merge pull request #118534 from swatisehgal/sample-dp-register-by-default
node: sample-device-plugin: register to kubelet by default and ensure re-registration to kubelet on kubelet restarts
2023-10-23 13:41:19 +02:00
Kubernetes Prow Robot
68d55bc4fb
Merge pull request #120416 from ardaguclu/move-interactive-delete-beta
KEP-3895: Promote interactive delete to beta
2023-10-23 12:30:44 +02:00
Kubernetes Prow Robot
2f270bd996
Merge pull request #121017 from kannon92/fix-apps-issue
Remove consistent check in test for job suspend
2023-10-21 17:16:02 +02:00
Kubernetes Prow Robot
1fc3d10f7e
Merge pull request #121292 from mimowo/backoff-limit-per-index-metrics
Introduce the job_finished_indexes_total metric
2023-10-20 23:50:57 +02:00
Chris Henzie
2dbd405583 Graduate ReadWriteOncePod to GA 2023-10-20 10:40:39 -07:00
Kevin Hannon
42945ea6dc update suspend test to match other test cases 2023-10-20 13:34:37 -04:00
Kubernetes Prow Robot
3825e206cb
Merge pull request #121300 from stuton/e2e-tests-for-ready-pods
e2e: add test for checking ready of job status
2023-10-20 19:24:38 +02:00
Kubernetes Prow Robot
8d4ccd67e3
Merge pull request #119517 from sanposhiho/block-status
feature(scheduler): simplify QueueingHintFn by introducing new statuses
2023-10-20 19:24:31 +02:00
Anton Stuchinskii
34294cd67f locking feature-gate for ready pods job status 2023-10-20 16:08:54 +02:00
Kubernetes Prow Robot
06092ecf4b
Merge pull request #120951 from kannon92/ptr-integration-test-job
convert pointer to ptr for sig-apps integration tests
2023-10-20 15:53:59 +02:00
Michal Wozniak
b0d04d933b Introduce the job_finished_indexes_total metric 2023-10-20 15:19:04 +02:00
Patrick Ohly
6ab48d1adc e2e storage: remove dot at end of ginkgo.It text
This is unusual and complicates the upcoming refactoring of test definitions.
2023-10-20 15:06:01 +02:00
Kubernetes Prow Robot
349b856505
Merge pull request #121358 from pohly/e2e-framework-ginkgowrapper-labels
e2e framework: allow random ordering of tags and text, fix some functions
2023-10-20 14:42:20 +02:00
Anton Stuchinskii
a913abe191 e2e test for checking ready of job status 2023-10-20 14:42:13 +02:00
Kubernetes Prow Robot
568aee16e8
Merge pull request #120731 from Nordix/sts_issue/adil
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate
2023-10-20 14:42:08 +02:00
Kubernetes Prow Robot
7b9d244efd
Merge pull request #120965 from bart0sh/PR122-DRA-unexpected-node-shutdown
DRA: e2e: test non-graceful node shutdown
2023-10-20 11:58:47 +02:00
Patrick Ohly
81b960efef e2e framework: allow random ordering of tags and text, fix some functions
There are some tests which want to insert a tag before the main Describe text,
for example:
   sigDescribe("[Feature:Windows] Cpu Resources [Serial]",
               skipUnlessWindows(func() { ... })

In order to support this without change existing test names, it must be
possible to do this instead:
   sigDescribe(feature.Windows, "Cpu Resources", framework.WithSerial(),
               skipUnlessWindows(func() { ... })

There are similar examples for the other functions.

While at it, replace one left-over panic with ReportBug and add the missing
`NodeFeature:` prefix.
2023-10-20 11:14:57 +02:00
Kubernetes Prow Robot
ef05f59448
Merge pull request #120408 from Penguin-zlh/cleanup-e2e-framework-ExpectNotEqual
e2e: stop using deprecated framework.ExpectNotEqual
2023-10-20 09:07:25 +02:00
Kubernetes Prow Robot
b32c6ff749
Merge pull request #120257 from wzshiming/promote-kep-2681-beta
Promote KEP-2681 to beta in 1.29
2023-10-20 06:14:05 +02:00
penguin
82c0cbf6d8 e2e: stop using deprecated framework.ExpectNotEqual 2023-10-20 09:18:31 +08:00
Kubernetes Prow Robot
88d9573c30
Merge pull request #121103 from mimowo/dont-use-ssa-for-podgc
Use Patch instead of SSA for Pod Disruption condition
2023-10-20 00:08:10 +02:00
Kubernetes Prow Robot
1c18310db5
Merge pull request #121365 from bzsuni/cleanup/test/PollImmediateWithContext
use PollUntilContextTimeout to replace PollImmediateWithContext in test
2023-10-19 22:53:43 +02:00
Kubernetes Prow Robot
baea2df9d6
Merge pull request #121360 from pohly/e2e-apimachinery-feature-gate
e2e apimachinery: use feature gate
2023-10-19 21:27:31 +02:00
Ed Bartosh
fb9f2f5bc5 DRA: e2e: test non-graceful node shutdown 2023-10-19 22:09:11 +03:00
Michal Wozniak
32fdb55192 Use Patch instead of SSA for Pod Disruption condition 2023-10-19 21:00:19 +02:00
Akihiro Suda
a1d2df81fb
e2e: add [Environment:NotInUserNS] tag to sysctl tests
The sysctl tests have to be skipped when the node components are running in UserNS,
because the tests fail due to `open /proc/sys/kernel/shm_rmid_forced: permission denied`
(as expected).

Can be verified with Rootless kind (https://kind.sigs.k8s.io/docs/user/rootless/):
```
dockerd-rootless-setuptool.sh install

: The following steps are added because 'kubetest2 kind --build' does not seem to build e2e.test and ginkgo
make WHAT=test/e2e/e2e.test
make ginkgo
cp -f _output/bin/{e2e.test,ginkgo} _output/dockerized/bin/linux/amd64

kubetest2 kind --build --up --down --test=ginkgo -- \
  --use-built-binaries \
  --focus-regex='\[NodeConformance\]' \
  --skip-regex='\[Environment:NotInUserNS\]'
```

Test with the following host environment:
- kubernetes-sigs/kind@ac28d7fb19 (main)
- kubernetes-sigs/kubetest2@89f09b65e8 (master)
- Docker 24.0.6
- Ubuntu 22.04 amd64, kernel 5.15

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-10-20 01:16:18 +09:00
Kubernetes Prow Robot
145b84b0b1
Merge pull request #121359 from pohly/e2e-features
e2e: add more feature definitions
2023-10-19 17:03:53 +02:00
bzsuni
4a87ee2699 use PollUntilContextCancel to replace PollImmediateUntilWithContext in test
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-10-19 23:02:54 +08:00
bzsuni
8775d805fa use PollUntilContextTimeout to replace PollImmediateWithContext in test
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-10-19 22:50:21 +08:00
Kevin Hannon
1a41ed394d convert pointer to ptr for sig-apps integration tests 2023-10-19 10:35:38 -04:00
guangli.bao
27bb40a9d8 Remove GAed feature gates OpenAPIV3
Signed-off-by: guangli.bao <guangli.bao@daocloud.io>
2023-10-19 22:31:43 +08:00
Patrick Ohly
a25b87d84a e2e apimachinery: use feature gate
Using the feature gate has the advantage that the stability tag gets added
automatically and no changes are needed when graduating it. Once it reaches GA,
the tag needs to be removed together with the feature gate.

In fact, the current `[ALPHA]` is already wrong: the feature has already
graduated to beta...
2023-10-19 14:21:26 +02:00
Patrick Ohly
ceba3be6b5 e2e: add more feature definitions 2023-10-19 14:17:02 +02:00
adil ghaffar
00c21ced3a
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate 2023-10-19 14:17:42 +03:00
Kensei Nakada
cb5dc46edf feature(scheduler): simplify QueueingHint by introducing new statuses 2023-10-19 11:02:11 +00:00
Kubernetes Prow Robot
b4fd162664
Merge pull request #118647 from mochizuki875/fix_netadmin_debugging_profile
Add CAP_NET_RAW to netadmin debugging profile
2023-10-19 09:31:16 +02:00
Kubernetes Prow Robot
cfafffa611
Merge pull request #121019 from kl52752/rate-limiting
Move grpc rate limiter from podresource folder
2023-10-19 08:15:26 +02:00
Kubernetes Prow Robot
8095ea32b0
Merge pull request #120679 from kannon92/fix-eviction-e2e-crio
Potential Fix for Eviction Tests
2023-10-19 02:48:02 +02:00
Kubernetes Prow Robot
d953755686
Merge pull request #121266 from carlory/cleanup-e2enode-framework-equal
fix Huge Pages failing test
2023-10-18 22:48:13 +02:00
Kubernetes Prow Robot
ea5e4bc232
Merge pull request #121324 from kannon92/revert-121213-e2e_3085_kep
Revert "KEP 3085: check PodReadyToStartContainers condition after volume create"
2023-10-18 21:29:37 +02:00
Kubernetes Prow Robot
39d3580d17
Merge pull request #121139 from bart0sh/PR123-e2e-move-node-rediness-check-to-DeferCleanup
e2e: move AllNodesReady check to DeferCleanup
2023-10-18 21:29:28 +02:00
Kubernetes Prow Robot
0a096a43fe
Merge pull request #121323 from tenzen-y/replace-deprecated-wait-libraries
Job: Replace deprecated wait functions with supported one
2023-10-18 19:34:53 +02:00
Yuki Iwai
d7556769e7 Job: Replace deprecated wait functions with supported one
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-19 00:14:35 +09:00
Kubernetes Prow Robot
ca43bf0582
Merge pull request #120154 from palnabarun/authz-config-external-changes
[StructuredAuthorizationConfiguration] Add --authorization-config flag and guard it using a Feature Gate
2023-10-18 16:21:13 +02:00
Kevin Hannon
989aadda83
Revert "KEP 3085: check PodReadyToStartContainers condition after volume create" 2023-10-18 09:36:59 -04:00
Kensei Nakada
d5d3c26337 feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity 2023-10-18 11:28:02 +00:00
Kubernetes Prow Robot
dc8b57d8a7
Merge pull request #121283 from tnqn/cleanup-unregistered-group
Unregister group path from apiserver when the group no longer exists
2023-10-18 10:30:09 +02:00
Wojciech Tyczyński
7ff866463a Refactor watch event serialization to allow caching 2023-10-18 09:38:37 +02:00
Quan Tian
0cda42af7a Unregister group path from apiserver when the group no longer exists
After a CRD or an APIService was deleted, the corresponding group was
never unregistered. It caused a stale entry to remain in the root path
and could potentially lead to memory leak as the groupDiscoveryHandler
was never released and the handledGroups was never cleaned up.

The commit implements the cleanup. It tracks each group's usage and
unregister the a group when there is no version for this group.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-10-18 15:17:21 +08:00
Jordan Liggitt
a50d83c669
Add basic authz config integration test 2023-10-18 11:58:48 +05:30
Todd Neal
7bcc98c46b sidecars: terminate sidecars after main containers
Sidecars should terminate:
- after all main containers have exited
- serialized and in reverse order
2023-10-17 19:07:21 -05:00
Kubernetes Prow Robot
613f75926e
Merge pull request #121274 from dejanzele/fix/pod-replacement-policy-int-tests
cleanup: improve assertions for Failed PodReplacementPolicy integration test cases
2023-10-17 23:28:48 +02:00
Kubernetes Prow Robot
e7fd5b85ed
Merge pull request #121068 from carlory/cleanup-e2e-framework-deprecated-funcs
clean up deprecated funcs in e2e framework
2023-10-17 21:28:57 +02:00
Yuki Iwai
201c30fba8
Job: Handle error returned from AddEventHandler function (#119917)
* Job: Handle error returned from AddEventHandler function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Use the error message the similar to CronJob

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Clean up error messages

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the tesing.T on the second place in the args for the newControllerFromClient function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.T on the second place in the args for the newControllerFromClientWithClock function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Call t.Helper()

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the createJobControllerWithSharedInformers function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the startJobControllerAndWaitForCaches function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Adapt TestFinializerCleanup to the eventhandler error

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

---------

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-17 21:28:34 +02:00
Dejan Pejchev
fad4430f9e
cleanup: remove redundant logic in PodReplacementPolicy integration tests 2023-10-17 20:30:54 +02:00
Kubernetes Prow Robot
3ae76863a5
Merge pull request #121213 from charles-chenzz/e2e_3085_kep
KEP 3085: check PodReadyToStartContainers condition after volume create
2023-10-17 20:08:19 +02:00
Dejan Pejchev
2ccf7e8e49
fix: minor lint issues and redundant check 2023-10-17 20:07:20 +02:00
Dejan Pejchev
056b25dfca
fix: improve PodReplacementPolicy integration test case names and update deprecated methods 2023-10-17 19:18:58 +02:00
Dejan Pejchev
e73edf7764
fix: typo in indexed & non-indexed completion policies for failed pod replacement policy integration tests 2023-10-17 18:15:55 +02:00
Dejan Pejchev
bcf1c113f4
cleanup: add new test cases for failed pod replacement policy instead of editing existing ones 2023-10-17 18:04:25 +02:00
Jim Hays
911700e64e Fix typos in markdown 2023-10-17 10:55:40 -04:00
Quan Tian
b500c3d693 Correct the label selector used in TestSampleAPIServer
TestSampleAPIServer tried to validate APIService deletion, but it used
an unmatched selector to delete and list APIServices, which essentially
validated nothing.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-10-17 22:29:34 +08:00
Kubernetes Prow Robot
639f63c4e5
Merge pull request #121261 from kannon92/revert-119882-podres-client-wait
Revert "podresources: e2e: force eager connection"
2023-10-17 16:14:29 +02:00
Kubernetes Prow Robot
bbcbfe4b97
Merge pull request #121257 from bzsuni/ga/ProbeTerminationGracePeriod
Remove GA featuregate about ProbeTerminationGracePeriod in 1.29
2023-10-17 16:14:19 +02:00
Patrick Ohly
7d077f9271 e2e: move AllNodesReady check to DeferCleanup
Some test cases can make nodes not ready and use DeferCleanup to bring
nodes back online. Checking if all nodes are online would fail
in such cases as AfterEach runs before DeferCleanup.

Scheduling nodes readines check to DeferCleanup should solve this
issue as nodes would be brought back to a `Ready` state before the
check.
2023-10-17 16:45:57 +03:00
Gunju Kim
ca6fda05ce
Restart containers in right order after the podSandboxChanged
This is a workaround for the issue that the kubelet cannot differentiate
the container statuses of the previous podSandbox from the current one.

If the node is rebooted, all containers will be in the exited state and
the kubelet will try to recreate a new podSandbox. In this case, the
kubelet should not mistakenly think that the newly created podSandbox
has been initialized.
2023-10-17 22:11:31 +09:00
Swati Sehgal
f46cdf1428 node: sample-dp: set default value for pluginSocksDir
Setting a reasonable default in case `PLUGIN_SOCK_DIR`
environment variable is not specified.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
211d8cc80a node: sample-dp: stubRegisterControlFunc for controlling registration
If the user specifies the intent to control registration process, we rely on
registration triggers (deletion of control file) to prompt registration.

This behvaiour is expected to be consistent across kubelet restarts and therefore
across the watch calls where we watch for changes to the unix socket so we make
this part of Stub object instead of a parameter.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:10 +01:00
Swati Sehgal
c4c9d61d66 node: sample-dp: Handle re-registration for controlled registrations
In case `REGISTER_CONTROL_FILE` is specified, we want to ensure that the
registration is triggered by deletion of the control file. This is
applicable both when the registration happens for the first time and
subsequent ones because of kubelet restarts.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:19:07 +01:00
Swati Sehgal
6714e678d3 node: sample-dp: register by default and re-register on restarts
In issue: 115107 we added an environment variable to control the registration of sample
device plugin to kubelet. The intent of this patch is to ensure that the default
behaviour of the plugin is to register to kubelet (in case no environment
variable is specified).

In addition to that, we want to ensure that the plugin registers itself not just once.
It should re-register itself to kubelet in case of node reboot or kubelet restarts.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-10-17 12:14:09 +01:00
Gunju Kim
d2b803246a
Don't reuse the device allocated to the restartable init container 2023-10-17 18:28:29 +09:00
wen.rui
3df3b83226 e2e_api: stop using deprecated framework.ExpectNotEqual 2023-10-17 11:03:11 +08:00
Kubernetes Prow Robot
63ae3084b7
Merge pull request #121176 from bzsuni/cleanup/e2e/expect_not_equal
remove deprecated framework.ExpectNotEqual for node
2023-10-17 02:29:06 +02:00
Kubernetes Prow Robot
ac66f3d466
Merge pull request #121010 from Jefftree/decouple-openapi-v2v3-config
Decouple openapi v2v3 config
2023-10-16 23:41:11 +02:00
Riaan Kleinhans
4ae7150f05 remove pc pvc status endpoints
Signed-off-by: Riaan Kleinhans <riaan@ii.coop>
2023-10-17 10:33:17 +13:00
Stephen Heywood
2e8f66afb3 Promote PV/PVC status e2e test to Conformance 2023-10-17 09:40:20 +13:00
Kubernetes Prow Robot
952a9cb060
Merge pull request #121174 from carlory/fix-120770
fix limitrange flaky test
2023-10-16 22:27:00 +02:00
Kubernetes Prow Robot
f6ba25fdbd
Merge pull request #119026 from AxeZhan/sleepAction
Introducing Sleep Action for PreStop Hook
2023-10-16 21:19:44 +02:00
Dejan Pejchev
f2b723a130
fix: improve assertion for Failed PodReplacementPolicy integration test cases 2023-10-16 21:16:17 +02:00
Jefftree
b30c6bdff8 Fix v3 spec 2023-10-16 15:05:13 -04:00
Kubernetes Prow Robot
e196d24910
Merge pull request #121243 from ii/fix-pv-pvc-status-test
Fix PersistentVolumeStatus & PersistentVolumeClaimStatus e2e test flake
2023-10-16 19:07:39 +02:00
carlory
5d0f8530f6 fix Huge Pages failing test 2023-10-16 23:13:32 +08:00
charles-chenzz
7d31b5ffd0 Add test case for sandbox condition if pod fails to mount volume from a missing secret 2023-10-16 22:04:04 +08:00
Kevin Hannon
dd9c3358f5
Revert "podresources: e2e: force eager connection" 2023-10-16 09:46:04 -04:00
bzsuni
27abf99148 Remove GA featuregate about ProbeTerminationGracePeriod in 1.29
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-10-16 20:12:47 +08:00
upodroid
011c65e17e configure npd to run as daemonset on cos 2023-10-16 12:34:47 +01:00
upodroid
e69a960792 skip deploying csi driver if it is already installed 2023-10-16 12:32:27 +01:00
Kubernetes Prow Robot
4254a77c21
Merge pull request #121249 from pohly/klog-call-fixes
fix invalid log calls
2023-10-16 13:14:01 +02:00
Patrick Ohly
957adfac49 fix invalid log calls
These were found with a modified klog that enables "go vet" to check klog call
parameters:

    cmd/kubeadm/app/features/features.go:149:4: printf: k8s.io/klog/v2.Warningf format %t has arg v of wrong type string (govet)
    			klog.Warningf("Setting deprecated feature gate %s=%t. It will be removed in a future release.", k, v)
    test/images/sample-device-plugin/sampledeviceplugin.go:147:5: printf: k8s.io/klog/v2.Errorf does not support error-wrapping directive %w (govet)
    				klog.Errorf("error: %w", err)
    test/images/sample-device-plugin/sampledeviceplugin.go:155:3: printf: k8s.io/klog/v2.Errorf does not support error-wrapping directive %w (govet)
    		klog.Errorf("Failed to add watch to %q: %w", triggerPath, err)
    staging/src/k8s.io/code-generator/cmd/prerelease-lifecycle-gen/prerelease-lifecycle-generators/status.go:207:5: printf: k8s.io/klog/v2.Fatalf does not support error-wrapping directive %w (govet)
    				klog.Fatalf("Package %v: unsupported %s value: %q :%w", i, tagEnabledName, ptag.value, err)
    staging/src/k8s.io/legacy-cloud-providers/vsphere/nodemanager.go:286:3: printf: (k8s.io/klog/v2.Verbose).Infof format %s reads arg #1, but call has 0 args (govet)
    		klog.V(4).Infof("Node %s missing in vSphere cloud provider cache, trying node informer")
    staging/src/k8s.io/legacy-cloud-providers/vsphere/nodemanager.go:302:3: printf: (k8s.io/klog/v2.Verbose).Infof format %s reads arg #1, but call has 0 args (govet)
    		klog.V(4).Infof("Node %s missing in vSphere cloud provider caches, trying the API server")
2023-10-16 10:21:07 +02:00
Shiming Zhang
33f2d487e2 Promote KEP-2681 to beta in 1.29 2023-10-16 10:10:35 +08:00
bzsuni
5683660830 remove deprecated framework.ExpectNotEqual for node
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-10-16 09:21:26 +08:00
Stephen Heywood
b548bbb8cf When reading pvc status allow bound to be a valid value 2023-10-16 10:20:26 +13:00
AxeZhan
332779a3b2 add a simple e2e test 2023-10-15 13:59:46 +08:00
Kubernetes Prow Robot
378866edba
Merge pull request #120518 from saschagrunert/metrics-container-start
kubelet: fix metric `container_start_time_seconds` timestamp
2023-10-15 07:05:37 +02:00
Kubernetes Prow Robot
4d8a51acac
Merge pull request #121229 from aojea/remove_cluster_cidr
remove ClusterCIDR alpha API
2023-10-15 02:56:33 +02:00
Kubernetes Prow Robot
675a64eaa6
Merge pull request #121129 from carlory/cleanup-e2e-framework-equal
remove deprecated framework.ExpectEqual
2023-10-14 23:50:37 +02:00
Kubernetes Prow Robot
ae9dc3330e
Merge pull request #120874 from ruquanzhao/fixDevicePluginProbeCI
fix DevicePluginProbe node-e2e: pod and kubelet restarts
2023-10-14 23:50:28 +02:00
Antonio Ojea
c2d473f0d4 remove ClusterCIDR
KEP-2593 proposed to expand the existing node-ipam controller
to be configurable via a ClusterCIDR objects, however, there
were reasonable doubts on the SIG about the feature and after
several months of dicussions we decided to not move forward
with the KEP intree, hence, we are going to remove the existing
code, that is still in alpha.

https://groups.google.com/g/kubernetes-sig-network/c/nts1xEZ--gQ/m/2aTOUNFFAAAJ

Change-Id: Ieaf2007b0b23c296cde333247bfb672441fe6dfc
2023-10-14 19:06:22 +00:00
Kubernetes Prow Robot
b87cae907d
Merge pull request #121001 from jiahuif-forks/feature/validating-admission-policy/typed-composition-variables
ValidatingAdmissionPolicy: typed variables support.
2023-10-14 01:55:43 +02:00
Kevin Hannon
1ae5429629 add potential fixes for flakiness in eviction tests 2023-10-13 11:36:44 -04:00
cpanato
b0c7956a86
Bump distroless-iptables to v0.4.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-10-13 11:00:04 +02:00
carlory
a34d2f3b13 fix limitrange flaky test 2023-10-13 11:46:05 +08:00
Kubernetes Prow Robot
4c8fca2f06
Merge pull request #112894 from pohly/e2e-framework-test-labels
e2e framework: test labels
2023-10-13 02:40:43 +02:00
Kubernetes Prow Robot
2b4ef19578
Merge pull request #121191 from dims/update-busybox-sha-based-image-to-match-tag-1.36-1-1
Update busybox SHA based image to match tag - 1.36.1-1
2023-10-12 22:49:43 +02:00
Kubernetes Prow Robot
8923c3c871
Merge pull request #119659 from kannon92/beta-pod-ready-to-start
[KEP-3085] Promote PodReadyToStartContainers to beta in 1.29
2023-10-12 22:49:16 +02:00
Davanum Srinivas
968d6b8a32
Update busybox SHA based image to match tag - 1.36.1-1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-10-12 14:17:36 -04:00
Kubernetes Prow Robot
3bd4c1cf20
Merge pull request #120892 from ii/create-pv-pvc-status-test
Write e2e test for PersistentVolumeStatus & PersistentVolumeClaimStatus Endpoints +6 Endpoints
2023-10-12 18:50:33 +02:00
Kevin Hannon
c94240e2e2 move kubelet constant for podreadytostart to staging 2023-10-12 11:18:11 -04:00
Kubernetes Prow Robot
38a1ec75f0
Merge pull request #119882 from ffromani/podres-client-wait
podresources: e2e: force eager connection
2023-10-12 15:59:55 +02:00
Davanum Srinivas
de01788dea
Switch to newer cos-gpu-installer - v2.1.9
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-10-12 06:59:39 -04:00
Hao Ruan
531324cb1d allow FSGroupPolicy and PodInfoOnMount to be mutable in CSIDriver.Spec 2023-10-12 15:01:37 +08:00
Davanum Srinivas
5ad5ef1d0f
Switch to newer cos-gpu-installer - v2.1.7
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-10-11 23:15:51 -04:00
Kubernetes Prow Robot
5027809be8
Merge pull request #119479 from HirazawaUi/implement-secrets-empty-value-test
implement secret empty string value integration test
2023-10-12 00:51:13 +02:00
Kubernetes Prow Robot
dc1cde6e02
Merge pull request #121044 from charles-chenzz/e2e_pod_readytostart_false
[KEP-3085]: check PodReadyToStartContainers condition after gracefulshutdown
2023-10-11 20:29:32 +02:00
cpanato
5eb7fea383
[go] Bump images, dependencies and versions to go 1.21.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-10-11 17:08:26 +02:00
Arda Güçlü
a504aed54d
Add shortname ambiguity warning in shortcut expander (#117668)
* Add warning handler callback function in shortcut expander

Currently, errors in client-go are propagated back to the callers via
function returns. However, there is no elegant way for just warning users.
For example, when user wants to get a resource with it's short name format
and if there are multiple resources belonging to this short name, we need to
warn user about this ambugity which one is picked and which ones are discarded.

Not only to overcome this particular case mentioned above, but also propose a
way for the possible warnings in the future, this commit adds a warningHandler
callback function in shortcutExpander.

* Add warningPrinter functionality in ConfigFlags

ConfigFlags has neither warning user in a standardized
format functionality nor passing warning callback functions to other upper level
libraries such as client-go.

This commit adds an ability that user can set warningPrinters
according to their IOStreams and this warningPrinters will be used
to raise possible warnings happening not only in cli-runtime but
also in client-go.

* Pass warning callback function in ConfigFlags to shortcutExpander

This commit passes warning callback function to print possible
warnings happened in shortcut expander to warn user in a
standardized format.

* Add integration test for CRDs having ambiguous short names

This commit adds integration test to assure that warning message
related to this ambiguity is printed when resources are being retrieved via their short name
representations in cases where multiple resources have same
short names.

This integration test also ensures that the logic behind which resource
will be selected hasn't been changed which may cause disperancies in
clusters.

* Remove defaultConfigFlag global variable

* Move default config flags initialization into function

* Skip warning for versions of same group/resource

* Run update-vendor

* Warn only once when there are multiple versions registered for ambiguous resource

* Apply gocritic review

* Add multi-resource multi-version ambiguity unit test
2023-10-11 17:04:11 +02:00
carlory
2c1836bc24 remove deprecated framework.ExpectEqual 2023-10-11 12:43:10 +08:00
RuquanZhao
babac47c6f fix DevicePluginProbe node-e2e: pod and kubelet restarts
The kubelet restarts working pods with an exponential back-off delay,
with a maximum cap of 5 minutes. The waiting 1 minutes may happen to be
in back-off time.

Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-10-11 10:15:32 +08:00
Kubernetes Prow Robot
bdcb73d6b3
Merge pull request #120460 from tzneal/deflake-oom-tests-on-containerd
skip the reason check for OOM reason test if it will fail
2023-10-11 01:03:17 +02:00
Patrick Ohly
19ecf93ec3 e2e: define features and node features
The list is based on the -list-tests output.
2023-10-10 18:15:49 +02:00
Patrick Ohly
f2d34426f8 e2e: enhance SIGDescribe
framework.SIGDescribe is better because:
- Ginkgo uses the source code location of the test, not of the wrapper,
  when reporting progress.
- Additional annotations can be passed.

To make this a drop-in replacement, framework.SIGDescribe generates a function
that can be used instead of the former SIGDescribe functions.

windows.SIGDescribe contained some additional code to ensure that tests are
skipped when not running with a suitable node OS. This gets moved into a
separate wrapper generator, to allow using framework.SIGDescribe as intended.
To ensure that all callers were modified, the windows.sigDescribe isn't
exported anymore (wasn't necessary in the first place!).
2023-10-10 18:15:49 +02:00
Patrick Ohly
39b6916cbc e2e: add wrapper functions to annotate tests
These wrapper functions set labels in addition to injecting the annotation into
the test text. It then becomes possible to select tests in different ways:

    ginkgo -v --focus="should respect internalTrafficPolicy.*\[FeatureGate:ServiceInternalTrafficPolicy\]"

    ginkgo -v --label-filter="FeatureGate:ServiceInternalTrafficPolicy"

    ginkgo -v --label-filter="Beta"

When a test runs, ginkgo shows it as:

    [It] should respect internalTrafficPolicy=Local Pod to Pod [FeatureGate:ServiceInternalTrafficPolicy] [Beta] [FeatureGate:ServiceInternalTrafficPolicy, Beta]

The test name and the labels at the end are in different colors. Embedding the
annotations inside the text is redundant and only done because users of the e2e
suite might expect it. Also, our tooling that consumes test results currently
doesn't know about ginkgo labels.

Environments, features and node features as described by
https://github.com/kubernetes/enhancements/tree/master/keps/sig-testing/3041-node-conformance-and-features
are also supported.

The framework and thus (at the moment) test/e2e do not have any pre-defined
environments and features. Adding those and modifying tests will follow in
a separate commit.
2023-10-10 18:15:49 +02:00
Patrick Ohly
535ab74346 e2e framework: track and report internal bugs
If something goes wrong during the test registration phase, the only solution
so far was to panic. This is not user-friendly and only allows to report one
problem at a time.

If initialization can continue, then a better solution is to record a bug,
continue, and then report all bugs together.

This also works when just listing tests. The new verify-e2e-suites.sh uses that
to check all test suites (identified as "packages that call
framework.AfterReadingAllFlags", with some exceptions) as part of
pull-kubernetes-verify.

Example output for a fake

    framework.RecordBug(framework.NewBug("fake bug during SIGDescribe", 0))

in test/e2e/storage/volume_metrics.go:
```
$ hack/verify-e2e-suites.sh
go version go1.21.1 linux/amd64
ERROR: E2E test suite invocation failed for test/e2e.
   ERROR: E2E suite initialization was faulty, these errors must be fixed:
   ERROR: test/e2e/storage/volume_metrics.go:49: fake bug during SIGDescribe
E2E suite test/e2e_kubeadm passed.
E2E suite test/e2e_node passed.
```
2023-10-10 18:15:46 +02:00
Patrick Ohly
3afdcc03ea e2e framework: list specs and labels
-list-tests is a more concise alternative for `ginkgo --dry-run` with one line
per test. In contrast to `--dry-run`, it really lists all tests. `--dry-run`
without additional parameters uses the default skip expression from the E2E
context, which filters out flaky and feature-gated tests. The output includes
the source code location where each test is defined. It is sorted by test
name (not source code location) because that order is independent of
reorganizing the source code and ordering by location can be achieved with
"sort".

-list-labels has no corresponding feature in Ginkgo.

One possible usage is to figure out what values might make sense for
-focus/skip/label-filter.

Unit tests will follow in a future commit.
2023-10-10 17:15:59 +02:00
Patrick Ohly
aa4d2fc5ed e2e storage: remove useless info message
Always printing "Enabling in-tree volume drivers" whenever the E2E suite is
initializing doesn't provide any useful information and makes output of the
upcoming -list-tests look weird.
2023-10-10 17:15:59 +02:00
Kubernetes Prow Robot
09edfe4ebb
Merge pull request #121067 from carlory/cleanup-e2enode-framework-equal
e2e_node: stop using deprecated framework.ExpectEqual
2023-10-10 14:44:55 +02:00
Kubernetes Prow Robot
4a92b00db9
Merge pull request #121064 from carlory/cleanup-e2e-apimachinery-framework-equal
e2e_apimachinery: stop using deprecated framework.ExpectEqual
2023-10-10 13:33:02 +02:00
Kubernetes Prow Robot
4b9e15e0fe
Merge pull request #120873 from pohly/dra-e2e-test-driver-enhancements
e2e dra: enhance test driver
2023-10-10 13:32:55 +02:00
Stephen Heywood
00ae26cda8 Create e2e test for PV/PVC status endpoints
e2e test validates the following 6 endpoints
- patchCoreV1PersistentVolumeStatus
- readCoreV1PersistentVolumeStatus
- replaceCoreV1PersistentVolumeStatus
- patchCoreV1NamespacedPersistentVolumeClaimStatus
- readCoreV1NamespacedPersistentVolumeClaimStatus
- replaceCoreV1NamespacedPersistentVolumeClaimStatus
2023-10-10 09:38:16 +13:00
Kubernetes Prow Robot
e1788034c6
Merge pull request #120046 from chansuke/feature/update-the-function-to-get-nodes
Optimize test for scalability by using `GetBoundedReadySchedulableNodes()`
2023-10-09 21:44:21 +02:00
cpanato
a6b0a6c484
Bump distroless-iptables to v0.3.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-10-09 13:18:46 +02:00
carlory
137ad9bf2b clean up deprecated funcs in e2e framework 2023-10-09 16:51:53 +08:00
carlory
d5d7fb595e e2e_node: stop using deprecated framework.ExpectEqual 2023-10-09 16:42:42 +08:00
carlory
5f74461bcd e2e_apimachinery: stop using deprecated framework.ExpectEqual 2023-10-09 15:44:20 +08:00
Katarzyna Lach
122ff5a212 Move grpc rate limitter from podresource folder
Rate limitter.go file is a generic file implementing
grpc Limiter interface. This file can be reuse by other gRPC
API not only by podresource.

Change-Id: I905a46b5b605fbb175eb9ad6c15019ffdc7f2563
2023-10-09 07:22:23 +00:00
Kubernetes Prow Robot
cdc026fad1
Merge pull request #119915 from AxeZhan/rollout_e2e
Add a kubectl rollout undo e2e test
2023-10-09 04:53:29 +02:00
Kubernetes Prow Robot
3fc8c32425
Merge pull request #121051 from carlory/cleanup-e2e-apps-framework-equal
fix incorrect Consistently due to missing assignment when create a newAsyncAssertion
2023-10-08 21:53:52 +02:00
charles-chenzz
ccc6458683 e2e_node: add testcase to check status of pod ready to start condition are set to false after terminating 2023-10-08 20:40:36 +08:00
carlory
bb02d0feba fix incorrect Consistently due to missing assignment when create a newAsyncAssertion 2023-10-08 13:23:46 +08:00
Kubernetes Prow Robot
4b2225701e
Merge pull request #120819 from fusida/fix-master-e2e
e2e: set liveness probe timeout seconds for conformance test
2023-10-08 07:02:52 +02:00