Commit Graph

23481 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
82f7cf6010
Merge pull request #117930 from LronDC/master
kubectl: optimize usage message of commands which have subcommands.
2023-06-01 02:19:46 -07:00
Patrick Ohly
d0a64739e2 e2e dra: collect and check GRPC calls
If kubelet plugin registration fails, it would be good to know more about the
communication with kubelet. Capturing the GRPC calls and then checking that
makes the failure messages more informative. Here's an example where a failure
was triggered by temporarily modifying the check so that it didn't find the
call:

  [FAILED] Timed out after 30.000s.
  Expected:
      <[]app.GRPCCall | len:2, cap:2>: [
          {
              FullMethod: "/pluginregistration.Registration/GetInfo",
              Request:
                  {},
              Response:
                  endpoint: /var/lib/kubelet/plugins/test-driver/dra.sock
                  name: test-driver.cdi.k8s.io
                  supported_versions:
                  - 1.0.0
                  type: DRAPlugin,
              Err: nil,
          },
          {
              FullMethod: "/pluginregistration.Registration/NotifyRegistrationStatus",
              Request:
                  plugin_registered: true,
              Response:
                  {},
              Err: nil,
          },
      ]
  to contain successful NotifyRegistrationStatus call
2023-06-01 09:58:05 +02:00
Joe Betz
68901de898 Enable optionals and add tests 2023-05-31 18:36:50 -04:00
Mark Rossetti
5b3510c0b6
Fixing gmsa-webhook install steps for Windows GMSA full tests
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2023-05-31 13:59:02 -07:00
Kubernetes Prow Robot
544005c32d
Merge pull request #117527 from ndixita/e2e-gcp-credential-provider-test
Moving Kubelet Credential Provider test to common so that it can be r…
2023-05-31 06:31:45 -07:00
Kubernetes Prow Robot
0bcb6db16b
Merge pull request #118048 from pbetkier/fix-hpa-e2e-cm-flake
e2e: deflake hpa e2e custom metrics tests
2023-05-31 02:01:46 -07:00
Paco Xu
f2a5e247eb add pacoxu to kubeadm approvers list 2023-05-31 10:34:42 +08:00
Dixita Narang
369e3faa4f Moving Kubelet Credential Provider test to common so that it can be run both as Node and Cluster test
Signed-off-by: Dixita Narang <ndixita@google.com>
2023-05-30 20:15:40 +00:00
Kubernetes Prow Robot
025fd23ca4
Merge pull request #118328 from Riaankl/remove-ephemeral-containers
Remove Ephemeral Containers form pending_eligible_endpoints.yaml
2023-05-30 07:43:48 -07:00
Riaan Kleinhans
b3111170f8
remove Ephemeral Containers form list 2023-05-31 01:32:10 +12:00
Kubernetes Prow Robot
7935006af2
Merge pull request #118318 from TommyStarK/test/e2e-replace-deprecated-ioutil
test/e2e: replace deprecated ioutil.ReadFile
2023-05-30 02:55:47 -07:00
Kubernetes Prow Robot
bdf34b3f56
Merge pull request #118304 from ii/promote-ephemeralcontainer-test
Promote e2e test for PodEphemeralcontainers endpoints + 2 Endpoints
2023-05-29 15:55:44 -07:00
TommyStarK
d9e2583af1 test/e2e: replace deprecated ioutil
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-05-29 19:36:29 +02:00
Mengjiao Liu
074900e81b scheduler: update the scheduler interface and cache methods to use contextual logging 2023-05-29 13:26:32 +08:00
Stephen Heywood
11a40406a1 Promote Ephemeral containers e2e test to Conformance 2023-05-29 11:46:10 +12:00
Kubernetes Prow Robot
bb746d6e46
Merge pull request #118285 from pohly/e2e-provisioning-error-checking
e2e storage: add missing error checking for WaitForVolumeAttachmentTerminated
2023-05-27 13:07:40 -07:00
Kubernetes Prow Robot
7ce6616838
Merge pull request #114514 from jiahuif-forks/tests/validating-admission-policy
initial e2e tests for ValidatingAdmissionPolicy
2023-05-26 11:50:57 -07:00
Kubernetes Prow Robot
c35a2775b2
Merge pull request #115554 from yt2985/cleanSA
LegacyServiceAccountTokenCleanUp alpha
2023-05-26 08:54:53 -07:00
Patrick Ohly
455169bd66 e2e storage: add missing error checking for WaitForVolumeAttachmentTerminated
The function returns an error that tests must check to detect when
there was a failure.
2023-05-26 17:43:13 +02:00
SataQiu
4d2ff08bfa e2e-framework: code cleanup for mismatched comments 2023-05-26 12:36:19 +08:00
LronDC
15678e4a67 Optimize usage message of commands which have subcommands.
Signed-off-by: LronDC <lun.su@daocloud.io>
2023-05-26 10:07:43 +08:00
Kubernetes Prow Robot
ffc0346400
Merge pull request #118099 from ii/create-csidriver-test
Write e2e test for StorageV1CSIDriver Endpoints + 3 Endpoints
2023-05-25 08:45:03 -07:00
Kubernetes Prow Robot
ef00ff2148
Merge pull request #118256 from aojea/svc_unavailable
e2e should retry if service is not available
2023-05-25 07:00:51 -07:00
Kubernetes Prow Robot
8db4d63245
Merge pull request #118248 from aojea/fix_rs_test
e2e rc: if the pods are running but not ready the test will fail
2023-05-25 05:18:52 -07:00
Antonio Ojea
e31b2080f5 e2e framework retry on Service unavailable errors
the e2e framwork use active loops to wait for certain async operations,
these loops need to retry on some operations and fail in others.

