Commit Graph

20561 Commits

Author SHA1 Message Date
Hanna Lee
04fadd8b03 Fix SA5011 errors by making control flow abort obvious to linter 2021-11-17 08:56:00 +01:00
Hanna Lee
979c4254eb Fix integer division 2021-11-17 08:53:19 +01:00
Kubernetes Prow Robot
f784891854
Merge pull request #105945 from Jefftree/openapi-v3-test
OpenAPI v3
2021-11-16 21:14:05 -08:00
Shiming Zhang
7c656b55e4 Update shutdown cases 2021-11-17 11:47:12 +08:00
Shiming Zhang
df7e4c1a3d Add e2e for GracefulNodeShutdownBasedOnPodPriority 2021-11-17 11:47:12 +08:00
Kubernetes Prow Robot
c0b5ed7556
Merge pull request #105611 from damemi/simplified-multipoint-extension
Scheduler simplified MultiPoint plugin config
2021-11-16 17:44:12 -08:00
James Sturtevant
12264d2ce9 Use client set to get nodes configuration 2021-11-16 17:42:15 -08:00
Kermit Alexander
3180012c1b Add integration tests for OpenAPI v3. 2021-11-16 17:38:54 -08:00
Kubernetes Prow Robot
e14bdbaa1c
Merge pull request #105057 from jiahuif-forks/feature/enum-types-feature-enablement
Add Support for OpenAPIEnum in OpenAPI v2
2021-11-16 16:35:55 -08:00
Kubernetes Prow Robot
6805e6ee41
Merge pull request #104722 from leiyiz/migration
turning on the CSIMigrationGCE feature flag
2021-11-16 15:28:32 -08:00
Mike Dame
420c5308bb Add MultiPoint scheduler plugin config field 2021-11-16 14:56:33 -05:00
Léiyì Zhang
2298dc612c skip in-tree and default Dynamic Provisioner test when there's no default storage class 2021-11-16 19:26:30 +00:00
Kubernetes Prow Robot
c84da4e3e6
Merge pull request #106051 from jpbetz/cel-port
Feature implementation: Validation rules for Custom Resource Definitions using the CEL expression language
2021-11-15 22:35:26 -08:00
Kubernetes Prow Robot
152c60fef7
Merge pull request #106434 from ehashman/timeout-restart-test
Fix timeout flake in restart kubelet e2e
2021-11-15 19:53:37 -08:00
Joe Betz
ba6db69c39 Add integration tests for CRD validation rules feature 2021-11-15 21:49:32 -05:00
Cheng Xing
23509a0852 Remove feature gate check when skipping OnRootMismatch fsgroupchangepolicy tests 2021-11-15 14:32:57 -08:00
Elana Hashman
303b05cded
Fix timeout flake in restart kubelet e2e 2021-11-15 13:42:58 -08:00
Kubernetes Prow Robot
7ac768324c
Merge pull request #106425 from verb/1.23-ec-e2e-flake
De-flake ephemeral containers e2e test
2021-11-15 13:05:12 -08:00
Kubernetes Prow Robot
159fcbb01e
Merge pull request #106408 from cynepco3hahue/e2e_node_quota_isci_test_fix_panic_nil_pointer_exception
e2e_node: fix nil pointer exception under quota lsci test
2021-11-15 11:27:02 -08:00
Kubernetes Prow Robot
1c127d3682
Merge pull request #105706 from uthark/oatamanenko/upgrade-etcd-3.5.1
Upgrade etcd to 3.5.1
2021-11-15 10:04:59 -08:00
Lee Verberne
28bd71c291 De-flake ephemeral containers e2e test
The test waits for the container to be running, but the test command
sleeps for 2 seconds before writing output, creating a race.
2021-11-15 12:14:47 -05:00
Jiahui Feng
52d8b53663 add e2e test for enforcing enums in schema. 2021-11-15 09:10:43 -08:00
Kubernetes Prow Robot
8d301e97f7
Merge pull request #106315 from josephburnett/e2e-v2
Use HPA v2 in E2E tests.
2021-11-15 07:20:48 -08:00
Antonio Ojea
5eb584d1cb
Node tests fixes (#106371)
* capture loop variable

* capture the loop variable and don't fail on not found errors

* capture loop variable

* Revert "Mark restart_test as flaky"

This reverts commit 990e9506de.

* skip e2e node restart test with dockershim

* Update test/e2e_node/restart_test.go

Co-authored-by: Mike Miranda <mikemp96@gmail.com>

* capture loop using index

Co-authored-by: Mike Miranda <mikemp96@gmail.com>
2021-11-14 19:54:47 -08:00
Kubernetes Prow Robot
991bb65ecc
Merge pull request #106395 from verult/delegate-fsgroup-disable-onrootmismatch-e2e
Skip OnRootMismatch tests if the CSI driver supports VOLUME_MOUNT_GROUP.
2021-11-14 16:12:47 -08:00
Artyom Lukianov
cf2f21dd3e e2e_node: fix nil pointer exception under quota lsci test
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-14 11:50:19 +02:00
Cheng Xing
4836fd1510 Skip OnRootMismatch tests if the CSI driver supports VOLUME_MOUNT_GROUP. 2021-11-12 18:27:22 -08:00
Kubernetes Prow Robot
c1b9ada067
Merge pull request #105459 from shivanshu1333/bug/master/105426
Fixed using reference in for loop
2021-11-12 17:36:47 -08:00
Kubernetes Prow Robot
5bc6cfac2b
Merge pull request #106170 from kidlj/cleanup_e2e_framework_import_e2elog_package
test/e2e: cleanup e2e core framework's import from sub package e2elog
2021-11-12 13:38:29 -08:00
Kubernetes Prow Robot
1f6aa87a93
Merge pull request #105744 from jsturtevant/windows-containerd-networkstats
Get Windows network stats directly for Containerd
2021-11-12 12:36:41 -08:00
Kubernetes Prow Robot
5f0a94b23c
Merge pull request #104743 from gjkim42/ensure-pod-uniqueness
Ensure there is one running static pod with the same full name
2021-11-12 12:36:28 -08:00
Neha Lohia
fa1b6765d5
move pkg/util/node to component-helpers/node/util (#105347)
Signed-off-by: Neha Lohia <nehapithadiya444@gmail.com>
2021-11-12 07:52:27 -08:00
Shivanshu Raj Shrivastava
d9b21cd1de
fixed using reference to loop iterator 2021-11-12 17:22:36 +05:30
Kubernetes Prow Robot
c9a245fa48
Merge pull request #106266 from ahg-g/ahg-metrics
Move a number of scheduler metrics to STABLE
2021-11-11 15:15:37 -08:00
Kubernetes Prow Robot
0c27c643a8
Merge pull request #106362 from ehashman/append-to-node-log
Append node e2e logs to file where possible
2021-11-11 14:16:08 -08:00
Kubernetes Prow Robot
bbc3a9aace
Merge pull request #106359 from mmiranda96/fix/mark-restart-test-flaky
Mark restart_test as flaky
2021-11-11 12:00:33 -08:00
Kubernetes Prow Robot
7663bffd51
Merge pull request #106321 from neolit123/1.23-fix-e2e-test-failures-1
kubeadm: fix test failures in the e2e_kubeadm suite
2021-11-11 12:00:08 -08:00
Elana Hashman
5401551d12
Append node e2e logs to file where possible
Functionality added in systemd 240:
1977d1477f/NEWS (L3919-L3921)
2021-11-11 11:16:51 -08:00
Mike Miranda
990e9506de Mark restart_test as flaky 2021-11-11 17:25:27 +00:00
Danielle Lancashire
03de802434 e2e_node: unify device tests
The device_plugin_tests have not run successfully in a very long time,
initially being marked flaky and then eventually becoming stale.

The gpu_device_plugin_tests have been used to test the same behaviour,
but are incredibly high maintenance due to external changes in behaviour
from GCP/Nvidia that we have no control over.

This commit takes the existing device plugin tests, makes them look more
like the GPU tests, and removes the cases that have been unsupported for
a long time (namely restarting containers while the plugin is
unavailable).

It also removes the GPU plugin tests, as we do not get more signal by
using real devices here.
2021-11-11 14:10:27 +01:00
Lee Verberne
d31d0cc29a Remove kubectl from ephemeral container e2e
It's not available in the node e2e environment.
2021-11-11 08:04:43 -05:00
Lee Verberne
e1e97a0e47 Add NodeFeature tag to ephemeral containers e2e 2021-11-11 05:54:01 -05:00
Mike Dame
80c01707e0
Wire contexts to Batch controllers (#105491)
* Wire contexts to Batch controllers

* (hold) feedback + updates that overlap with Apps controllers

* fixup errors
2021-11-10 14:56:46 -08:00
Kubernetes Prow Robot
1ff64edffb
Merge pull request #104636 from hbagdi/ingress-class-namespaced-params-ga
Graduate IngressClassNamespacedParams to GA
2021-11-10 12:53:26 -08:00
Lubomir I. Ivanov
7fa7f6d400 kubeadm: fix failure in e2e_kubeadm related to kubelet-config
The featureGates field in ClusterConfiguration ends up
as a map[interface{}]interface{} in the test suite
and cannot be casted to map[string]bool directly.
Adapt the test to use map[interface{}]interface{}.
2021-11-10 21:56:22 +02:00
Kubernetes Prow Robot
fb3df2e73c
Merge pull request #106301 from pohly/log-kube-proxy-go-runner
build: use debian-iptables:bullseye-v1.1.0
2021-11-10 11:51:53 -08:00
Kubernetes Prow Robot
dac695f91f
Merge pull request #106299 from SergeyKanzhelev/PodReadinessGateNodeConformance
PodReadinessGate is stable feature and test runs all green
2021-11-10 11:51:46 -08:00
James Sturtevant
d7bdbb075f Add check for network stats to e2e tests 2021-11-10 11:50:04 -08:00
Jiahui Feng
a8175212aa integration test for OpenAPI feature enablement. 2021-11-10 11:06:03 -08:00
Kubernetes Prow Robot
f3bf7e1ced
Merge pull request #106298 from SergeyKanzhelev/fetchShareProcessTestFromOrphans
fish out ShareProcessNamespace from orphans tab
2021-11-10 10:20:02 -08:00
Kubernetes Prow Robot
ebf6823dc8
Merge pull request #106226 from NikhilSharmaWe/betterOutputLifecycle
Changed code to improve output for files under test/e2e/lifecycle
2021-11-10 10:19:27 -08:00
Abdullah Gharaibeh
a241c45dc7 move a number of scheduler metrics to STABLE 2021-11-10 12:51:17 -05:00
Harry Bagdi
d09a8c0a88 Graduate IngressClassNamespacedParams to GA 2021-11-10 08:58:39 -08:00
Joseph Burnett
13ea13a57d Use HPA v2 in E2E tests. 2021-11-10 16:06:03 +00:00
Kubernetes Prow Robot
b817efb042
Merge pull request #106306 from pawbana/change_bucketing_for_request_latency_metric
Changed buckets for apiserver_request_duration_seconds metric
2021-11-10 06:35:27 -08:00
Kubernetes Prow Robot
ea2011d72a
Merge pull request #106251 from cynepco3hahue/e2e_node_fix_hugepages
e2e_node: does not rely on Kubelet automatic restart service under hugepages tests
2021-11-10 04:31:26 -08:00
Paweł Banaszewski
a8bd20a5af Changed buckets for apiserver_request_duration_seconds metric 2021-11-10 11:53:49 +00:00
Kubernetes Prow Robot
9351ea291a
Merge pull request #105873 from MikeSpreitzer/more-seat-metrics
More seat metrics for APF
2021-11-10 02:23:26 -08:00
Patrick Ohly
3cfef61112 build: use debian-iptables:bullseye-v1.1.0
The newer image contains go-runner, which is relevant for removing the
deprecated klog flags in the kube-proxy image.
2021-11-10 09:24:42 +01:00
Sergey Kanzhelev
fc42da8eb8 PodReadinessGate is stable feature and test runs all green 2021-11-10 07:34:14 +00:00
Sergey Kanzhelev
d3dd1499fc fish out ShareProcessNamespace from orphans tab 2021-11-10 07:25:02 +00:00
Kubernetes Prow Robot
c04157895c
Merge pull request #106273 from claudiubelu/integration/windows-log-network-consistentcy
tests: Logs the stdout and stderr for network consistency Windows tests on error
2021-11-09 16:31:39 -08:00
Kubernetes Prow Robot
b27c41f66d
Merge pull request #106263 from endocrimes/dani/skip-dkc
e2e_node: Skip dynamic config tests when the feature is disabled
2021-11-09 15:30:53 -08:00
Kubernetes Prow Robot
e4adf7f31c
Merge pull request #106116 from fromanirh/e2e-podresources-fix
E2E podresources: fix test checking esclusive cpus allocation
2021-11-09 13:59:59 -08:00
Stephen Heywood
675be94024 Promote DeleteCollection service e2e test to conformance 2021-11-10 10:19:46 +13:00
Jiahui Feng
9c05de2f31 prune enum when OpenAPIEnums is disabled. 2021-11-09 13:00:00 -08:00
Kubernetes Prow Robot
5848dbaa80
Merge pull request #105741 from neolit123/1.23-kubeadm-kubelet-config-map-change
kubeadm: introduce the UnversionedKubeletConfigMap feature gate
2021-11-09 11:27:48 -08:00
Francesco Romani
bf9bab5bc6 e2e: podresources: wait for local node ready again
Let's wait for the local node (aka the kubelet)
to be ready before to query podresources again,
to avoid false negatives.

Co-authored-by: Artyom Lukianov <alukiano@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 19:02:19 +01:00
Nikhil Sharma
fc0ec62626 Changed code to improve output for files under test/e2e/lifecycle 2021-11-09 22:24:27 +05:30
Danielle Lancashire
caa701b7a3 e2e_node: Skip dynamic config tests when disabled
DKC is being removed and we don't want it to continue flaking the rest
of our tests. Lets disable them when dkc is disabled rather than hard
failing. This fits more in line with our other E2Es, and reduces the
maintenance load in test-infra.
2021-11-09 13:40:18 +01:00
Francesco Romani
14105c09fb e2e: node: wait for kvm plugin removal
we need to make sure the system state is completely cleaned up
again, to avoid to mess up with the shared node state, before
we transition from one test to another.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:43:55 +01:00
Francesco Romani
4b46c3a0d2 e2e: node: podresources: fix exclusive cpus check
Since commit 42dd01aa3f the cpuRequest is in millicores, hence
we need to properly check translating to exclusive cpus
when verifying the resource allocation.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:16:54 +01:00
Francesco Romani
a6e8f7530a e2e: node: podresources: add internal helpers
the intent is to make the code more readable, no intended
changes in behaviour. Now it should be a bit more explicit
why the code is checking some values.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:16:54 +01:00
Artyom Lukianov
61fe924208 e2e_node: do not relay on Kubelet automatic restart service under hugepages tests
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-09 10:33:48 +02:00
wangyysde
d2abddd909 rename v2beta2 to v2
Signed-off-by: wangyysde <net_use@bzhy.com>

Generation swagger.json.

Use v2 path for hpa_cpu_field.

run update-codegen.sh

Signed-off-by: wangyysde <net_use@bzhy.com>
2021-11-09 10:34:54 +08:00
Kubernetes Prow Robot
cda360c59f
Merge pull request #104613 from ravisantoshgudimetla/reconcile-labels
[kubelet]: Reconcile OS and arch labels periodically
2021-11-08 14:15:19 -08:00
Kubernetes Prow Robot
03fc2eeda2
Merge pull request #106210 from cynepco3hahue/e2e_node_fixes_after_dynamic_confiuration
e2e_node: fixes after dynamic configuration removal
2021-11-08 13:12:09 -08:00
Kubernetes Prow Robot
0940dd6fc4
Merge pull request #106163 from aojea/conntrack_readiness
kube-proxy consider endpoint readiness to delete UDP stale conntrack entries
2021-11-08 13:11:44 -08:00
Kubernetes Prow Robot
61138d3740
Merge pull request #105854 from NikhilSharmaWe/non-serial
Added non-serialized metrics for windows, for 3 pods
2021-11-08 13:11:32 -08:00
Kubernetes Prow Robot
8b463cd141
Merge pull request #105406 from marosset/kubelet-metrics-for-host-process-containers
Adding kubelet metrics for started and failed to start HostProcess containers
2021-11-08 13:11:20 -08:00
Kubernetes Prow Robot
ae550b62da
Merge pull request #106122 from rezakrimi/issue/105862
making some apiserver metrics stable
2021-11-08 10:55:19 -08:00
Nikhil Sharma
8c896612e9 Added non-serialized metrics for windows, for 3 pods 2021-11-08 23:13:53 +05:30
Lubomir I. Ivanov
17cc064f7f kubeadm: update e2e tests for the kubelet-config
Add means to parse the value of UnversionedKubletConfigMap
feature gate if present and based on that decide what
configmap to look for.
2021-11-08 17:31:29 +02:00
Kubernetes Prow Robot
c9baa14d70
Merge pull request #105794 from margocrawf/master
--as-uid flag in kubectl and kubeconfigs.
2021-11-08 07:03:13 -08:00
Artyom Lukianov
117141eee3 e2e_node: fix tests after Kubelet dynamic configuration removal
- CPU manager
- Memory Manager
- Topology Manager

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-08 09:42:24 +02:00
Carlos Panato
abbf8c3bed
[go1.17] Update to go1.17.3
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-11-07 16:29:35 +01:00
ravisantoshgudimetla
3af5d37be7 [node][e2e test]: Make sure reconcile labels is working fine 2021-11-06 19:21:58 -04:00
Claudiu Belu
0251d28f60 tests: Logs the stdout and stderr for network consistency Windows tests on error
Some of the networking tests are flaking, and logging the command stdout and stderr
might show us some additional information about the the underlying issue when it
occurs.
2021-11-06 13:54:59 -07:00
Claudiu Belu
35e23afa50 tests: Prepull images commonly used test images
Some tests have a short timeout for starting the pods (1 minute), but if
those tests happen to be the first ones to run, and the images have to be
pulled, then the test could timeout, especially with larger images. This
commit will allow us to prepull commonly used E2E test images, so this issue
can be avoided.
2021-11-05 14:22:50 -07:00
Margo Crawford
7e079f5144 --as-uid flag in kubectl and kubeconfigs.
This corresponds to previous work to allow impersonating UIDs:
* Introduce Impersonate-UID header: #99961
* Add UID to client-go impersonation config #104483

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2021-11-05 13:23:49 -07:00
Antonio Ojea
909925b492 kube-proxy: fix stale detection logic
The logic to detect stale endpoints was not assuming the endpoint
readiness.

We can have stale entries on UDP services for 2 reasons:
- an endpoint was receiving traffic and is removed or replaced
- a service was receiving traffic but not forwarding it, and starts
to forward it.

Add an e2e test to cover the regression
2021-11-05 20:14:56 +01:00
Reza Karimi
894e31f41a making some apiserver metrics stable 2021-11-05 14:50:05 +00:00
Kubernetes Prow Robot
aa964e097c
Merge pull request #106150 from pohly/log-runner-kubemark
kubemark: replace deprecated --log-file parameter with runner
2021-11-05 04:01:52 -07:00
Jian Li
2e4d7a5198 test/e2e: cleanup e2e core framework's import from sub package e2elog 2021-11-05 16:29:35 +08:00
Kubernetes Prow Robot
8ce440c45c
Merge pull request #105949 from robscott/topology-e2e
Initial Topology Hints e2e Tests
2021-11-04 17:12:04 -07:00
Kubernetes Prow Robot
adcd2feb5e
Merge pull request #104153 from cynepco3hahue/e2e_node_provide_static_kubelet_config
e2e node: provide static kubelet config
2021-11-04 17:11:53 -07:00
Kubernetes Prow Robot
27d3a9ec57
Merge pull request #104481 from AlexeyPerevalov/E2eIsKubeletConfiguration
e2e_node: Properly check for DynamicKubeletConfig
2021-11-04 16:11:53 -07:00
Mark Rossetti
ef324d6bbd Adding kubelet metrics for started and failed to start HostProcess containers
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2021-11-04 14:39:57 -07:00
Kubernetes Prow Robot
508e67937e
Merge pull request #106038 from NikhilSharmaWe/betterOutputNode
Changed code to improve output for files under test/e2e/node
2021-11-04 14:38:23 -07:00
Patrick Ohly
c3cd9a3902 kubemark: static binary, replace deprecated --log-file parameter
The --log-file parameter will be deprecated as of Kubernetes 1.23 and should be
avoided. The replacement for distroless images is the image with go-runner, a
tool that handles output redirection.

For kubemark to run in that image it must be built as static binary.
2021-11-04 20:52:56 +01:00