For the functions that depend on some operations to happen, the
apiserver may return 503 errors until that specific service is
available, so we should retry on those too.

Change-Id: Ib3d194184f6385b9d3d151c7055f27c97c21c3ff
2023-05-25 11:22:45 +00:00
Antonio Ojea
a50549cc90 e2e rc: if the pods are running but not ready the test will fail
Change-Id: Ic9211f8117caa7c320e2fb0f8d668184450c1d90
2023-05-25 07:19:51 +00:00
Kubernetes Prow Robot
03ebd4b7ef
Merge pull request #116656 from HirazawaUi/fik-fd-leaks
Cleanup fd leaks and file removal cleanup
2023-05-24 22:50:50 -07:00
tinatingyu
133eff3df4 implement LegacyServiceAccountTokenCleanUp alpha 2023-05-24 23:20:17 +00:00
Antonio Ojea
a6003ae1e1 fix unknown field error in rs e2e
Change-Id: Ib45246b6f8266d571a41f1e760fa6f5aa88123ff
2023-05-24 22:56:14 +00:00
Kubernetes Prow Robot
3efd083b6c
Merge pull request #118012 from mengjiao-liu/runtime-framework-pass-context
kube-scheduler: NewFramework function to pass the context parameter
2023-05-24 11:50:49 -07:00
Ben Luddy
f489184219
Delete CRDs created during field validation tests. 2023-05-24 12:39:57 -04:00
Kubernetes Prow Robot
ddf958ee06
Merge pull request #118097 from jsafrane/add-kind-e2e
Add test for starting kubelet with a CSI volume mounted
2023-05-24 06:24:50 -07:00
Keita Mochizuki
0813904404
Fix: Restricted profile comply with PSS (#117543)
* restricted profile comply with PSA v1.27

* add test case

* Reflect review comments

* Reflect review comments 2

* Reflect review comments 3
2023-05-24 04:16:49 -07:00
Stephen Heywood
05b3beb7f0 Create e2e test for CSIDriver endpoints
e2e test validates the following 3 endpoints
- deleteStorageV1CollectionCSIDriver
- patchStorageV1CSIDriver
- replaceStorageV1CSIDriver
2023-05-24 20:04:27 +12:00
Kubernetes Prow Robot
e28866e976
Merge pull request #117393 from HirazawaUi/use-wait-replace-loop
Use wait to avoid blocking the SIGTERM handler
2023-05-23 19:07:00 -07:00
Kubernetes Prow Robot
7f8c4315dc
Merge pull request #118210 from BenTheElder/dra-build-normal-base
use standard base image in dra dev
2023-05-23 14:22:56 -07:00
Kubernetes Prow Robot
c136b4884d
Merge pull request #117017 from ike-ma/arm-ci
Setup e2e_node to support testing on ARM64
2023-05-23 14:22:49 -07:00
Kubernetes Prow Robot
551868d863
Merge pull request #118002 from ii/remove-get-endpoints
Remove Get * APIResources endpoints from the pending_eligible_endpoints.yaml file
2023-05-23 13:23:00 -07:00
Kubernetes Prow Robot
02acacba43
Merge pull request #118001 from ii/promote-apiresources-test
Promote e2e test for APIResources endpoints + 12 Endpoints
2023-05-23 13:22:48 -07:00
Benjamin Elder
e0b7f31ce6 use standard base image in dra dev
kind is on containerd 1.7.x now
2023-05-23 11:46:30 -07:00
Kubernetes Prow Robot
8b8dfcad12
Merge pull request #117586 from mimowo/preemption-for-critical-pods
Add DisruptionTarget condition when preempting for critical pod
2023-05-23 11:22:27 -07:00
Kubernetes Prow Robot
1dc8384cdd
Merge pull request #118185 from marosset/windows-fix-mem-limit-e2e-test
Fixing windows memory allocation e2e tests after a refactor
2023-05-23 10:24:38 -07:00
Jan Šafránek
149f4878a7
Simplify DeferCleanup.
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2023-05-23 14:46:05 +02:00
Patrick Ohly
dbb6d25f13 e2e: apply timeout for CSI Storage Capacity test only to node
Applying it to the entire spec included cleaning up, which makes predicting the
acceptable duration harder because it includes code not owned by the test
itself. It's better to specify a timeout only for the test code itself.
2023-05-23 08:29:10 +02:00
Mengjiao Liu
1c05cf1d51 kube-scheduler: NewFramework function to pass the context parameter
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
2023-05-23 10:17:34 +08:00
Kubernetes Prow Robot
b5ce9a576d
Merge pull request #117963 from humblec/gomega-euqal-1
e2e: use gomega.Expect instead of framework.ExpectEqual in  `kubectl`
2023-05-22 16:48:31 -07:00
Kubernetes Prow Robot
d2dc976247
Merge pull request #117591 from zshihang/master
graduate LegacyServiceAccountTokenTracking to GA
2023-05-22 16:48:20 -07:00
Mark Rossetti
cba8c1f5e2
Fixing windows memory allocation e2e tests after a refactor
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2023-05-22 13:36:21 -07:00
Kubernetes Prow Robot
ce05a4f7fc
Merge pull request #118176 from humblec/agnhost-manifest
test/e2e: use agnhost latest version in the manifest
2023-05-22 10:43:11 -07:00
Kubernetes Prow Robot
ea028befc1
Merge pull request #118053 from aleskandro/fix-nil-affinity-update
Updating the nodeAffinity of gated pods having nil affinity should be allowed
2023-05-22 09:35:09 -07:00
Humble Chirammal
89439b570f test/e2e: use agnhost latest version in the manifest
https://github.com/kubernetes/kubernetes/pull/118125

The image has got promoted via:

https://github.com/kubernetes/k8s.io/pull/5310

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-22 19:59:30 +05:30
Kubernetes Prow Robot
da0a1a05b9
Merge pull request #118125 from humblec/json-serializerwithoptions
test/e2e: Use json.NewSerializerWithOptions in place of json/yaml newSerializers
2023-05-22 07:12:32 -07:00
Jan Safranek
b30720fc9f Add test for starting kubelet with a CSI volume mounted
To test https://github.com/kubernetes/kubernetes/issues/117745,
restart kubelet with a CSI volume mounted *and* the API server running as a
static pod.

The test heavily uses `kind` containers and the fact that it uses the API
server as a static pod.
2023-05-22 15:31:40 +02:00
Humble Chirammal
ad9e264c3c test/e2e: Use json.NewSerializerWithOptions in place of json/yaml newSerializers.
condidering NewSerializer* funcs are deprecated with
NewSerializerWithOptions(), the test functions are adjusted to the same.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-22 18:44:30 +05:30
Kubernetes Prow Robot
b31774d39b
Merge pull request #118124 from humblec/kubeadm-etcd
test/e2e: remove redundunt type conversion, unused variable...etc
2023-05-22 01:08:22 -07:00
Kubernetes Prow Robot
3903a7e1f0
Merge pull request #118164 from pohly/scheduler_perf_results
scheduler-perf: inject "benchmark" as name into JSON result filename
2023-05-22 00:06:20 -07:00
Patrick Ohly
2db577a560 scheduler-perf: inject "benchmark" as name into JSON result filename
This is required because an empty name is no longer supported: the
perf-dashboard is run with --allow-parsers-matching-all-tests=false with causes
perfdash to skip current configuration for BenchmarkPerfResults as it does not
have name
set (4674704f45/perfdash/metrics-downloader.go (L165-L167)).

The perf-dash config needs to be updated accordingly.
2023-05-22 08:07:15 +02:00
Ike Ma
e21cf9a54e Setup e2e_node to support testing on ARM64
* Enable dockerized build with --use-dockerized-build=true
* Build and create test artifacts for ARM64 with --target-build-arch=arm64
* Prepull multi-arch ready container image
* Download ARM64 binaries/packages if running on ARM64 machine
2023-05-20 00:07:44 +00:00
Davanum Srinivas
ec8d94f205
Grab logs from all the containers when DNS related tests fail
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-05-19 17:23:13 -04:00
Shihang Zhang
182cd425d3 graduate LegacyServiceAccountTokenTracking to GA 2023-05-19 10:33:34 -07:00
Humble Chirammal
c74790e266 remove redundunt type conversion, unused variable...etc
`Framework` variable has been removed from test/*
unwanted `[]byte` conversion has been removed
import alias has been avoided

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-19 11:16:11 +05:30
Kubernetes Prow Robot
7ad8303b96
Merge pull request #118104 from liggitt/crd-sync
Fix waiting for CRD sync at server start
2023-05-18 11:26:45 -07:00
Jordan Liggitt
e4102d5e30
Test APIService safe handling at startup 2023-05-18 12:17:37 -04:00
Humble Chirammal
71ec9df5b6 update image tags in manifests to reflect the version listed in the source
test/e2e images have lost the parity compared the e2e suite image
versions and this commit make them in parity.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-18 20:27:40 +05:30
Kubernetes Prow Robot
e3db9232d9
Merge pull request #117895 from ii/create-ephemeralcontainer-test
Write e2e test for PodEphemeralcontainers endpoints + 2 Endpoints
2023-05-17 23:10:33 -07:00
aleskandro
4c9887e3eb Updating the nodeAffinity of gated pods having nil affinity should be allowed 2023-05-18 07:44:34 +02:00
Kubernetes Prow Robot
3ac21a5a30
Merge pull request #117113 from pohly/test-integration-race-detection-scheduler
test/integration/scheduler: fix data races
2023-05-17 21:26:33 -07:00
Patrick Ohly
9e9a6cde4b test/integration/scheduler: fix data races
The plugins get called by scheduler goroutines. At least the polling seems to
be done concurrently and thus needs locking.

Locking the PreBindPlugin state is less obvious. It might be that the scheduler
is really done with the test pod, but that ordering doesn't seem to be enough
for the race detector. It's simpler to add mutex locking.
2023-05-17 17:10:09 +02:00
Humble Chirammal
b035c373db build latest sample-api-server for test/e2e
v1.17.0 has been built at present where this commit make use
of available latest version/tag for the build purpose.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 19:51:48 +05:30
Humble Chirammal
36f0caf7ec remove GlusterFS references from test/e2e/* comments/descriptions
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:28 +05:30
Humble Chirammal
d83c3ce7ca make rbd and iscsi test images in parity with the test code
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:28 +05:30
Humble Chirammal
9de2846c72 remove glusterdynamic provisioner images reference from tests
GlusterFS code has been removed from the repo in v1.26 and this image
no longer required.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 17:40:25 +05:30
Kubernetes Prow Robot
b950f7ffb6
Merge pull request #118027 from humblec/hack-install-etcd
etcd: Update version to 3.5.9
2023-05-17 04:52:33 -07:00
Piotr Betkier
763e7923fb e2e: replace ubuntu-slim with agnhost in hpa cm noExporterDeployment 2023-05-17 11:19:23 +02:00
Kubernetes Prow Robot
06bde4f689
Merge pull request #118024 from kerthcet/fix/perf-errors
[perf-test] Log the warning instead of reporting error
2023-05-17 00:16:33 -07:00
kerthcet
0616d15712 Fix perf-test by increasing the error margin
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-17 12:14:06 +08:00
Humble Chirammal
51d79c4d6b e2e: use gomega.Expect instead of deprecated framework.Expect*
replace below functions:

 framework.ExpectEqual
 framework.ExpectNotEqual
 framework.ExpectError

Ref#115961

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-17 07:55:27 +05:30
Kubernetes Prow Robot
bdbfbffef3
Merge pull request #117371 from smarterclayton/minimal_podmanager
kubelet: Don't reference the pod manager interface directly from components
2023-05-16 14:34:33 -07:00
Stephen Heywood
45603efecb Create e2e test for PodEphemeralcontainers endpoints
e2e test validates the following 2 endpoints
- readCoreV1NamespacedPodEphemeralcontainers
- replaceCoreV1NamespacedPodEphemeralcontainers
2023-05-17 06:30:43 +12:00
Kubernetes Prow Robot
3588d091ff
Merge pull request #117962 from humblec/gomega-equal
e2e: use gomega.Expect instead of framework.ExpectEqual in windows/*
2023-05-16 09:53:47 -07:00
Humble Chirammal
e3eb4bd0c5 updating dependencies.yaml for etcd v3.5.9 version
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 20:27:17 +05:30
Piotr Betkier
c99cf53a10 e2e: deflake hpa e2e custom metrics tests
a) add namespacing to metrics: fixes interference between `should scale up when one metric is missing (Pod and External metrics)` and `should not scale down when one metric is missing (Container Resource and External Metrics)` specs, cause of flakiness.

b) replaces deployments containing unused exporters (metrics ignored) with deployments without any exporters: potential fix for often hitting a rate-limit on creating metrics descriptors (429 errors), also adds clarity.

c) fixes metric types: some external metrics tests used non-average type while expecting the value to be constant regardless of the number of pods. However, queries resulting from metric specs don't filter by pods, so a sum of metrics for all the pods is the fetched metric value (https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects). Adding averaging back by the number of pods fixes a couple of specs where the tests were passing for the wrong reason (wanted d ifferent test conditions).
2023-05-16 16:46:00 +02:00
Humble Chirammal
d8e82b1417 e2e: use gomega.Expect instead of framework.ExpectEqual in windows/*
stop using deprecated framework.ExpectEqual

Ref#115961

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 16:33:21 +05:30
Kubernetes Prow Robot
a31899a6fd
Merge pull request #118030 from pohly/dra-kind-cluster-fix
test/e2e/dra: fix kind cluster creation
2023-05-16 00:41:36 -07:00
Patrick Ohly
073b4cf66a test/e2e/dra: fix kind cluster creation
The nightly containerd binary no longer works in the current kind base images:

   May 15 16:32:31 kind-worker containerd[222]: /usr/local/bin/containerd:
   /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by
   /usr/local/bin/containerd)

kind now builds containerd directly with the base images. The official base
images still use containerd 1.6, so we have to use a special base image that
was prepared for this purpose.

Because the containerd config can be patched through kind, we don't need to
modify the generated node image anymore.
2023-05-16 08:11:43 +02:00
Kubernetes Prow Robot
f84ff3d052
Merge pull request #117813 from pohly/scheduler-perf-test-runtime
scheduler-perf: measure workload runtime and relabel workloads
2023-05-15 12:19:18 -07:00
Kubernetes Prow Robot
1487fc762f
Merge pull request #117982 from jpbetz/sig-roles-jpbetz
Add api-machinery TL owners permissions for jpbetz
2023-05-15 09:07:29 -07:00
Joe Betz
f0f92853ad Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
Patrick Ohly
d85b91f343 scheduler-perf: measure workload runtime and relabel workloads
The goal is to only label workloads as "performance" which actually run long
enough to provide useful metrics. The throughput collector samples once per
second, so a workload should run at least 5, better 10 seconds to get at least
a minimal amount of samples for the percentile calculation.

For benchstat analysis of runs with sufficient repetitions to get statistically
meaningful results, each workload shouldn't run more than one minute, otherwise
before/after analysis becomes too slow.

The labels were chosen based on benchmark runs on a reasonably fast desktop. To
know how long each workload takes, a new "runtime_seconds" benchmark result
gets added.
2023-05-15 14:33:40 +02:00
Riaan Kleinhans
be4c4a51ea
Update pending_eligible_endpoints.yaml 2023-05-15 10:14:38 +12:00
Stephen Heywood
d34d4755ae Promote APIResources e2e test to Conformance 2023-05-15 09:53:31 +12:00
Kubernetes Prow Robot
9bb6db25fc
Merge pull request #117950 from rjsadow/master
fix: use dl.k8s.io, not kubernetes-release bucket
2023-05-13 06:47:26 -07:00
Ricky Sadowski
8580c116d5 fix: use dl.k8s.io, not kubernetes-release bucket
This PR updates changes related references to the legacy
release bucket, excluding CHANGELOG updates.

Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
2023-05-13 10:57:41 +00:00
Kubernetes Prow Robot
8479db5876
Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
lavalamp is taking a long break
2023-05-12 14:34:47 -07:00
Clayton Coleman
6ac1bae281
test: Improve debug output of init container tests
When certain status conditions are not expected, we need to see
the nested objects, but %#v doesn't handle pointers well. Output
as simple encoded JSON.
2023-05-12 12:57:28 -04:00
Kubernetes Prow Robot
c72bedb6cb
Merge pull request #117670 from carlory/fix-issue-117583
e2e framework: remove dependency on k8s.io/kubernetes/pkg/api/v1/pod
2023-05-12 09:39:01 -07:00
Kubernetes Prow Robot
8f9c185696
Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
Complete cpuset export to k/utils by revendoring
2023-05-12 08:37:02 -07:00
HirazawaUi
cc1251123b use wait to avoid blocking the SIGTERM handler 2023-05-12 15:45:59 +08:00
SataQiu
feb63fb028 e2e_kubeadm: stop using deprecated framework.ExpectEqual 2023-05-12 11:54:54 +08:00
carlory
20602c819b e2e framework: remove dependency on k8s.io/kubernetes/pkg/api/v1/pod 2023-05-12 08:39:37 +08:00