Commit Graph

22123 Commits

Author SHA1 Message Date
Andrew Sy Kim
f440a69c70 test/e2e_node: install and configure kubelet credential provider
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Co-authored-by: Aditi Sharma <adi.sky17@gmail.com>
2022-03-23 10:30:01 -04:00
Abu Kashem
6acbe7e645
client-go: chain the error returned by rate limiter 2022-03-23 08:29:28 -04:00
Davanum Srinivas
3470453e01
Fix for verify: generated-stable-metrics problem
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:53 -04:00
Davanum Srinivas
1ce55e3afe
fix govet on golang 1.18
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:53 -04:00
Yuvaraj Kakaraparthi
801c39b478 kubectl: API changes to support --subresource in kubectl
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Co-authored-by: Yuvaraj Kakaraparthi <kakaraparthy@vmware.com>
2022-03-23 11:19:58 +05:30
ravisantoshgudimetla
82f701aae2 pod admission test 2022-03-22 14:58:27 -04:00
Kubernetes Prow Robot
41501c4fcf
Merge pull request #108704 from MartinForReal/feat/add_bootid_for_windows
Add bootid support for windows node.
2022-03-22 10:36:11 -07:00
Davanum Srinivas
d8f1da5ecb
golang: Update to 1.18 from 1.18rc1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 09:47:35 -04:00
Kubernetes Prow Robot
0b8a665d50
Merge pull request #108613 from Huang-Wei/fix-v1beta3-order
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config
2022-03-22 01:01:44 -07:00
Patrick Ohly
f5340fdd02 storage capacity: CRUD conformance test
This is needed for GA APIs. This one is based on
test/e2e/common/node/runtimeclass.go.
2022-03-22 08:12:56 +01:00
Kubernetes Prow Robot
9a8defda15
Merge pull request #108383 from tkashem/revert
Revert the revert of #107456 - "apf: change controller to use SSA for patches"
2022-03-21 22:09:43 -07:00
Kubernetes Prow Robot
0053a0e0fd
Merge pull request #108782 from cfryanr/expirationseconds_conformance
Promote CertificateSigningRequest's Spec.ExpirationSeconds field to GA
2022-03-21 20:19:55 -07:00
Kubernetes Prow Robot
7cf5c02980
Merge pull request #107979 from XudongLiuHarold/promote-loadbalancerclass-to-ga
Promote load balancer class to GA
2022-03-21 17:54:13 -07:00
Xudong Liu
c8a6c7f338 promote load balancer class to GA
Signed-off-by: Xudong Liu <xudongliuharold@gmail.com>
2022-03-21 16:16:13 -07:00
Mike Miranda
44e3280799 Increase timeout for stats check 2022-03-21 22:20:57 +00:00
Stephen Heywood
b5edb55bbc Create e2e job status test
e2e test validates the following 3 extra endpoints
- patchBatchV1NamespacedJobStatus
- readBatchV1NamespacedJobStatus
- replaceBatchV1NamespacedJobStatus
2022-03-22 10:26:44 +13:00
Wei Huang
d330f4dcb4
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config 2022-03-21 10:46:26 -07:00
Ryan Richard
e29ac0f8be Promote CertificateSigningRequest's Spec.ExpirationSeconds field to GA
Remove the comment "As of v1.22, this field is beta and is controlled
via the CSRDuration feature gate" from the expirationSeconds field's
godoc.

Mark the "CSRDuration" feature gate as GA in 1.24, lock its value to
"true", and remove the various logic which handled when the gate was
"false".

Update conformance test to check that the CertificateSigningRequest's
Spec.ExpirationSeconds field is stored, but do not check if the field
is honored since this functionality is optional.
2022-03-18 14:41:43 -07:00
David Porter
7ac2896a14 test: increase timeout in pod collection deletion
Increase the current timeout of 1 minute for waiting for all pods to be
deleted to avoid flakiness. To avoiding hardcoding a timeout, use the
built in framework's `PodDelete` timeout which defaults to 5 minutes.

While we are in here, also change `framework.PodStartTimeout` to use
`f.Timeouts.PodStart` since `framework.PodStartTimeouts` are marked as
deprecated.

Signed-off-by: David Porter <david@porter.me>
2022-03-18 13:40:29 -07:00
Kubernetes Prow Robot
cd6af9e64b
Merge pull request #106155 from enj/enj/i/webhook_rest_config
webhook: use rest.Config instead of kubeconfig file as input
2022-03-18 12:23:56 -07:00
Kubernetes Prow Robot
0ade4678a7
Merge pull request #108771 from andrewsykim/bump-agnhost
Bump agnhost@v2.36 to include changes for --delay-shutdown flag
2022-03-18 00:15:17 -07:00
Kubernetes Prow Robot
ad751e8520
Merge pull request #108710 from kevindelgado/ssfv-testing-improvement
Exact Matching for Field Validation Integration Tests
2022-03-17 21:21:16 -07:00
Jian Li
c55658cd9f e2e/cleanup: fix package name and dir name mismatches 2022-03-18 11:41:27 +08:00
MartinForReal
d529b7e10b add bootid support for windows node.
Signed-off-by: MartinForReal <fanshangxiang@gmail.com>
2022-03-18 02:17:52 +00:00
Monis Khan
fef7d0ef1e
webhook: use rest.Config instead of kubeconfig file as input
This change updates the generic webhook logic to use a rest.Config
as its input instead of a kubeconfig file.  This exposes all of the
rest.Config knobs to the caller instead of the more limited set
available through the kubeconfig format.  This is useful when this
code is being used as a library outside of core Kubernetes. For
example, a downstream consumer may want to override the webhook's
internals such as its TLS configuration.

Signed-off-by: Monis Khan <mok@vmware.com>
2022-03-17 20:47:42 -04:00
Kevin Delgado
7983932800 Exact Matching for Field Validation Tests 2022-03-17 22:08:49 +00:00
Sergey Kanzhelev
29e8bef315 RuntimeClass and PodOverhead promotion to GA 2022-03-17 21:49:32 +00:00
Andrew Sy Kim
07ac998e3b test/images: clarify documentation around bumping test image versions
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-17 14:28:41 -04:00
Andrew Sy Kim
9b5b77ac81 test/images/agnhost: bump agnhost to v2.36
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-17 11:47:04 -04:00
Kubernetes Prow Robot
9e50a332d8
Merge pull request #108366 from smarterclayton/terminating_not_terminated
Delay writing a terminal phase until the pod is terminated
2022-03-17 08:29:21 -07:00
Kubernetes Prow Robot
48ee98fabf
Merge pull request #108757 from liggitt/service-account-conformance
Exercise Get of serviceaccount in e2e
2022-03-17 00:41:30 -07:00
Kubernetes Prow Robot
6340b19dda
Merge pull request #108750 from andrewsykim/agnhost-netexec-termination
agnhost: support --delay-shutdown flag for the net and netexec subcommands
2022-03-16 18:35:26 -07:00
Kubernetes Prow Robot
a7740c83f2
Merge pull request #108714 from SergeyKanzhelev/podOverheadConformance
pod overhead test to be made a Conformance
2022-03-16 18:35:19 -07:00
Kubernetes Prow Robot
5cb6fab8f6 Merge pull request #105585 from fengzixu/improvement-volume-health
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-17 01:32:38 +00:00
Jordan Liggitt
654dc8686b Exercise Get of serviceaccount in e2e 2022-03-16 20:24:50 -04:00
Kubernetes Prow Robot
b195a64d45
Merge pull request #108644 from Jefftree/googleapis-gnostic
googleapis/gnostic -> google/gnostic and update kube-openapi
2022-03-16 15:14:10 -07:00
Sergey Kanzhelev
6b3758bb95 pod overhead test to be made a Conformance 2022-03-16 21:35:02 +00:00
Kubernetes Prow Robot
52ab081283
Merge pull request #108593 from claudiubelu/tests/update-pod-collection-test
tests: Updates the should delete a collection of pods test
2022-03-16 13:50:23 -07:00
Andrew Sy Kim
ff997ae5a0 agnhost/net: support --delay-shutdown flag
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-16 16:46:43 -04:00
Andrew Sy Kim
d981aa118f agnhost/netexec: support --delay-shutdown flag
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-16 16:46:43 -04:00
Kubernetes Prow Robot
0b3629ae7d
Merge pull request #108432 from iXinqi/add-write-file-test
Add gMSA Reading and Writing Files Test Case
2022-03-16 12:36:10 -07:00
David Porter
d6cd51e5c0
test: Verify that nodes do not transition to Failed while ready
Signed-off-by: David Porter <david@porter.me>
2022-03-16 13:15:03 -04:00
David Porter
c70f1955c4
test: Add E2E for job completions with cpu reservation
Create an E2E test that creates a job that spawns a pod that should
succeed. The job reserves a fixed amount of CPU and has a large number
of completions and parallelism. Use to repro github.com/kubernetes/kubernetes/issues/106884

Signed-off-by: David Porter <david@porter.me>
2022-03-16 13:15:03 -04:00
Clayton Coleman
ca98714ec0
test: Add E2E for init container pod deletion
Exploring termination revealed we have race conditions in certain
parts of pod initialization and termination. To better catch these
issues refactor the existing test so it can be reused, and then test
a number of alternate scenarios.
2022-03-16 13:15:03 -04:00
Maciej Borsz
aa95513982
Revert "add volume kubelet_volume_stats_health_abnormal to kubelet" 2022-03-16 13:44:09 +01:00
Konstantin Misyutin
1d7cefe9c4 Move volume helpers to "k8s.io/component-helpers/storage/volume".
This patch aims to simplify decoupling "pkg/scheduler/framework/plugins"
from internal "k8s.io/kubernetes" packages. More described in
issue #89930 and PR #102953.

Some helpers from "k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
package moved to "k8s.io/component-helpers/storage/volume" package:

- IsDelayBindingMode
- GetBindVolumeToClaim
- IsVolumeBoundToClaim
- FindMatchingVolume
- CheckVolumeModeMismatches
- CheckAccessModes
- GetVolumeNodeAffinity

Also "CheckNodeAffinity" from "k8s.io/kubernetes/pkg/volume/util"
package moved to "k8s.io/component-helpers/storage/volume" package
to prevent diamond dependency conflict.

Signed-off-by: Konstantin Misyutin <konstantin.misyutin@huawei.com>
2022-03-16 15:43:09 +08:00
Xinqi Li
65a4d1cbe7 add gMSA remote storage test 2022-03-15 22:51:55 -07:00
Jefftree
8a1d5947ad googleapis/gnostic -> google/gnostic 2022-03-15 20:44:03 -07:00
Kubernetes Prow Robot
7dcd697ddf
Merge pull request #108702 from pbetkier/test-e2e-autoscaling-owners
Add sig-autoscaling as owners of test/e2e/framework/autoscaling
2022-03-15 18:09:48 -07:00
Aldo Culquicondor
2c5d0a273c Graduate IndexedJob to stable
- Lock feature gate to true and schedule for deletion in 1.26
- Remove checks on feature gate
- Graduate E2E test to Conformance

Change-Id: I6814819d318edaed5c86dae4055f4b050a4d39fd
2022-03-15 13:41:06 -04:00
Kubernetes Prow Robot
2b1b849d6a
Merge pull request #108362 from sanposhiho/implement-mindomains
Implement MinDomains on Pod Topology Spread
2022-03-15 10:34:11 -07:00
Kubernetes Prow Robot
1a5abe5d1f
Merge pull request #105585 from fengzixu/improvement-volume-health
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-15 05:58:11 -07:00
Piotr Betkier
3df96cbf01 Add sig-autoscaling as owners of test/e2e/framework/autoscaling 2022-03-15 11:22:49 +01:00
Kubernetes Prow Robot
02b1ec5b0b
Merge pull request #108485 from BigDarkClown/master
Make daemon.NodeShouldRunDaemonPod function public
2022-03-15 00:30:21 -07:00
Kubernetes Prow Robot
7cc4fcd802
Merge pull request #108253 from pohly/kubelet-root
test: support storage tests with non-standard kubelet root directory
2022-03-15 00:30:10 -07:00
Kubernetes Prow Robot
8bf64e4128
Merge pull request #108652 from 249043822/probe-restart
Fix test:Probing container should have monotonically increasing restart
2022-03-14 22:08:11 -07:00
Kubernetes Prow Robot
41dbd290d1
Merge pull request #108694 from mikedanese/metadata-conceal
remove metadata-concealment related testing
2022-03-14 18:50:43 -07:00
Kubernetes Prow Robot
d7bd0d4f52
Merge pull request #108648 from ahg-g/ahg-ds
Update PreFilter interface to return a PreFilterResult
2022-03-14 18:50:20 -07:00
ZhangKe10140699
d7d7e0d508 Fix test:Probing container should have monotonically increasing restart count 2022-03-15 09:15:33 +08:00
Kubernetes Prow Robot
f9be590b25
Merge pull request #108431 from ii/promote-replace-podtemplate
Promote replaceCoreV1NamespacedPodTemplate test - +1 endpoint coverage
2022-03-14 16:24:58 -07:00
Sergey Kanzhelev
792a37e2f1 promote grpcProbes to beta 2022-03-14 22:49:38 +00:00
Matthew Wong
7f638b45b7 Set zone label selector for preprovisioned AWS in-tree tests 2022-03-14 15:38:10 -07:00
Kubernetes Prow Robot
2acc22a9a0
Merge pull request #108690 from klueska/add-owners
Add klueska to test/e2e/node/OWNERS file
2022-03-14 14:23:19 -07:00
Kubernetes Prow Robot
5c98eb5625
Merge pull request #108264 from pbetkier/hpa-behavior-e2e-tests-downscale
Add e2e test for HPA behavior: decreased downscale stabilization
2022-03-14 14:23:00 -07:00
Kubernetes Prow Robot
c6c4915dd7
Merge pull request #108495 from stevekuznetsov/skuznets/better-rv-math
test/integration: improve TestTransform
2022-03-14 13:03:11 -07:00
Mike Danese
b32e043898 remove metadata-concealment related testing
We agreed to remove these tests in SIG Auth because they aren't testing
any OSS functionality.
2022-03-14 12:44:48 -07:00
Abdullah Gharaibeh
5b20b68bc9 Updated the scheduler framework's PreFilter interface to return a PreFilterResult 2022-03-14 15:36:52 -04:00
Patrick Ohly
f84f4fa291 storage capacity: use V1 API 2022-03-14 20:05:45 +01:00
Patrick Ohly
921edae2b4 storage capacity: v1 API 2022-03-14 20:05:45 +01:00
Patrick Ohly
3a7deaa141 storage capacity: GA, always enabled, remove feature check
The code and tests for scenarios where the feature is disabled are no longer
needed because the feature is graduating to GA.
2022-03-14 20:05:45 +01:00
sanposhiho
6141aa53f9 Implement MinDomains 2022-03-15 01:38:44 +09:00
Kevin Klues
b815122f17 Add klueska to test/e2e/node/OWNERS file
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-03-14 17:02:25 +01:00
Riaan Kleinhans
454571b1bc
add log endpoint to ineligible_endpoints.yaml 2022-03-14 09:59:21 +13:00
Kubernetes Prow Robot
d2ce895e07
Merge pull request #107055 from jsturtevant/remove-unsupported-sac
Remove unsupported Windows SAC  test images
2022-03-11 16:32:23 -08:00
Kubernetes Prow Robot
633313616f
Merge pull request #107132 from NikhilSharmaWe/netTest
made independent test cases ginkgo.It for checking connectivity
2022-03-11 13:26:22 -08:00
Kubernetes Prow Robot
86ad8fc586
Merge pull request #107477 from NikhilSharmaWe/memlim
Updated Sig-windows Memory Limits tests to not assume all nodes are the same
2022-03-11 11:52:22 -08:00
Shiming Zhang
1322dbba46 Add e2e 2022-03-11 17:31:25 +08:00
Nikhil Sharma
cf48674dbf Updated Sig-windows Memory Limits tests to not assume all nodes are the same 2022-03-11 10:48:36 +05:30
Kubernetes Prow Robot
897f2f78a5
Merge pull request #108458 from pohly/csi-test-image-mirroring
e2e: support CSI images in -list-images
2022-03-10 21:17:06 -08:00
Nikhil Sharma
edfd8cba54 made independent test cases ginkgo.It for checking connectivity 2022-03-11 09:02:17 +05:30
Kubernetes Prow Robot
c5f7ceb26c
Merge pull request #108581 from pacoxu/image-docker-hub-fix
migrate nginx to k8s.gcr.io image
2022-03-10 16:19:07 -08:00
Steve Kuznetsov
ff8fbc2d37
test/integration: use a context with a deadline for streaming
Without such a context, this test would hang without data for 10
minutes, then panic.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:55 -08:00
Steve Kuznetsov
a843239ec3
test/integration: use a known previous resourceVersion
ResourceVersion values are opaque and math should not be done on them.
The intent of this test was to watch from a resourceVersion before the
moment where the objects were created, and we can find such a version by
listing from the API server before the tests begin.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:36 -08:00
Kubernetes Prow Robot
425ff1c8e2
Merge pull request #108500 from SergeyKanzhelev/grpcsupportInAgnHost
add the grpc-health-checking to agnhost
2022-03-10 13:05:07 -08:00
Steve Kuznetsov
305652a432
conformance: do not parse resourceVersion
This test wishes to observe a watch event. In order to do this in the
past, the test chose a well-known `Service` object, fetched it, and did
arithmetic on the returned `resourceVersion` in order to start a watch
that was guaranteed to see an event. It is not valid to parse the
`resourceVersion` as an integer or to do arithmetic on it, so in order
to make the test conformant to an appropriate use of the API it now:

 - creates a namespace
 - fetches the current `resourceVersion`
 - creates an object
 - watches from the previous `resourceVersion` that was read

This ensures that an event is seen by the watch, but uses the publically
supported API.

`ConfigMap`s are used instead of `Service`s as they do not require a
valid `spec` for creation and make the test terser.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 09:46:04 -08:00
Claudiu Belu
720ffb826a tests: Updates the should delete a collection of pods test
We should wait for all 3 pods after we've spawned them, instead of
spawning and waiting for them sequentially.
2022-03-10 08:32:50 -08:00
Kubernetes Prow Robot
9e5efebb4c
Merge pull request #108563 from ipochi/imran/update-e2e-lock-contention-test-to-remove-restart-kubelet
Remove the restart kubelet check from the test.
2022-03-09 21:49:35 -08:00
Kubernetes Prow Robot
b90bddfd9f
Merge pull request #108204 from kevindelgado/field-validation-crd-unit-tests
Field validation CRD benchmarks and decoder unit tests
2022-03-09 20:01:35 -08:00
Paco Xu
f2930ec98b revert change in imports: ide auto-change to make import-boss verify green 2022-03-10 10:20:59 +08:00
Kubernetes Prow Robot
4763d75290
Merge pull request #108598 from chendave/remove_testcases
Remove the legacy Nginx testcases
2022-03-09 13:56:12 -08:00
Dave Chen
09e47291c7 Rename variable error to err
`error` is the keywork in golang

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:39:34 +08:00
Dave Chen
85dfca3e16 Remove the legacy Nginx testcases
Those testcases does't work anymore after nginx-ingress controller
has been upgraded to v1.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:38:07 +08:00
Paco Xu
b03e27af1b migrate dockerhub image to k8s.gcr.io e2e test image 2022-03-09 09:54:11 +08:00
Kubernetes Prow Robot
19935de5a9
Merge pull request #107410 from margocrawf/master
Ensure static certs in kubeconfig override exec plugin
2022-03-08 11:34:21 -08:00
Bartłomiej Wróblewski
b2e2fb8d89 Make daemon.NodeShouldRunDaemonPod function public 2022-03-08 11:32:17 +00:00
carlory
fcc282f9f2 remove audit.k8s.io/v1[alpha|beta]1 versions 2022-03-08 14:37:26 +08:00
Margo Crawford
f015fd66ce Check whether static cert is already configured in UpdateTransportConfig
- Also update test-cmd.sh to pass a signing ca to the kube controller
  manager, so CSRs work properly in integration tests.

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2022-03-07 13:54:32 -08:00
Kubernetes Prow Robot
f93be6584e
Merge pull request #108426 from deads2k/e2e-check
add resource enablement check for e2e tests of beta APIs
2022-03-07 11:34:26 -08:00
David Eads
8ab8d05cc4 add resource enablement check for e2e tests of beta APIs 2022-03-07 13:31:37 -05:00
Ravi Gudimetla
72a62f47f7 Wire context for cert controllers
All the controllers should use context for signalling termination of communication with API server. Once kcm cancels context all the cert controllers which are started via kcm should cancel the APIServer request in flight instead of hanging around.
2022-03-07 10:19:45 -05:00
Patrick Ohly
df1d1cc263 e2e: support CSI images in -list-images
It was possible to patch images in the YAML files via KUBE_TEST_REPO, but it
was not possible to know in advance which images might be needed. Now
-list-images also includes all images referenced by the
test-manifest/storage-csi YAML files.
2022-03-07 15:03:16 +01:00
Imran Pochi
5ef0be2f58 Remove the restart kubelet check from the test.
Upon reconsidering as to the purpose of the test i.e to test the lock
contention flags (--lock-file-contention and --lock-file), it makes
sense that we test only the actual functionality which is the kubelet
should stop once there is a lock contention.

In no way it is the responsiblity of the kubelet to restart, which would
be the responsiblity of a higher system such as systemd.

Hence the removal of the check for releasing the lock and checking for
whether the kubelet is healthy again or not seem out of scope from
kubelet's responsiblities.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2022-03-07 18:51:07 +05:30
Kubernetes Prow Robot
ad46b4f921
Merge pull request #108457 from ialidzhikov/cleanup/target-ram-mb
apiserver: Remove the deprecated `--target-ram-mb` flag
2022-03-07 02:38:53 -08:00
Claudiu Belu
87123c49a0 tests: Enables a few Conformance tests for Windows
Some of these tests could not be run previously, especially on Windows
Docker containers. But now, by using Windows Containerd, we can finally
run them:

- HostNetwork=true tests: This can now be enabled on Windows Privileged Containers.
- /etc/hosts related tests: These were not supported because it required single
  file mappings, which is possible in Containerd.
- termination message as non-root user: Requires RunAsUsername, and single file
  mappings.
2022-03-06 09:36:39 -08:00
Kubernetes Prow Robot
3775ac6d19
Merge pull request #108535 from Abirdcfly/master
fix some typo
2022-03-05 22:46:52 -08:00
Abirdcfly
2005110090 fix some typo
Change-Id: I211f572555e964581214a5d726ac552676c9833a
2022-03-05 23:25:52 +08:00
Kubernetes Prow Robot
546e4fa1ef
Merge pull request #107771 from sanposhiho/fix-tiny
make scheduler_perf stable
2022-03-04 17:22:52 -08:00
Kubernetes Prow Robot
422b867d45
Merge pull request #108514 from dims/avoid-dockerhub-for-nginx-pull-kubernetes-e2e-gce
Avoid dockerhub for nginx (fix for only pull-kubernetes-e2e-gce)
2022-03-04 15:35:30 -08:00
Sergey Kanzhelev
2012358e39 add the grpc-health-checking to agnhost 2022-03-04 21:29:55 +00:00
Davanum Srinivas
2fd5d18570
Avoid dockerhub for nginx (fix for only pull-kubernetes-e2e-gce)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-04 14:03:18 -05:00
Kubernetes Prow Robot
0a3470a68d
Merge pull request #107135 from ruquanzhao/removegenericScheduler
Scheduler: Remove genericScheduler and SchedulerAlgorithm.
2022-03-04 08:20:52 -08:00
Ruquan Zhao
f1a5b6ca06 Remove genericScheduler and SchedulerAlgorithm.
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2022-03-04 13:26:46 +08:00
Jordan Liggitt
7895fbd45d Restore wait loop to integration test 2022-03-03 21:33:01 -05:00
Patrick Ohly
ff5558edc3 test: support storage tests with non-standard kubelet root directory
Some storage tests deploy DaemonSets which hard-code /var/lib/kubelet as root
directory for kubelet registration and pod directory. There was already a
parameter which allowed specifying the root directory, just with a very
confusing name ("--volume-dir") and matching field name. A --kubelet-root-dir
parameters gets added because this may make it easier to find the parameter,
with the old name preserved as an alias for the same field for backwards
compatibility.
2022-03-03 12:34:18 +01:00
Antonio Ojea
b0600c630d integration: run tests in eachs own process 2022-03-03 08:19:14 +01:00
ialidzhikov
bdbc750129 apiserver: Remove the deprecated --target-ram-mb flag
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2022-03-02 18:52:46 +02:00
Kubernetes Prow Robot
4737127b57
Merge pull request #108429 from dims/allow-env-var-to-be-remote-url
Allow KUBE_TEST_REPO_LIST to be a remote url as well
2022-03-02 08:07:16 -08:00
Kubernetes Prow Robot
88f9728339
Merge pull request #108309 from zshihang/token
no auto-generation of secret-based service account token
2022-03-02 06:19:15 -08:00
Stephen Heywood
5597b0c4fb Promote replace podtemplate e2e test to Conformance 2022-03-02 10:33:02 +13:00
Davanum Srinivas
6f3765b731
Allow KUBE_TEST_REPO_LIST to be a remote url as well
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-01 13:44:51 -05:00
Antonio Ojea
2660ac8a6d integration framework: log number of leaked goroutines 2022-03-01 15:31:13 +01:00
ZhangKe10140699
34c90a4014 Add pod status info log for e2e creating pods 2022-03-01 18:20:47 +08:00
Piotr Betkier
13c3f091a7 Small review fixes 2022-03-01 09:24:26 +01:00
Piotr Betkier
50200dc54f Add e2e test for HPA behavior: decreased downscale stabilization 2022-03-01 09:24:26 +01:00
Kubernetes Prow Robot
77f6476d34
Merge pull request #108327 from SergeyKanzhelev/unused_jenkins_files
two files not being used any longer
2022-02-28 19:43:46 -08:00
Kubernetes Prow Robot
1cc8edb838
Merge pull request #108286 from ii/replace-pod-template
Write replaceCoreV1NamespacedPodTemplate test - +1 endpoint coverage
2022-02-28 17:11:46 -08:00
Kubernetes Prow Robot
2c91952fcf
Merge pull request #106486 from Ahmed-Aghadi/codeEnhanceNode
test/e2e/node + test/e2e/scheduling: improve checks
2022-02-28 11:17:46 -08:00
AHMED AGHADI
ff0a3009db Improve checks for test/e2e/node and test/e2e/scheduling 2022-02-28 23:44:21 +05:30
Abu Kashem
b0b460921b
Revert "Merge pull request #107797 from tkashem/revert-107456"
This reverts commit 83ca745412, reversing
changes made to 1c216c6ec8.
2022-02-27 13:40:28 -05:00
Stephen Heywood
522b9b3de2 Create e2e replace pod template test
The test validates the following endpoint
- replaceCoreV1NamespacedPodTemplate
2022-02-25 15:28:15 +13:00
Kubernetes Prow Robot
3213a92802
Merge pull request #108341 from zshihang/gce
bump kube-addon-manager image version to 9.1.6
2022-02-24 16:19:55 -08:00
Kubernetes Prow Robot
d3ece70f0b
Merge pull request #108269 from kerthcet/refactor/rename-schedulercache-to-cache
refactor: rename SchedulerCache to Cache in Scheduler
2022-02-24 14:46:13 -08:00
Shihang Zhang
5ee418b4c7 bump kube-addon-manager image version to 9.1.6 2022-02-24 14:13:01 -08:00
sanposhiho
4c3a1000c7 fix by gofmt 2022-02-25 00:23:01 +09:00
Kubernetes Prow Robot
7588a82bdb
Merge pull request #108293 from chendave/upstream_gopath
e2e: Embed DNS related maninfests into codebase
2022-02-24 01:19:33 -08:00
Sergey Kanzhelev
3f9df1423f two files not being used any longer 2022-02-24 08:03:31 +00:00
kerthcet
eafbaad9f7 refactor: rename SchedulerCache to Cache in Scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 09:47:21 +08:00
Kubernetes Prow Robot
2fcdbd098c
Merge pull request #107993 from deads2k/simplify
prevent enabling beta by default for new api groups
2022-02-23 16:03:35 -08:00
Kubernetes Prow Robot
77eb1a03df
Merge pull request #94637 from liggitt/namespace-before-admission
set/validate object namespace before admission
2022-02-23 14:35:58 -08:00
Shihang Zhang
fb6c727fde no auto-generation of secret-based service account token 2022-02-23 14:17:30 -08:00
Kubernetes Prow Robot
6d1c9a98ef
Merge pull request #108104 from pbetkier/autoscaling-e2e-resource-consumer-fix
e2e: Fix ResourceConsumer unstable request interval
2022-02-23 11:45:57 -08:00
David Eads
1afcc31b1b add integration test to prevent new beta APIs from being enabled by default 2022-02-23 13:51:43 -05:00
sanposhiho
1080c2d717 Make scheduler_perf stable 2022-02-24 01:29:38 +09:00
Jordan Liggitt
92422a7305 set/validate object namespace before admission 2022-02-23 11:12:27 -05:00
Dave Chen
cee132b197 Remove couple of variables to simplify the code
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-02-23 17:17:27 +08:00
Dave Chen
d5775aef5e e2e: Embed dns related maninfests into codebase
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-02-23 17:16:50 +08:00
Kubernetes Prow Robot
5211a4b214
Merge pull request #103061 from SergeyKanzhelev/removeAlphaRuntimeClass
Remove RuntimeClass feature gate and stop serving older versions of RuntimeClass
2022-02-22 19:08:18 -08:00
Kubernetes Prow Robot
44241bacca
Merge pull request #108239 from Abirdcfly/master
delete redundant characters in comment
2022-02-22 13:25:16 -08:00
Kubernetes Prow Robot
86945d7e74
Merge pull request #107431 from justaugustus/rel-mgr
OWNERS(releng): Reconcile existing Release Managers
2022-02-22 11:39:16 -08:00
Sergey Kanzhelev
06ee2969ef do not serve node.k8s.io, version v1alpha1 2022-02-22 18:30:24 +00:00
Kubernetes Prow Robot
bda996e6a7
Merge pull request #107105 from justaugustus/go118
golang: Update to go1.18rc1
2022-02-21 07:46:15 -08:00
Stephen Augustus
946cc66220
test/{images,utils/image}/OWNERS: Alpha-sort reviewers/approvers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-21 08:37:29 -05:00
Wojciech Tyczyński
f3d56369f7 Unify merge GetToList and List storage methods to single GetList 2022-02-21 12:52:05 +01:00
Abirdcfly
5da98dedb4 delete redundant characters in comment
Change-Id: Id49d6266f76d2e242880f25cfa2b591bcef1b5ff
2022-02-21 13:51:53 +08:00
Stephen Augustus
93295000af
golang: Update to go1.18rc1
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-20 21:16:26 -05:00
Abdullah Gharaibeh
8a1c70b48c Graduate PodAffinityNamespaceSelector to GA 2022-02-18 12:07:29 -05:00
Kubernetes Prow Robot
2078864d08
Merge pull request #106671 from wzshiming/test/e2e-graceful-node-shutdown-based-on-pod-priority
Fix flaky test - when gracefully shutting down with Pod priority should be able to gracefully shutdown pods with various grace periods
2022-02-17 22:32:26 -08:00
Kubernetes Prow Robot
8a6439d2b1
Merge pull request #108129 from ahg-g/ahg-suspend
Graduate SuspendJob to GA
2022-02-17 19:36:23 -08:00
Shiming Zhang
102a669ca1 Fix flaky test 2022-02-18 09:39:46 +08:00
Kubernetes Prow Robot
23ccbafdf1
Merge pull request #104334 from ipochi/imran/re-revert-lock-contention-tests
Revert #104308 to bring back LockContention tests
2022-02-17 17:20:25 -08:00
Kevin Delgado
a72f24d33c start CRD integration benchmarks 2022-02-18 01:04:51 +00:00
Kubernetes Prow Robot
3d4f59416e
Merge pull request #108192 from SergeyKanzhelev/no-docker-install-needed
remove docker installation from startup scripts
2022-02-17 15:01:33 -08:00
Kubernetes Prow Robot
3e60727f75
Merge pull request #108174 from stevekuznetsov/skuznets/transformer-context
storage: transformers: pass a context.Context
2022-02-17 09:45:37 -08:00
Steve Kuznetsov
27312feb99
storage: transformers: pass a context.Context
When an envelope transformer calls out to KMS (for instance), it will be
very helpful to pass a `context.Context` to allow for cancellation. This
patch does that, while passing the previously-expected additional data
via a context value.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-02-17 08:31:31 -08:00
Sergey Kanzhelev
19a01fa8c6 remove docker installation from everywhere 2022-02-17 08:02:13 +00:00
Kevin Delgado
df2768123d
FieldValidation tests for endpoints apiserver and benchmarks for integration tests (#107848)
* wip, working post-strict-yaml

* wip, merge-patch and json-patch tests added

* added SMP tests

* cleanup

* add benchmarks

* more detailed test failure message

* start adding field validation integration benchmarks

* use valid input for benchmarking

* fix remaining integration benchmarks

* benchmarking feedback

* fix endpoints benchmarking

* remove unused vars
2022-02-16 21:19:49 -08:00
Ciprian Hacman
3834761187 Remove unused --dockershim-checkpoint-dir e2e.test flag
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-16 15:34:28 +02:00
Kubernetes Prow Robot
a06e272124
Merge pull request #108127 from neolit123/1.24-fix-e2e-kubeadm-unversioned-kubelet-cm-defaults
test/e2e_kubeadm: fix matching UnversionedKubeletConfigMap defaults
2022-02-16 00:43:38 -08:00
Kubernetes Prow Robot
1fa888529e
Merge pull request #107533 from neolit123/1.24-update-master-label-taint
kubeadm: apply "master" label/taint migration for 1.24
2022-02-15 21:44:36 -08:00
Kubernetes Prow Robot
a37b6fc8b4
Merge pull request #108138 from liggitt/v1beta1-selector
Revert v1beta1 PodDisruptionBudget selector patchStrategy to pre-1.21 behavior
2022-02-15 16:25:18 -08:00
Jordan Liggitt
33fc0b9651 Add PDB selector patch integration test 2022-02-15 14:45:22 -05:00
Lubomir I. Ivanov
2fba7c8ade test/e2e_kubeadm: fix matching UnversionedKubeletConfigMap defaults
The kubeadm defaults in features.go differ between versions.
e2e_kubeadm tests cannot import the kubeadm features.go,
or easily detect the versioned of the kubeadm binary used
to create the cluster.

Check for the existence of both versioned and unversioned
objects independent of the value of the FG. Once the FG
goes GA only the unversioned objects should be checked.

Without this change kubeadm e2e skew tests will fail where kubeadm
is at 1.24 (has the FG defaulted to true), the FG is not
explicitly set by the user and the k8s version is at 1.23.
2022-02-15 18:38:44 +02:00
Abdullah Gharaibeh
b2d2ec9e76 Graduate SuspendJob to GA 2022-02-15 10:46:13 -05:00
Kubernetes Prow Robot
d12787bc2c
Merge pull request #104698 from weiwenli97/windows_node_reboot
Add Windows node reboot
2022-02-15 02:34:02 -08:00
Kubernetes Prow Robot
d899c39ca3
Merge pull request #108111 from yselkowitz/nfs-provisioner-v3
test: bump nfs-provisioner to 3.0.1
2022-02-14 23:32:02 -08:00
Kubernetes Prow Robot
e42e2e877f
Merge pull request #107527 from wojtek-t/remove_selflink_ga
Graduate RemoveSelfLink to Stable
2022-02-14 19:46:02 -08:00
Kubernetes Prow Robot
64e83a7e43
Merge pull request #107945 from saschagrunert/cri-verbose
Add support for CRI `verbose` fields
2022-02-14 17:58:12 -08:00
Kubernetes Prow Robot
4e30fe40df
Merge pull request #108093 from hakman/remove_e2e_flag_container-runtime
Remove unused `--container-runtime` e2e.test flag
2022-02-14 14:04:31 -08:00
Kubernetes Prow Robot
1ae7da0b68
Merge pull request #108109 from eddiezane/ez/update-sig-cli-owners
Update sig-cli OWNERS
2022-02-14 12:06:30 -08:00
Yaakov Selkowitz
f44fdaca07 test: bump nfs-provisioner to 3.0.1
This is the first version built for multiple architectures.
2022-02-14 14:02:38 -05:00
Kubernetes Prow Robot
d374c954de
Merge pull request #108027 from neolit123/1.24-update-unversioned-kubelet-cm-fg
kubeadm: switch UnversionedKubeletConfigMap to true
2022-02-14 10:59:52 -08:00
Eddie Zaneski
040d575e9f
Update sig-cli OWNERS
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-02-14 10:55:35 -07:00
Wojciech Tyczyński
b62774f2f7 Couple remaining SelfLink references cleanup 2022-02-14 18:35:54 +01:00
Piotr Betkier
4c9d3d522f e2e: Fix ResourceConsumer unstable request interval
Setting a new consumption target in autoscaling.ResourceConsumer caused
the internal sleep duration between consumption requests to reset.
The next consumption would then get delayed, starting after a gap of 0-30s.
2022-02-14 13:08:17 +01:00
Kubernetes Prow Robot
b591acca57
Merge pull request #108047 from wojtek-t/fix_event_update
Fix validation of event updates
2022-02-14 02:27:28 -08:00
Wojciech Tyczyński
41ee6a3e44 Remove selflink integration tests 2022-02-14 11:11:56 +01:00
Kubernetes Prow Robot
21c0f6f6ff
Merge pull request #107677 from pohly/scheduler-integration-benchmark
scheduler integration benchmark improvements
2022-02-14 01:23:28 -08:00
Ciprian Hacman
7d5afb322d Remove unused --container-runtime e2e.test flag
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-14 08:49:56 +02:00
Matthias Bertschy
931f227ec1 Replace dbus-send with godbus for fake PrepareForShutdown message 2022-02-13 13:54:12 +01:00
Marko Mudrinić
980406f083
Update Go to 1.17.7
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-02-12 13:06:08 +01:00
Patrick Ohly
e1e84c8e5f scheduler_perf: run with -v=0 by default
This provides a mechanism for overriding the forced increase of the klog
verbosity to 4 when starting the apiserver and uses that for the scheduler_perf
benchmark. Other tests run as before.

A global variable was used because adding an explicit parameter to several
helper functions would have caused a lot of code churn (test ->
integration/util.StartApiserver ->
integration/framework.RunAnAPIServerUsingServer ->
integration/framework.startAPIServerOrDie).
2022-02-11 16:58:33 +01:00
Cheng Xing
b152fa9b6c Remove verult from OWNERS files 2022-02-10 18:25:38 -08:00
Wojciech Tyczyński
7314286efd Fix validation of event updates 2022-02-10 20:01:45 +01:00
Sascha Grunert
effbcd3a0a
Add support for CRI verbose fields
The remote runtime implementation now supports the `verbose` fields,
which are required for consumers like cri-tools to enable multi CRI
version support.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-02-10 17:12:26 +01:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Shu Muto
f9954d02c4 Delete test/e2e/ui/ 2022-02-10 14:48:02 +09:00
Kubernetes Prow Robot
0dcd6eaa0d
Merge pull request #103934 from boenn/tainttoleration
De-duplicate predicate (known as filter now) logic shared in kubelet and scheduler
2022-02-09 16:53:46 -08:00
Kubernetes Prow Robot
e74c42aaf2
Merge pull request #107880 from liggitt/kubectl-auth-token
Add command to request a bound service account token
2022-02-09 14:10:01 -08:00
Jordan Liggitt
19d71bb5d5 Validate and populate metadata fields in token request 2022-02-09 14:05:53 -05:00
Lubomir I. Ivanov
66a18df14c kubeadm: switch UnversionedKubeletConfigMap to true
- Graduate the feature gate to Beta and enable it by default.
- Pre-set the default value for UnversionedKubeletConfigMap
to "true" in test/e2e_kubeadm.
- Fix a couple of typos in "tolerate" introduced in the PR that
added the FG in 1.23.
2022-02-09 18:33:27 +02:00
Kubernetes Prow Robot
2047936f3f
Merge pull request #107552 from aojea/e2e_parse_misalignment
e2e test for CVE-2021-29923
2022-02-08 19:10:18 -08:00
Kubernetes Prow Robot
ab13c85316
Merge pull request #107983 from hxietkg/hxietkg/wget-for-windows
Remove option 'T' from wget on Windows
2022-02-08 12:43:01 -08:00
Kubernetes Prow Robot
24e5d1fdb7
Merge pull request #107432 from denkensk/graduate-nonpreemptingpriority-to-ga
Graduate NonPreemptingPriority to GA
2022-02-08 11:05:03 -08:00
Kubernetes Prow Robot
6ef0f3f620
Merge pull request #103642 from kerthcet/refactor/unreserve_test
refactor unreserve test
2022-02-08 02:36:53 -08:00
Alex Wang
541907334e graduate nonpreemptingpriority to ga 2022-02-08 18:11:23 +08:00
kerthcet
8243167013 refactor unreserve_test
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-08 11:37:56 +08:00
hxie
83974e4940 Remove option 'T' from wget on Windows
Command 'wget' in Windows image agnhost does not support option timeout,
this test fails:
  - should be able to up and down services
2022-02-07 00:38:07 -08:00
Patrick Ohly
c62d7407c8 scheduler_perf: dump test data when writing it failed
Occasionally, writing as JSON failed because a NaN float couldn't be
encoded. The extended log message helps understand where that comes from, for
example:

F0120 20:24:45.515745  511835 scheduler_perf_test.go:540] BenchmarkPerfScheduling: unable to write measured data {Version:v1 DataItems:[{Data:map[Average:35.714285714285715 Perc50:2 Perc90:36 Perc95:412 Perc99:412] Unit:pods/s Labels:map[Metric:SchedulingThroughput Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:27.863967530999993 Perc50:13.925925925925926 Perc90:30.06711409395973 Perc95:31.85682326621924 Perc99:704] Unit:ms Labels:map[Metric:scheduler_e2e_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:11915.651577744 Perc50:15168.796680497926 Perc90:19417.759336099585 Perc95:19948.87966804979 Perc99:20373.77593360996] Unit:ms Labels:map[Metric:scheduler_pod_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:1.1865832049999983 Perc50:0.7636363636363637 Perc90:2.891903719912473 Perc95:3.066958424507659 Perc99:5.333333333333334] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Filter]} {Data:map[Average:NaN Perc50:NaN Perc90:NaN Perc95:NaN Perc99:NaN] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Score]}]}: json: unsupported value: NaN
2022-02-07 08:59:19 +01:00
Patrick Ohly
8d44b819b3 scheduler_perf: avoid ambiguous test names
"-bench=PerfScheduling/Preemption/500Nodes" ran both the
PerfScheduling/Preemption/500Nodes and the
PerfScheduling/PreemptionPVs/500Nodes benchmark.

This can be avoided by choosing names where none is the prefix of another.
2022-02-07 08:59:19 +01:00
Patrick Ohly
259a8ad0b7 test: allow controlling etcd log level
When running an integration test that measures performance, like for example
test/integration/scheduler_perf, running etcd with debug level output is
undesirable because it creates additional load on the system and isn't
realistic.

The default is still "debug", but ETCD_LOGLEVEL=warn can be used to override
that.
2022-02-07 08:59:19 +01:00
Kubernetes Prow Robot
c1190f5aa2
Merge pull request #107935 from ravisantoshgudimetla/wire-contexts-disruption
Wire contexts to Disruption controllers
2022-02-04 10:08:13 -08:00
ravisantoshgudimetla
65ff81757d Wire contexts to Disruption controllers 2022-02-04 10:32:04 -05:00
Kubernetes Prow Robot
39931456db
Merge pull request #107740 from brianpursley/legacy-script-fixes
legacy-script.sh fixes - junit output and add missing record_command
2022-02-03 17:34:00 -08:00
Kubernetes Prow Robot
adbda068c1
Merge pull request #106015 from ahrtr/replace_ioutil_with_io_os_test
Replace ioutil with os and io for the test
2022-02-03 04:31:44 -08:00
Kubernetes Prow Robot
a5e70054bd
Merge pull request #107162 from ardaguclu/invalidate-cache-after-delete
Add manually invalidate cache documentation into delete
2022-02-02 23:51:45 -08:00
brianpursley
e120f11438 Change legacy-script.sh to produce junit output in location set by the
ARTIFACTS environment variables if KUBE_JUNIT_REPORT_DIR is not set.

Add missing record_command to a couple of tests in legacy-script.sh.

Fix some typos in /test/cmd/README.md
2022-02-02 21:51:15 -05:00
Kubernetes Prow Robot
baad1caee9
Merge pull request #107900 from smarterclayton/pr-107854
kubelet: Pods that have terminated before starting should not block startup
2022-02-02 15:51:45 -08:00
ahrtr
fe95aa614c io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
Kubernetes Prow Robot
2d0fa78f2f
Merge pull request #107915 from fromanirh/e2e-tm-cpum-check-node-allocatable
E2E: {cpu,topology} manager: improve debuggability
2022-02-02 10:40:18 -08:00
Francesco Romani
7004a718d9 e2e: node: {cpu,topo}mgr: round up test requirement
A cpu/topology manager e2e test wants to require one exclusive CPU
and a share of CPU time; let's round up the allocatable CPU requirements
(from 1 to 2) to reduce the chances of false negatives.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 15:17:09 +01:00
Francesco Romani
c92d9f7974 e2e: node: {cpu,topo}mgr: don't assume cpu capacity >= 2
Even though CI machines _usually_ have at least two cpus,
let's rather not assume this holds true, and let's actually
check the allocatable CPUs, skipping even the simplest
tests if the assumption is broken, to avoid false negatives.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 15:17:05 +01:00
Francesco Romani
2d1503dae3 e2e: node: {cpu,topo}mgr: make logic on allocatable
The existing cpu/topology manager tests correctly check for the
node resources and skip if the detected resources are not enough
to run the tests, to avoid false negatives.

Unfortunately they do the check against the node capacity, while
the correct approach is to check the allocatable resources.
The existing check is correct only on a narrow set of cases;
otherwise can still lead to false negatives.

This PR fixes that.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 14:10:46 +01:00
Francesco Romani
60585da68f e2e: node: {cpu,top}omgr: report node capacity/allocatable
Make sure to log out the cpu capacity and allocatable for
the node running the tests, to make the troubleshooting
of test failures easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 14:10:44 +01:00
Mike Miranda
c6d903eb27 Increase timeout for initial /stats/summary validation 2022-02-02 06:17:44 +00:00
Gunju Kim
7c3dd0eb7b
Add an e2e test for updating a static pod while it restarts 2022-02-01 13:22:56 -05:00
Jyoti Mahapatra
a1b52fb17a
extend sa token if audience is apiserver (#105954)
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com>
2022-01-31 16:01:52 -08:00
Kubernetes Prow Robot
1c03e36f9a
Merge pull request #107869 from justinsb/e2e_feature_must_be_square_bracketed
e2e: Feature tags must be in square brackets
2022-01-30 17:38:23 -08:00
Tim Hockin
e927ce85b6 service REST: Call Decorator(old) on update path
This is causing a bug when upgrading from older releases to 1.23 because
of Service's maybe-too-clever default-on-read logic.

Service depends on `Decorator()` to be called upon read, to
back-populate old saved objects which do not have `.clusterIPs[]` set.
This works on read, but the cache saves the pre-decorated type (as it is
documented)

In 1.23, this code was refactored and it seems some edge-case handling
was inadvertently removed (I have not confirmed exactly what happened).

Test by aojea
2022-01-30 11:25:17 -08:00
justinsb
a905d7bfaf e2e: Feature tags must be in square brackets
Otherwise the feature regexes that we use don't detect them.

This was relatively hidden because we don't have many e2e tests that
test multizone.
2022-01-30 13:10:04 -05:00
James Sturtevant
760b2e4477 Remove unsupported Windows SAC images from tests
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-01-28 10:59:37 -08:00
Kubernetes Prow Robot
83ca745412
Merge pull request #107797 from tkashem/revert-107456
Revert "Merge pull request #107456 from tkashem/apf-ssa"
2022-01-27 23:14:30 -08:00
Kubernetes Prow Robot
1c216c6ec8
Merge pull request #107777 from hxietkg/hxietkg/windows-numberofworkers-3
Increase number of workers to 3 for Windows
2022-01-27 20:50:30 -08:00
Kubernetes Prow Robot
f03c06ad57
Merge pull request #107796 from alexanderConstantinescu/agnhost-x-forwarded-for
Add request header retrieval to `agnhost netexec`
2022-01-27 04:54:25 -08:00
Alexander Constantinescu
0abaf68651 Add request header retrieval to agnhost netexec
Signed-off-by: Alexander Constantinescu <aconstan@redhat.com>
2022-01-27 12:52:15 +01:00
Kubernetes Prow Robot
3f6793de48
Merge pull request #107786 from shiftstack/fqdn_hostname_comparison
Ensure the execHostnameTest() compares hostnames
2022-01-27 00:58:02 -08:00
Kubernetes Prow Robot
2593f5ba17
Merge pull request #107794 from Jefftree/revert-107765-ssa-integration-enable
Revert "Populate OpenAPI in all integration tests"
2022-01-26 14:28:49 -08:00
Abu Kashem
8fb3333863
Revert "Merge pull request #107456 from tkashem/apf-ssa"
This reverts commit 6faa4f0010, reversing
changes made to 33a2c50bce.
2022-01-26 13:54:26 -05:00
Kubernetes Prow Robot
ea80a4581e
Merge pull request #107768 from mmiranda96/fix/stats-summary-timeout
Extend deadline for /stats/summary test
2022-01-26 10:40:00 -08:00
Jeffrey Ying
ecb9b620fe
Revert "Populate OpenAPI in all integration tests" 2022-01-26 13:30:03 -05:00
Martin André
363ad4c3b3 Ensure the execHostnameTest() compares hostnames
We do not have guarantee that the agnhost's `/hostname` endpoint returns
a hostname and not an FQDN. We also do not have guarantee a hostname
gets passed to the execHostnameTest() function for comparison.

So make sure we're comparing hostnames in execHostnameTest().
2022-01-26 11:16:18 +01:00
Martin André
5f809703a6 Revert "Fix comparison between FQDN and hostname"
This reverts commit 752a532c3d.
2022-01-26 11:09:27 +01:00
Kubernetes Prow Robot
25697c4812
Merge pull request #107753 from srikiz/fix-ingress-path-tests
fix ingress path for tests when ingress controller is already running
2022-01-26 01:30:25 -08:00
Kubernetes Prow Robot
dbb5e3fe86
Merge pull request #107663 from hakman/remove_container-runtime_test_scripts
Clean up logic for deprecated flag --container-runtime in scripts
2022-01-25 22:30:25 -08:00
Arda Güçlü
43d8b3459b Add manually invalidate cache documentation into delete
When CRDs are deleted, discovery local cache is not invalidated.
This brings about `resource not found` error when new CRD with same name is created
with different fields(ie. changing scope from cluster-wide to namespaced).
Because this already deleted CRD still stays in serverresources.json and kubectl tries to use it.

This local cached files have 10 minutes TTL. After deletion, if user waits 10 minutes,
files will be expired and deleted and there will be no errors. However, 10 minutes is a long time
and cache needs to be invalidated after deletion occurs.

This PR adds a document into delete command by noting that there might be a need to invalidate discovery
cache when CRD is deleted. In addition to that this PR adds a test to catch this behavior.
2022-01-26 09:01:46 +03:00
hxie
56382ddf16 Increase number of workers to 3 for Windows
Number of workers was set to be 1 because prallel probing on Windows is
flakier, network policy tests may get stuck, this symptom disappears on
the newest kubernetes, network poicy tests run very well with 3 workers.
2022-01-25 21:32:21 -08:00
Kubernetes Prow Robot
cd117abf19
Merge pull request #107763 from smarterclayton/wait_for_kuberoot_ca
e2e: Wait for kube-root-ca.crt to be created
2022-01-25 19:20:45 -08:00
Kubernetes Prow Robot
dee90598d2
Merge pull request #107525 from hxietkg/hxietkg/support-udp-for-windows
Support UDP test for netwpol on windows
2022-01-25 19:20:38 -08:00
Kubernetes Prow Robot
38e9a29620
Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
Remove dynamic kubelet config
2022-01-25 19:20:25 -08:00
Kubernetes Prow Robot
6a1de6b686
Merge pull request #107765 from Jefftree/ssa-integration-enable
Populate OpenAPI in all integration tests
2022-01-25 18:18:37 -08:00
Kubernetes Prow Robot
482f905d57
Merge pull request #107745 from pacoxu/cleanup-fail-earlier
fail if the runtime/kubelet process is not fetched
2022-01-25 18:18:26 -08:00
Mike Miranda
99e27b0f37 Extend deadline for /stats/summary test 2022-01-26 00:07:00 +00:00
Kubernetes Prow Robot
6e25590494
Merge pull request #107066 from acumino/cleanup/codeduplication
remove code duplication
2022-01-25 14:35:42 -08:00
Jefftree
eb8f6fe0f9 Populate OpenAPI in all integration tests 2022-01-25 14:16:31 -08:00
Kubernetes Prow Robot
1f05c78350
Merge pull request #107700 from sanposhiho/fix-error-log-namespace-not-found
Create namespace for Pod not to occur error log of namespace not-found
2022-01-25 13:34:05 -08:00
Clayton Coleman
b4aa9a189e
e2e: Wait only for the service account
Now that projected service account tokens do not require the secret
to be created, exclude the wait condition on the token and simply
wait for the service account.
2022-01-25 14:23:31 -05:00
Clayton Coleman
1608fc5e88
e2e: Wait for kube-root-ca.crt to be created
The change from service account secrets to projected tokens and
the new dependency on kube-root-ca.crt to start pods with those
projected tokens means that e2e tests can start before
kube-root-ca.crt is created in a namespace. Wait for the default
service account AND the kube-root-ca.crt configmap in normal
e2e tests.
2022-01-25 14:23:31 -05:00
Kubernetes Prow Robot
804630ed24
Merge pull request #107636 from kerthcet/refactor/initRegistryAndConfig
refactor initRegistryAndConfig function
2022-01-25 10:20:30 -08:00
kerthcet
fdaea59465 refactor initRegistryAndConfig function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-26 01:16:13 +08:00
sanposhiho
d8840405e2 Create namespace for Pod not to occur error log of namespace not-found 2022-01-26 00:39:12 +09:00
srikiz
b4dd9cb388 incorporate review comments 2022-01-25 20:11:12 +05:30
srikiz
430b8e6981 fix ingress path when validating webhook for ingress is in place while tests are running 2022-01-25 18:56:47 +05:30
Paco Xu
e71353c942 fail if the runtime/kubelet process is not fetched 2022-01-25 17:43:51 +08:00
Kubernetes Prow Robot
321b411784
Merge pull request #107088 from joejulian/dry-run-metadata
strip dry-run metadata unwanted fields
2022-01-24 14:31:15 -08:00
Wenli Wei
a2e0beb44b Adding reboot node testcase 2022-01-24 22:26:35 +08:00
acumino
13b6b2d92d remove code duplication 2022-01-23 17:30:51 +05:30
Kubernetes Prow Robot
2a2b294c99
Merge pull request #107644 from liggitt/integration-test-user-groups
Fix up integration test user groups
2022-01-22 04:17:52 -08:00
Lubomir I. Ivanov
8641897057 e2e/framework/test_context: add "control-plane" to non-blocking-taints
Having only the "master" taint in the list of non-blocking taints
blocks kubeadm / kind clusters from migrating to applying
both the "control-plane" and "master" taints in 1.24.
Add "control-plane" to the list of taints.

Leave TODO to cleanup the "master" taint in 1.25+.
It has to be removed either way as part of the inclusive
language cleanup efforts.
2022-01-21 14:12:49 +02:00
Kubernetes Prow Robot
c175418281
Merge pull request #107065 from saikat-royc/fix-node-stage-path
change node staging path for csi driver to PV agnostic
2022-01-21 01:31:58 -08:00
Saikat Roychowdhury
4a07657845 e2e test 2022-01-20 22:59:29 +00:00
Kubernetes Prow Robot
6faa4f0010
Merge pull request #107456 from tkashem/apf-ssa
apf: change controller to use SSA for patches
2022-01-20 13:44:29 -08:00
Ciprian Hacman
d01e9cedb1 Clean up logic for deprecated flag --container-runtime in scripts
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-20 11:19:08 +02:00
Imran Pochi
6071f6e8ab Addressing review comments
This commit is to be squashed and merged with the first commit.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2022-01-20 11:45:22 +05:30
Sergey Kanzhelev
7e7bc6d53b remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
Abu Kashem
d9f4d6507b
apf: change controller to use SSA for patches 2022-01-19 14:56:53 -05:00
Jordan Liggitt
57e0c5969b Fix integration test authenticators to include AllAuthenticated group 2022-01-19 13:21:05 -05:00
Kubernetes Prow Robot
e9e669aa60
Merge pull request #107276 from jlsong01/fix_flake_TestQuotaLimitService
Fix flake on TestQuotaLimitService
2022-01-19 09:38:05 -08:00
Lubomir I. Ivanov
1affaf42da test/e2e_kubeadm: update label/taint e2e tests for 1.24
- Reword old "master" label to "Legacy"
- Add new "control-plane" label
- Use new label to count CP nodes
- Check for both taints on CP nodes
- Leave TODOs for 1.25
2022-01-19 18:28:37 +02:00
Kubernetes Prow Robot
657146e775
Merge pull request #107572 from MikeSpreitzer/add-flowschema-condition-test
Test isolation among FlowSchemaStatus Conditions
2022-01-19 06:34:06 -08:00
jlsong01
3006aa534b fix flake on TestQuotaLimitService 2022-01-19 21:58:57 +08:00
Kubernetes Prow Robot
4def789949
Merge pull request #107548 from lzhecheng/fix-topology-hint-test
Fix topology hints test
2022-01-19 00:26:18 -08:00
Zhecheng Li
9292742821 Fix topology hints test
* It should check one Node in a zone instead of
each Node and its fromZone.
* Check Nodes' CPUs if they are equivalent

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
2022-01-19 10:33:26 +08:00
Kubernetes Prow Robot
6989e2169f
Merge pull request #107564 from aojea/funnyips_etcd_data
integration test: API allow IPs with leading zeros
2022-01-18 17:18:05 -08:00
hxie
ac0f2e48ad Support UDP test for netwpol on windows 2022-01-18 17:02:18 -08:00
Kubernetes Prow Robot
32f83b2b60
Merge pull request #107595 from wzshiming/test/skip_not_found_cmd
Skip tests when no signal emitting command
2022-01-18 16:14:05 -08:00
Varsha Teratipally
94ff5ea1f1 change default container-runtime-endpoint to containerd.sock 2022-01-18 22:00:31 +00:00
Kubernetes Prow Robot
ba1fc6f83c
Merge pull request #107612 from palnabarun/releng/go-update
[go] update to Go 1.17.6
2022-01-18 12:02:34 -08:00
Kubernetes Prow Robot
feb758027c
Merge pull request #106907 from cyclinder/remove_dockershim_flags
Clean up dockershim flags in the kubelet
2022-01-18 09:09:09 -08:00
Nabarun Pal
77816bd9b1
[go] update to Go 1.17.6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-01-18 14:35:24 +05:30
Antonio Ojea
ea130181a3 test integration: API allow IPs with leading zeros 2022-01-18 09:45:54 +01:00
Mike Spreitzer
23af47395b Test isolation among FlowSchemaStatus Conditions 2022-01-17 15:43:37 -05:00
Shiming Zhang
00790153b2 Skip tests when no signal emitting command 2022-01-17 16:03:28 +08:00
Kubernetes Prow Robot
8815a3119c
Merge pull request #107517 from mason1kwok/removes-test-skiper
Removes code that was not completely cleared before
2022-01-16 09:03:28 -08:00
Kubernetes Prow Robot
a4931cc411
Merge pull request #107551 from wojtek-t/remove_unused_selflink_test_references
Remove unused selflink references in different testing-related files
2022-01-14 16:49:40 -08:00
Jiahui Feng
c56bbda368 fix containers order after applying
to be appending instead of prepending.
2022-01-14 11:15:54 -08:00
Antonio Ojea
ac9eec0093 e2e test for CVE-2021-29923
The e2e test checks that the component implementing Kubernetes Services
interprets ClusterIPs with leading zeros as decimal, otherwise the
cluster will be exposed to CVE-2021-29923.
2022-01-14 16:58:29 +01:00
Kubernetes Prow Robot
4e1306ca79
Merge pull request #107540 from dims/validate-owners-files-remove-sections-on-emeritus-reviewers
Validate OWNERS files - remove sections about emeritus reviewers
2022-01-14 07:03:50 -08:00
cyclinder
07999dac70 Clean up dockershim flags in the kubelet
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-14 16:02:50 +02:00
Wojciech Tyczyński
551790729f Remove selflink references in different testing-related files 2022-01-14 12:58:05 +01:00
Kubernetes Prow Robot
e95eda5213
Merge pull request #107528 from sayaoailun/test-e2e-apps-cronjob
It is weird that lastScheduleTime is earlier than creationTime
2022-01-13 21:14:27 -08:00
Davanum Srinivas
8d43d0bc24
Validate OWNERS files - remove sections about emeritus reviewers
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-13 20:40:01 -05:00
Kubernetes Prow Robot
3bd422dc76
Merge pull request #107293 from dims/jan-1-owners-cleanup
Cleanup OWNERS files - Jan 2021 Week 1
2022-01-13 10:30:30 -08:00
mason1kwok
5307ae7159 cleanup code from critical_pod_test 2022-01-13 14:44:05 +08:00
sayaoailun
f2d585e356 It is weird that lastScheduleTime is earlier than creationTime
Signed-off-by: sayaoailun <guojianwei007@126.com>
2022-01-13 14:07:38 +08:00
Kubernetes Prow Robot
dad0c48959
Merge pull request #106594 from pohly/log-benchmark
logs: add benchmark
2022-01-12 18:01:08 -08:00
Kubernetes Prow Robot
8c69e5d25b
Merge pull request #107361 from wzshiming/test/skip
Skip tests when no signal emitting command
2022-01-12 14:21:38 -08:00
Kubernetes Prow Robot
5bfc4286ee
Merge pull request #106943 from wojtek-t/graduate_watch_resumption_to_ga
Graduate EfficientWatchResumption feature to GA
2022-01-12 06:06:36 -08:00
sayaoailun
36697d2e5d fix comment of e2e test case garbage_collector
Signed-off-by: sayaoailun <guojianwei007@126.com>
2022-01-12 10:59:13 +08:00
Kubernetes Prow Robot
f8bb35d76e
Merge pull request #107448 from saschagrunert/apparmor-e2e
Fix AppArmor unloaded profile e2e test
2022-01-11 12:23:15 -08:00
Kubernetes Prow Robot
9cb26b7a07
Merge pull request #107472 from alculquicondor/patch-3
Remove skip Multi-AZ test based on provider
2022-01-11 10:49:09 -08:00
Kubernetes Prow Robot
8f453c9d79
Merge pull request #107044 from pohly/cli-invalid-command
cli: avoid logging command line errors in more cases
2022-01-11 09:46:37 -08:00
Kubernetes Prow Robot
d05e5c0e41
Merge pull request #107408 from awels/allow_greater_or_equal_capacity_in_provisioning_check
Allow greater or equal in storage provisioning check
2022-01-11 08:33:28 -08:00
Aldo Culquicondor
3f0de6b80e
Remove skip Multi-AZ test based on provider
The test only cares if there are multiple zones and that is independent of the provider
2022-01-11 10:38:41 -05:00
fengzixu
f202164c87 fix e2e test 2022-01-11 13:50:17 +00:00
fengzixu
ed7fd0ced5 add volumeHealth label to metrics 2022-01-11 13:50:17 +00:00
fengzixu
bab1755274 fix: correct metrics expression 2022-01-11 13:50:17 +00:00
Patrick Ohly
a5a241e0df logs: update expected output for multi-line test case
The multiline support has been merged while this benchmark was written. We now
get the output that we want, with line breaks.
2022-01-11 09:57:03 +01:00
Patrick Ohly
25c646cbdd json: never call fsync for stdout or stderr
We don't need to worry about data loss once the data has been written to an
output stream. Calling fsync unnecessarily has been the reason for performance
issues in the past.
2022-01-11 09:56:22 +01:00
Patrick Ohly
9a867c555c logs: benchmark write performance
The recent regression https://github.com/kubernetes/kubernetes/issues/107033
shows that we need a way to automatically measure different logging
configurations (structured text, JSON with and without split streams) under
realistic conditions (time stamping, caller identification).

System calls may affect the performance and thus writing into actual files is
useful. A temp dir under /tmp (usually a tmpfs) is used, so the actual IO
bandwidth shouldn't affect the outcome. The "normal" json.Factory code is used
to construct the JSON logger when we have actual files that can be set as
os.Stderr and os.Stdout, thus making this as realistic as possible.

When discarding the output instead of writing it, the focus is more on the rest
of the pipeline and changes there can be investigated more reliably.

The benchmarks automatically gather "log entries per second" and "bytes per
second", which is useful to know when considering requirements like the ones
from https://github.com/kubernetes/kubernetes/issues/107029.
2022-01-11 09:56:22 +01:00
Patrick Ohly
b8501fc10b logs: work around logcheck
logcheck complains:
Additional arguments to ErrorS should always be Key Value pairs. Please check if there is any key or value missing.

That check is intentional, but not applicable here. The check can be worked
around by calling the functions through variables.
2022-01-11 09:56:22 +01:00
Patrick Ohly
072859c967 logs: create separate test/integration directory
The benchmark depends on k8s.io/api (for v1.Container). Such a dependency is
not desirable for k8s.io/component-base/logs, even if it's just for
testing. The solution is to create a separate directory where such a dependency
isn't a problem.

The alternative, a separate package with its own go.mod file under
k8s.io/component-base/logs wouldd have been more complicated to maintain (yet
another go.mod file and different whitelisted dependencies).
2022-01-11 09:56:22 +01:00
Patrick Ohly
798bdab3d0 kubectl: add integration test for result reporting
This currently covers two cases:
- "kubectl list" (the regression from https://github.com/kubernetes/kubernetes/issues/107012)
- "kubectl get pods/no-such-pod" (no particular reason except that the output
should be deterministic)

In contrast to some other tests that check for strings inside the
output (run_deprecated_api_tests) or compare after
sorting (run_kubectl_version_tests), stdout, stderr and the return code must
match exactly.

This ensures that there is no extra, unexpected output and that the right
output stream is used.
2022-01-11 09:04:56 +01:00
Kubernetes Prow Robot
ca4af7a981
Merge pull request #104716 from sanposhiho/feature/scheduler_perf/unused-template-params
test/integration/scheduler_perf: check for unused template parameters
2022-01-10 16:21:16 -08:00
Antonio Ojea
742dd6b9c7 use a community owned domain for the invalid registry 2022-01-10 19:37:46 +01:00
Patrick Ohly
a5d2d6fec3 cli: let kubectl handle error printing
cli.Run was an attempt to elliminate error handling in Kubernetes
commands. However, it had to rely on heuristics that are not necessarily right
for all commands.

kubectl is one example which has its own error printing code that should be
used in all cases after a command failure. It now gets used also for
`--warnings-as-errors`. Previously, that caused the following message to be
logged at the end:

  E0110 16:56:01.987555  202060 run.go:120] "command failed" err="1 warning received"

Now it ends with:

 error: 1 warning received
2022-01-10 17:09:30 +01:00
Davanum Srinivas
9682b7248f
OWNERS cleanup - Jan 2021 Week 1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-10 08:14:29 -05:00
Alexander Wels
8e29bb0454
Update test/e2e/storage/testsuites/provisioning.go
Add missing brackets

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2022-01-10 07:00:21 -06:00
Alexander Wels
59dcddae47
Update test/e2e/storage/testsuites/provisioning.go
Add missing brackets.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2022-01-10 07:00:03 -06:00
Sascha Grunert
fcca81aeae
Fix AppArmor unloaded profile e2e test
With the removal of the kubelet AppArmor profile validation in
https://github.com/kubernetes/kubernetes/pull/97966 we passed the
responsibility of the desired behavior to the container runtime.
Therefore we have to change the e2e test which silently broke after the
PR merge.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-01-10 13:22:11 +01:00
zk
fb372d0798 Update etcdRequestLatency metrics bucket size 2022-01-09 23:45:09 +08:00
Kubernetes Prow Robot
559091ba4f
Merge pull request #107339 from andrewsykim/internal-traffic-policy-external-name-validation
Add Service integration tests for internalTrafficPolicy when Type=ExternalName
2022-01-09 02:47:12 -08:00
Kubernetes Prow Robot
d2c9456963
Merge pull request #106287 from Dragoncell/update_cadvisor_version
update cadvisor version in test
2022-01-08 15:50:19 -08:00
Jiaming Xu
d6d63b44fa update cadvisor version in test
update NodePrePullImageList

fix conflicts

fix conflicts

remove script

add cadvisor as dependency

address comments
2022-01-07 22:29:12 +00:00
Alexander Wels
2102769c14 Allow greater or equal in storage provisioning check
The current check enforces that a dynamic provisioner creates
persistent volumes of capacity equals to the persistent volume
claim request size. However there are provisioners that will
create persistent volumes with a capacity greater than the
request size (cinder comes to mind which increments in 1Gi
increments, so if you request 0.5Gi, you get 1Gi). Also
provisioners that have shared storage should be reporting the
total space not the request size (nfs/hostpath for instance).

All these will fail the provisioning check currently because
the capacity is > than the request size. This modifies the check
to be capacity >= request size.

Signed-off-by: Alexander Wels <awels@redhat.com>
2022-01-07 08:29:13 -06:00
Kubernetes Prow Robot
595bc88f17
Merge pull request #107392 from johngmyers/ipv6-echoserver
Support IPv6 in echoserver
2022-01-06 18:50:35 -08:00
Kubernetes Prow Robot
1007fb9e95
Merge pull request #107338 from bostrt/e2e-check-multi-zone
Skip tests unless multizone
2022-01-06 18:50:28 -08:00
Joe Julian
60c1d58d02
remove unwanted values returned from dry-run
Remove the uid and the resourceVersion from dry-run results per kep 576

https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values
2022-01-06 15:44:05 -08:00
Joe Julian
48994c1518
add test to dry-run for unwanted generated values
[kep 576, dry
run](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values), states:

```
The UID and the generated name would have a different value in a dry-run and non-dry-run creation. These values will be left empty when performing a dry-run.
```

and

```
ResourceVersion will also be left empty on creation
```

This tests ensures this behavior.
2022-01-06 15:08:09 -08:00
Kubernetes Prow Robot
858895da81
Merge pull request #103252 from pacoxu/defer-fix
custom-metrics: do cleanup even if the creation is not full succeed
2022-01-06 12:50:00 -08:00
Kubernetes Prow Robot
8c9837ed0f
Merge pull request #106624 from Ahmed-Aghadi/codeEnhanceCommonStorage
test/e2e/common/storage: enhance assertions
2022-01-06 08:57:25 -08:00
Kubernetes Prow Robot
a18b0272e6
Merge pull request #103967 from pacoxu/probe-warning
add probe warning message body for terminated redirect
2022-01-06 08:57:01 -08:00
John Gardiner Myers
55201f9c4a Support IPv6 in echoserver 2022-01-05 21:48:25 -08:00
Shiming Zhang
3516e76f3d Skip tests when no signal emitting command 2022-01-06 11:38:36 +08:00
Kubernetes Prow Robot
1c2f24f106
Merge pull request #107349 from Riaankl/add-HPA-1
Update ineligible_endpoints.yaml to include HPA
2022-01-05 19:08:48 -08:00
Kubernetes Prow Robot
2b0ddeb23b
Merge pull request #106621 from shuheiktgw/check_private_ssh_key_existence
Check the private SSH key existence in the node e2e tests
2022-01-05 18:06:35 -08:00
Kubernetes Prow Robot
691e89a917
Merge pull request #107312 from mauriciopoppe/e2e-test-sync-before-snapshot
Execute sync before taking the snapshot
2022-01-05 14:56:11 -08:00
Kubernetes Prow Robot
e045e5c875
Merge pull request #107337 from derek-pryor/vsphere-session-leak
Fix the leak of vSphere client sessions
2022-01-05 13:54:36 -08:00
Kubernetes Prow Robot
faf1590950
Merge pull request #107179 from hakman/remove_dockershim_tests
Clean up dockershim in tests
2022-01-05 13:54:21 -08:00
Riaan Kleinhans
d42d547f0f
Update ineligible_endpoints.yaml 2022-01-06 09:52:27 +13:00
Andrew Sy Kim
aead636249 add integration test validating that converting a Service to ExternalName results in the field being dropped on read
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
9c3c3d8a3a add integration test to validate that ExternalName Services can set internalTrafficPolicy, but the field is dropped on read
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
7aa20122bc add integration test to check that Service internalTrafficPolicy is no longer defaulting when Type is ExternalName
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Kubernetes Prow Robot
adfc35d249
Merge pull request #107200 from pacoxu/test/cronjob-conflict-flake
flake: remove the error handler for cronjob integration test
2022-01-05 09:23:09 -08:00
Mauricio Poppe
50b2ec2add Execute sync before taking the snapshot 2022-01-05 01:22:22 +00:00
Kubernetes Prow Robot
84f1d6834f
Merge pull request #106619 from chendave/ga
Graduate `PreferNominatedNode` to GA
2022-01-04 15:21:19 -08:00
Robert Bost
9ab07e1814 Skip tests unless multizone 2022-01-04 15:26:11 -07:00
Kubernetes Prow Robot
710cc5c2a1
Merge pull request #106283 from SergeyKanzhelev/noMoreScalabilityTests
There are no more Feature:Performance tests any longer, removing the …
2022-01-04 13:06:26 -08:00
Kubernetes Prow Robot
2036bf0ba3
Merge pull request #106856 from pmorie/cronjob-e2e-typo
conformance: correct typo for cronjob forbidconcurrent
2022-01-04 11:27:14 -08:00
Imran Pochi
61c4732c71 Revert "Merge pull request #104308 from ehashman/revert-103608-imran/e2e-lock-contention"
This reverts commit 9d09c9d246

This E2E test was reverted becuase the test was failing continously.
More on the issue here #104307

This commit re-reverts and brings back the LockContention test, with
the addition of [Serial] tag to the test.
2022-01-04 07:34:07 +05:30
Kubernetes Prow Robot
7c013c3f64
Merge pull request #106200 from NikhilSharmaWe/betterOutputAutoscaling
Changed code to improve output for files under test/e2e/autoscaling
2021-12-29 16:30:49 -08:00
Kubernetes Prow Robot
1df88a8a42
Merge pull request #107137 from crisboarna/feat/101172_windows-sync-cleanup
chore(kubectl_utils): remove windows specifc command addition for sync
2021-12-24 04:30:15 -08:00
Paco Xu
fd099ffaf2 flake fix: remove the error handler for cronjob integration test 2021-12-23 16:50:12 +08:00
Kubernetes Prow Robot
a6299aa2ab
Merge pull request #107173 from mauriciopoppe/fix-snapshot-refactor
Fix order of commands in the snapshot tests for persistent volumes
2021-12-22 15:54:36 -08:00
Ciprian Hacman
a0abe5aa33 Clean up dockershim in tests
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2021-12-22 13:05:34 +02:00
Mauricio Poppe
028de6a8cb Fix order of commands in the snapshot tests for persistent volumes 2021-12-22 00:14:45 +00:00
Kubernetes Prow Robot
ba8410ea5f
Merge pull request #106821 from justinsb/use_non_deprecated_zone_selector
e2e: Stop using deprecated zone nodeSelector
2021-12-21 15:59:47 -08:00
Derek Pryor
70e0f8197a
Fix the leak of vSphere client sessions
Implement the test cleanup callback method to close any open vSphere
client connections. Without this clean up sessions were leaking during
testing.
2021-12-21 14:07:53 -08:00
Kubernetes Prow Robot
d76c1c56c7
Merge pull request #106831 from gxglls/master
docs: fix error link path in storage e2e test doc
2021-12-21 12:44:12 -08:00
Kubernetes Prow Robot
d56558ecaf
Merge pull request #106822 from justinsb/log_volume_when_creating_volume
e2e tests: log zone when creating volume
2021-12-21 12:44:01 -08:00
Cristian Boarna
bcb7b938a6 feat(netpol tests): added netpol probeConnectivity args improvement 2021-12-21 12:32:09 +02:00
Cristian Boarna
e755c1cf2a chore(kubectl_utils): remove windows specifc command addition for sync 2021-12-20 14:24:52 +02:00
Fabio Bertinatto
434741ecb7 Don't log vSphere configuration data in storage e2e tests 2021-12-20 09:20:57 -03:00
Kubernetes Prow Robot
62faf2cdc2
Merge pull request #106721 from aojea/apiserver_dual_service
apiserver endpoint reconciler ip families
2021-12-17 15:23:54 -08:00
Kubernetes Prow Robot
a1e8a5bf39
Merge pull request #107027 from Nordix/disable-nodeport-ga
Prepare AllocateLoadBalancerNodePorts for GA
2021-12-17 13:24:05 -08:00
Kubernetes Prow Robot
8ade75465a
Merge pull request #104799 from RyanAoh/cronjob_dev
fix the error when cleaning up finished jobs for cronjob
2021-12-17 13:23:53 -08:00
Kubernetes Prow Robot
e30e7f6861
Merge pull request #107087 from jsturtevant/remove-hostprocess-feature-flag
Remove Hostprocess flag from e2e test
2021-12-17 11:12:15 -08:00
Kubernetes Prow Robot
712745cb67
Merge pull request #106816 from Huang-Wei/fix-nnn-not-cleared
clear pod's .status.nominatedNodeName when necessary
2021-12-16 19:36:28 -08:00
Kubernetes Prow Robot
69df976769
Merge pull request #107030 from claudiubelu/tests/serial-gc-test
tests: Lowers the number of pods returned by estimateMaximumPods
2021-12-16 13:50:51 -08:00
James Sturtevant
fcb4967039 hostprocess is on by default, no longer needed 2021-12-16 13:31:52 -08:00
Wei Huang
2433b083a9
clear pod's .status.nominatedNodeName when necessary 2021-12-16 10:55:13 -08:00
Lars Ekman
1ef96752da Mark ServiceLBNodePortControl as GA 2021-12-16 16:48:58 +01:00
Paco Xu
f0e7025371 skip reduceAllocatableMemoryUsage if cgroup v2 is enabled 2021-12-16 14:46:50 +08:00
Paco Xu
65529fe6e9 add probe warning event body like 'Probe terminated redirects' 2021-12-16 13:04:51 +08:00
Kubernetes Prow Robot
522c1be4c1
Merge pull request #106648 from calvin0327/remove-dualStack-featureGate
kubeadm: cleanup the feature gate of dual-stack.
2021-12-15 17:27:18 -08:00
Kubernetes Prow Robot
1426587e08
Merge pull request #106436 from dims/cleanup-owners-files-no-activity-in-a-year
Cleanup OWNERS files (No Activity in the last year)
2021-12-15 12:07:51 -08:00
Davanum Srinivas
497e9c1971
Cleanup OWNERS files (No Activity in the last year)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-15 10:34:02 -05:00
Kubernetes Prow Robot
87a54cbd3f
Merge pull request #106313 from aojea/conformance
conformance tests should have at least 2 untainted nodes
2021-12-15 01:19:21 -08:00
Kubernetes Prow Robot
c55cc5acdf
Merge pull request #106990 from aojea/networking_scale
cap nunmber of tries on e2e nodePort stop service test
2021-12-14 09:35:46 -08:00
Kubernetes Prow Robot
c83a94da72
Merge pull request #107003 from julianvmodesto/dry-run-values
Re-introduce removed kubectl --dry-run values.
2021-12-14 03:15:46 -08:00
Wei Cao
6f45cbd7a5 create resultsDir if the folder not exists 2021-12-14 18:02:58 +08:00
Julian V. Modesto
cc4998b2b1 Re-introduce removed kubectl --dry-run values.
For 1.23, we removed the kubectl `--dry-run` empty default value (`--dry-run`)
and boolean values (`--dry-run=true` and `--dry-run=false`). This change
required requiring users to specify `--dry-run=client` or `--dry-run=server`
due to a deprecation. This change was made in #105327.

After reconsideration, this change is not worth the churn for users.
It's likely that many users rely on these values for automated and manual use
cases.

This change reverts #105327 and re-introduces the values `--dry-run`,
`--dry-run=true`, and `--dry-run=false`.
2021-12-13 15:04:49 -05:00
Kubernetes Prow Robot
e53f93c7bb
Merge pull request #105164 from ardaguclu/kubectl-diff-prune
Introduce new prune parameter into diff command
2021-12-13 11:31:58 -08:00
Antonio Ojea
cd9b22aabc apiserver endpoint reconciler ip families
The apiserver may be configured to generate the Service
kubernetes.default and its endpoints addresses.

This service is single-stack, hence, the endpoints and the ClusterIP
must have the same IP family.
2021-12-13 15:43:41 +01:00
Jordan Liggitt
0b90b6ec5e Add field paths to expected unknown/duplicate errors 2021-12-13 09:38:13 -05:00
Ciprian Hacman
574f788711 Skip LB test for IPv6 clusters 2021-12-13 11:43:06 +02:00
Antonio Ojea
a4bbf92577 cap nunmber of tries on e2e nodePort stop service test
The tests were asserting that after a NodePort Service was removed,
no new traffic was still reaching the endpoints.
However, the number of tries was so large that another test running
in parallel could create a working Service on that NodePort, making
the test fails.

Use only 10 tries to confirm that the Service stopped working.
2021-12-13 10:33:35 +01:00
Kubernetes Prow Robot
ba200841fd
Merge pull request #106366 from cyclinder/evictions_number_stable
adding evictions_total metric and marking evictions_number deprecated
2021-12-12 23:19:59 -08:00
cyclinder
b88b51c6e5 adding evictions_total metric and marking evictions_number deprecated
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-13 10:36:02 +08:00
Claudiu Belu
e68b530733 tests: Lowers the number of pods returned by estimateMaximumPods
The Conformance test "should orphan pods created by rc if delete options say so"
is spawning 80% of the Cluster's Pod Availability (on a 2 node setup, with 30 Pods
capacity each, it spawns 48 pods).

Because of this, tests that are running in parallel with this test has a higher
chance to flake, causing them to timeout because they didn't get to spawn the
necessary Pods within the expected 1 minute time.

Lowering the percentage should reduce the ammount of flakes we see.
2021-12-11 08:54:02 -08:00
Kubernetes Prow Robot
aed75bf2ed
Merge pull request #106880 from ii/promote-proxy-301-redirect
Promote Pod- & ServiceProxy Test to Conformance - +12 endpoint coverage
2021-12-10 21:31:57 -08:00
Carlos Panato
4bda9697ee
[go1.17] Update to go1.17.5
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-10 16:58:29 +01:00
Wojciech Tyczyński
b7257a4d6a Graduate EfficientWatchResumption feature to GA 2021-12-10 10:20:51 +01:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Kubernetes Prow Robot
b5a610064c
Merge pull request #106920 from neolit123/1.24-update-kubeadm-owners
kubeadm: update OWNERS for 1.24
2021-12-09 18:01:22 -08:00
Kubernetes Prow Robot
ab4448dd2f
Merge pull request #104177 from DangerOnTheRanger/e2e-resize-node-flake-fix
Fix node resizing E2E test flake
2021-12-09 18:01:11 -08:00
David Porter
95264a418d kubelet: set failed phase during graceful shutdown
Revert to previous behavior in 1.21/1.20 of setting pod phase to failed
during graceful node shutdown.

Setting pods to failed phase will ensure that external controllers that
manage pods like deployments will create new pods to replace those that
are shutdown. Many customers have taken a dependency on this behavior
and it was breaking change in 1.22, so this change reverts back to the
previous behavior.

Signed-off-by: David Porter <david@porter.me>
2021-12-09 13:17:40 -08:00
Lubomir I. Ivanov
0290eb63b6 kubeadm: update OWNERS for 1.24 2021-12-09 21:07:56 +02:00
Kubernetes Prow Robot
cdf3ad823a
Merge pull request #97252 from dims/drop-dockershim
Completely remove in-tree dockershim from kubelet
2021-12-08 12:51:46 -08:00
Kubernetes Prow Robot
c7c922cb86
Merge pull request #106764 from NikhilSharmaWe/betterOutputAPImc
Changed code to improve output for files under test/e2e/apimachinery
2021-12-08 00:44:05 -08:00
Kubernetes Prow Robot
f356ae4ad9
Merge pull request #101719 from SergeyKanzhelev/removeReallyCrashForTesting
Remove ReallyCrashForTesting and cleaned up some references to Handle…
2021-12-07 23:39:45 -08:00
Ahmed Aghadi
93d858c46e
Improve checks for test/e2e/network and test/e2e/network/netpol (#106655) 2021-12-07 22:07:56 -08:00
Kubernetes Prow Robot
68bd9994ae
Merge pull request #106833 from cpanato/go117
[go1.17] Update to go1.17.4
2021-12-07 19:28:44 -08:00
Kubernetes Prow Robot
d7f8234b6d
Merge pull request #106747 from ahg-g/ahg-test
Added an integration test for NodeResourcesFit scoring
2021-12-07 19:28:06 -08:00
Kubernetes Prow Robot
874dc871a5
Merge pull request #106676 from HecarimV/fix-typo-2021112506
fix typo in /test/integration
2021-12-07 18:27:30 -08:00
Kubernetes Prow Robot
4e00604934
Merge pull request #106641 from verult/delegate-fsgroup-disable-onrootmismatch-e2e
DelegateFSGroupToCSIDriver e2e: skip tests with chgrp
2021-12-07 18:26:59 -08:00
Kubernetes Prow Robot
793a67ec48
Merge pull request #106609 from mauriciopoppe/volume-metrics-fix-status-count-storage-e2e
Add status count to the existing storage_operation_duration_seconds histogram, remove volume_provision metric check
2021-12-07 18:26:51 -08:00
Kubernetes Prow Robot
bf5b5496a0
Merge pull request #106522 from aojea/e2e_disable_nodeport_lb
Add e2e tests for disable nodeport lb feature
2021-12-07 18:25:53 -08:00
Stephen Heywood
27a247df85 Promote pod and service Proxy e2e test to Conformance 2021-12-08 15:21:40 +13:00
Kubernetes Prow Robot
f7b6d58806
Merge pull request #106427 from verb/1.23-nit-e2e-logging
Fix format string argument mismatch in e2e framework log message
2021-12-07 17:27:03 -08:00
Kubernetes Prow Robot
19fe56cb39
Merge pull request #106322 from amacaskill/volume-source-cloning-e2e
Fix failing volume cloning e2e test for GCE PD CSI Driver
2021-12-07 17:26:33 -08:00
Kubernetes Prow Robot
4aba017280
Merge pull request #106307 from cynepco3hahue/e2e_node_fix_memory_manager_multi_NUMA
e2e_node: provide an option to specify hugepages on the specific NUMA node
2021-12-07 17:26:25 -08:00
Kubernetes Prow Robot
ec0d1edc17
Merge pull request #106233 from NikhilSharmaWe/betterOutputInstrumentation
Changed code to improve output for files under test/e2e/instrumentation
2021-12-07 17:26:18 -08:00
Paul Morie
48a84fe9c7 conformance: correct typo for cronjob forbidconcurrent 2021-12-07 16:55:03 -05:00
Davanum Srinivas
bc78dff42e
update files to drop dockershim
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-07 15:15:13 -05:00
Ziyin Lu
f1da79091f docs: fix error link path in storage e2e test doc 2021-12-06 11:25:34 -05:00
Carlos Panato
2adf0e116c
[go1.17] Update to go1.17.4
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-06 09:40:54 +01:00
justinsb
5a179f9382 e2e: Stop using deprecated zone nodeSelector
Update to the non-deprecated label names.
2021-12-04 13:34:55 -05:00
justinsb
5a3671e57b e2e tests: log zone when creating volume
Given the test failures we are encountering with zones, add the zone
to the log message when creating a zonal PV.
2021-12-04 13:08:11 -05:00
Mauricio Poppe
04805ca330 Add status count to the storage_operation_duration_seconds volume metric 2021-12-03 18:49:49 +00:00
Patrick Ohly
a39b3877e9 storage e2e: update mock deployment
These changes were created automatically with the updated update-hostpath.sh
script.
2021-12-02 16:18:26 +01:00
Patrick Ohly
48e9a39842 storage e2e: update snapshotter sidecard RBAC
The same change was already done for csi-driver-host-path master, but not
released yet because csi-snapshotter v5.0.0 itself was not ready yet.

We need this update in k/k because some canary jobs already use the new
snapshotter sidecar which causes permission issues.
2021-12-02 15:06:14 +01:00
Patrick Ohly
0605a394bf storage e2e: hostpath driver v1.7.3
This is an automatic update of the testing manifests that mirrors the v1.7.3
release. All of these changes were created with
   test/e2e/testing-manifests/storage-csi$ ./update-hostpath.sh v1.7.3
2021-12-02 15:02:57 +01:00
Amarnath Valluri
e68c9f3dec test/e2e/storage: replace mock driver with hostpath driver
This is a first step towards removing the mock CSI driver completely from
e2e testing in favor of hostpath plugin. With the recent hostpath plugin
changes(PR #260, #269), it supports all the features supported by the mock
csi driver.

Using hostpath-plugin for testing also covers CSI persistent feature
usecases.
2021-12-02 14:41:08 +01:00
Alexis MacAskill
8102bbe05a skip parallel volume cloning test for gce pd and fix disk not ready error for gce pd 2021-12-01 17:49:48 +00:00
Nikhil Sharma
0cd58b825f Changed code to improve output for files under test/e2e/apimachinery 2021-12-01 17:08:30 +05:30
Abdullah Gharaibeh
33a04dc5f5 Added an integration test for NodeResourcesFit scoring 2021-11-30 12:13:30 -05:00
Sergey Kanzhelev
a11453efbc remove ReallyCrashForTesting and cleaned up some references to HandleCrash behavior 2021-11-29 20:00:10 +00:00
calvin
d591b62b4a remove the kubeadm feature gate. 2021-11-29 18:11:02 +08:00
shuheiktgw
79484ed7b6 Check key existence in the getPrivateSSHKey function 2021-11-27 15:00:24 +09:00
HaoJie Liu
1dc1a37294
fix typo in /test/integration 2021-11-25 18:59:31 +08:00
boenn
cec2aae1e5 rebase master 2021-11-25 11:21:12 +08:00
Cheng Xing
4de40e90d4 DelegateFSGroupToCSIDriver e2e: skip tests with chgrp 2021-11-24 11:41:53 -08:00
Jordan Liggitt
88ab0d03b7 Revert "update expected ordering"
This reverts commit fbc8ac9c96.
2021-11-24 11:19:27 -05:00
Dave Chen
8609358975 Graduate PreferNominatedNode to GA
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-11-24 14:50:53 +08:00
Kubernetes Prow Robot
e53cf07724
Merge pull request #106611 from verult/delegate-fsgroup-disable-onrootmismatch-e2e
Delegate FSGroup CSI driver e2e: verify fsgroup is passed to CSI calls
2021-11-23 17:52:20 -08:00
Kubernetes Prow Robot
c3e6b66643
Merge pull request #106533 from haircommander/summary-page-fault-test
test: update major page fault values for summary test
2021-11-23 15:09:45 -08:00
AHMED AGHADI
c4c7847593 Improve checks for test/e2e/common/storage 2021-11-23 19:26:07 +05:30
shuheiktgw
db4a743b77 Check the private SSH key existence in the node e2e tests 2021-11-23 17:20:42 +09:00
Kubernetes Prow Robot
e31aafc4fd
Merge pull request #106348 from endocrimes/dani/rm-gpu
e2e_node: unify device tests
2021-11-22 19:46:16 -08:00
Cheng Xing
bca1b79728 Delegate FSGroup CSI driver e2e: verify fsgroup is passed to CSI calls using mock driver tests 2021-11-22 17:00:39 -08:00
Kubernetes Prow Robot
f572e4d5b4
Merge pull request #106518 from SergeyKanzhelev/tryProbeFix
Fix the bug with GRPC probe
2021-11-22 15:38:54 -08:00
Jonathan Lebon
3ebd93cd02 test-e2e-node: support pure SSH mode
Right now, `run_remote.go` only supports GCE instances. But actually
running the tests is completely independent of GCE and could work just
as well on any SSH-accessible machine.

This patch adds a new `--mode` switch, which defaults to `gce` for
backwards compatibility, but can be set to `ssh`. In that mode, the GCE
API is not used at all, and we simply connect to the hosts given via
`--hosts`.

This is still better than `run_local.go` because the latter mixes build
environment with test environment, which doesn't fit well with
container-optimized operating systems.

This is part of an effort to setup the e2e node tests on Fedora CoreOS
(see https://github.com/coreos/fedora-coreos-tracker/issues/990).

Patch best viewed with whitespace ignored.
2021-11-22 10:13:15 -05:00
Jonathan Lebon
591f4cdb77 run_remote.go: factor out prepareGceImages()
Mostly a pure code move. Only changed the `klog.Fatalf` to `fmt.Errorf`.
Prep for future patch.
2021-11-22 10:12:29 -05:00
Jonathan Lebon
032dbd2063 run_remote.go: move registerGceHostIP() call to testImage()
I.e. don't assume that `testHost` is called on a GCE host. Prep for
future patch.
2021-11-22 10:12:28 -05:00
Jonathan Lebon
36233b985b run_remote.go: factor out registerGceHostIP()
Prep for future patch.
2021-11-22 10:12:28 -05:00
Aohan Yang
ad4fe13528 fix the error when cleaning up jobs for cronjob 2021-11-22 17:06:22 +08:00
Jordan Liggitt
d4d34085e4 Clean up field validation test logs 2021-11-21 21:29:06 -05:00
Jordan Liggitt
8fa1c612fd Speed up field validation tests 2021-11-21 21:29:06 -05:00
Antonio Ojea
020cf2d7aa e2e disable node port on loadbalancers 2021-11-20 20:24:37 +01:00
Kubernetes Prow Robot
21d3acc787
Merge pull request #106544 from ehashman/fix-flake-restart
Deflake "Kubelet should correctly account for terminated pods after restart"
2021-11-20 00:04:59 -08:00
Kubernetes Prow Robot
9a1d90165d
Merge pull request #106462 from jpbetz/cel-e2e2
Add e2e test for CEL Validation Rules
2021-11-19 22:04:59 -08:00
Sergey Kanzhelev
f390d49e24 fix the grpc probes 2021-11-20 00:23:53 +00:00
Kubernetes Prow Robot
c82a0f8ddc
Merge pull request #106562 from SergeyKanzhelev/BumpEtcdVersion
bumpt etcd image version for e2e tests
2021-11-19 16:02:08 -08:00
Kubernetes Prow Robot
1da209faab
Merge pull request #106220 from NikhilSharmaWe/betterOutputWindows
Changed code to improve output for test/e2e/windows
2021-11-19 16:01:56 -08:00
Kubernetes Prow Robot
8f9dd0a14c
Merge pull request #105916 from kevindelgado/validation-unify-all
Server Side Strict Field Validation
2021-11-19 14:27:22 -08:00
Sergey Kanzhelev
6e591ab8ed bumpt etcd image version for e2e tests 2021-11-19 22:00:28 +00:00
Kevin Delgado
e50e2bbc88 Server Side Field Validation
Implements server side field validation behind the
`ServerSideFieldValidation` feature gate. With the
feature enabled, any create/update/patch request
with the `fieldValidation` query param set to
"Strict" will error if the object in the request
body have unknown fields. A value of "Warn"
(also the default when the feautre is enabled)
will succeed the request with a warning.

When the feature is disabled (or the query param
has a value of "Ignore"), the request will succeed
as it previously had with no indications of any
unknown or duplicate fields.
2021-11-19 21:24:36 +00:00
Elana Hashman
6ddf86d422
Set startTimeout back to 3m, restore wait loop at end of test 2021-11-19 11:30:43 -08:00
Joe Betz
0b96f53f52 Add e2e test for CEL Validation Rules 2021-11-18 21:01:40 -05:00
Kubernetes Prow Robot
9b180d8913
Merge pull request #105481 from claudiubelu/tests/e2e-prepull-images
tests: Prepull images
2021-11-18 17:22:51 -08:00
Elana Hashman
b4a8861af3
Tweak resource requests for Kubelet restart test 2021-11-18 14:57:22 -08:00
Nikhil Sharma
b75acac9df Changed code to improve output for test/e2e/windows 2021-11-19 04:06:05 +05:30
Kubernetes Prow Robot
51b94de68f
Merge pull request #105451 from claudiubelu/tests/log-pod-logs
tests: Fetch the pod logs in failed cases
2021-11-18 13:33:36 -08:00
Kubernetes Prow Robot
203d145b6a
Merge pull request #106281 from ii/promote-delete-service-collection
Promote DeleteCollection service e2e test to conformance - +1 endpoint
2021-11-18 07:47:03 -08:00
Peter Hunt
76df8acb80 test: update major page fault values for summary test
as well as use a variable instead of a constant

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-11-18 09:24:41 -05:00
Kubernetes Prow Robot
b8af116327
Merge pull request #99728 from mattcary/control
StatefulSet PVC auto-delete implementation
2021-11-18 03:37:02 -08:00
Antonio Ojea
2ea3d320b0 integration tests service node port control
When a service is created with AllocateLoadBalancerNodePorts to false
it should not allocate node ports.
If the same service is updated to set AllocateLoadBalancerNodePorts
to true, it should allocate node ports.

When a service is updated from ClusterIP type to LoadBalancer type,
and AllocateLoadBalancerNodePorts is set to false, it should not
allocate node ports.
2021-11-18 09:38:30 +01:00
Kubernetes Prow Robot
3b9bd229b2
Merge pull request #106493 from endocrimes/dani/endocrimes-test-reviewer
node e2e: endocrimes as reviewer
2021-11-17 22:41:01 -08:00
Kubernetes Prow Robot
fbffe056dd
Merge pull request #106511 from spiffxp/demote-events-test
demote kubelet events test from Conformance
2021-11-17 19:57:20 -08:00
Kubernetes Prow Robot
2062f57c00
Merge pull request #106503 from leiyiz/skip-storage-test
skip tests that uses default storage class
2021-11-17 19:57:13 -08:00
Kubernetes Prow Robot
d766ab88f7
Merge pull request #106501 from ehashman/cri-graduation-v1
Make CRI v1 the default and allow a fallback to v1alpha2
2021-11-17 19:57:01 -08:00
Kubernetes Prow Robot
91b7fb4dc9
Merge pull request #102915 from wzshiming/feat/graceful-shutdown-based-on-pod-priority
Graceful Node Shutdown Based On Pod Priority
2021-11-17 18:45:03 -08:00
Kubernetes Prow Robot
ec0d3de078
Merge pull request #106508 from aojea/flake_events
bump e2e period to wait for events
2021-11-17 16:55:16 -08:00
Matthew Cary
53b3a6c1d9 controller change for statefulset auto-delete (tests)
Change-Id: I16b50e6853bba65fc89c793d2b9b335581c02407
2021-11-17 16:48:50 -08:00
Aaron Crickenberger
357ad91d78 demote kubelet events test from Conformance
This test has been part of the Conformance suite since at least
Kubernetes 1.2 (2015-10-xx). Some years later, around 2018-10-xx, we
drafted a rigorous set of rules for tests to follow in order to be
eligible for promotion to Conformance. We explicitly disallowed any
tests that check for specific Events, since they are not an API, and we
make no guarantees about their contents nor their delivery.

Unfortunately, we neglected to go through the existing corpus of
Conformance tests with a fine-toothed comb after drafting these rules.
The very nature of what this test is attempting to exercise and verify
is specific Events, and their delivery, thus making it ineligible for
Conformance. We should have caught and demoted this test back then.

Better late than never?
2021-11-17 15:36:30 -08:00
Kubernetes Prow Robot
b657f62826
Merge pull request #106471 from jsturtevant/flake-memory-limits
Use client set to get nodes configuration
2021-11-17 15:24:54 -08:00
Antonio Ojea
d32b437b06 bump e2e period to wait for events 2021-11-17 23:46:52 +01:00
Kubernetes Prow Robot
e4952f32b7
Merge pull request #106463 from SergeyKanzhelev/grpcProbe
Implement grpc probe action
2021-11-17 12:43:54 -08:00
Léiyì Zhang
496ccc06ad skip tests that uses default storage class when there is no default storage class installed 2021-11-17 19:14:16 +00:00
Sascha Grunert
de37b9d293
Make CRI v1 the default and allow a fallback to v1alpha2
This patch makes the CRI `v1` API the new project-wide default version.
To allow backwards compatibility, a fallback to `v1alpha2` has been added
as well. This fallback can either used by automatically determined by
the kubelet.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-11-17 11:05:05 -08:00
Kermit Alexander
57b3727966 Use PodStartShort for node deletion timeout. 2021-11-17 17:40:56 +00:00
Sergey Kanzhelev
b7affcced1 implement :grpc probe action 2021-11-17 17:31:23 +00:00
Danielle Lancashire
1f04f4ecbd test/e2e/node: Add endocrimes as reviewer 2021-11-17 15:43:41 +01:00
Danielle Lancashire
e60ad8ebc6 e2e_node: add endocrimes as reviewer 2021-11-17 15:35:35 +01:00
Antonio Ojea
d126b14838 migrate nolint coments to golangci-lint 2021-11-17 13:58:53 +01:00
Hanna Lee
07a883d8e6 Remove //lint:ignore pragmas that aren't being used anymore 2021-11-17 08:56:54 +01:00
Hanna Lee
a707061828 Simplify multiplication 2021-11-17 08:56:02 +01:00
Hanna Lee
2933df3645 Fix order of operations 2021-11-17 08:56:02 +01:00
Hanna Lee
c8fde197f5 Add more //nolint:staticcheck for failures caught in PR tests 2021-11-17 08:56:02 +01:00
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
c5d6a30a7b Fix format string argument count in e2e logging 2021-11-15 13:01:25 -05: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
Nikhil Sharma
dde904b57d Changed code to improve output for files under test/e2e/instrumentation 2021-11-13 13:08:28 +05:30
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
Antonio Ojea
9723fbf3f1 conformance tests should have at least 2 untainted nodes 2021-11-10 16:32:30 +01: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
Artyom Lukianov
ba06be98e5 e2e_node: provide an option to specify hugepages on the specific NUMA node
On the multi NUMA node environment, kernel splits hugepages allocated under
/sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages file equally between NUMA nodes.
That makes it harder to predict where several pods will start because the number
of hugepages on each NUMA node will depend on the amount of NUMA nodes under the environment.
The memory manager test will allocate hugepages on the specific NUMA node to make
the test more predictable on the multi NUMA nodes environment.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-10 15:57:46 +02: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
Sergey Kanzhelev
b0c73f5f77 There are no more Feature:Performance tests any longer, removing the fallback option 2021-11-10 00:04:48 +00: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
Nikhil Sharma
02b702f706 Changed code to improve output for files under test/e2e/autoscaling 2021-11-09 22:04:02 +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
Arda Güçlü
34f0148414 Add prune test into test/cmd/diff.sh 2021-11-08 19:53:47 +03:00
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
Kubernetes Prow Robot
c2706035f2
Merge pull request #105941 from rezakrimi/issue/105861
Make some scheduler metrics stable
2021-11-04 10:06:03 -07:00
Nikhil Sharma
0316542704 Changed code to improve output for files under test/e2e/node 2021-11-04 20:09:59 +05:30
Artyom Lukianov
50fdcdfc59 e2e_node: refactor code to use a single method to update the kubelet config
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-04 15:44:35 +02:00
Artyom Lukianov
ca35bdb403 e2e_node: remove DynamicKubeletConfig tests from serial lane
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-04 15:26:19 +02:00
Artyom Lukianov
b6211657bf e2e_node: drop usage of DynamicKubeletConfig
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-04 15:26:19 +02:00
Artyom Lukianov
a5ed6c824a e2e_node: provide methods to update kubelet config via file
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-04 15:26:19 +02:00
Kubernetes Prow Robot
3b76c75831
Merge pull request #106108 from bobbypage/graceful-shutdown-test-fixes
Fixes for graceful node shutdown test
2021-11-03 23:04:04 -07:00
David Porter
ddd0d8a3da test: fixes for graceful node shutdown test
* Bump the pod status and node status update timeouts to avoid flakes
* Add a small delay after dbus restart to ensure dbus has enough time to
  restart to startup prior to sending shutdown signal
* Change check of pod being terminated by graceful shutdown. Previously,
  the pod phase was checked to see if it was `Failed` and the pod reason
  string matched. This logic needs to change after 1.22 graceful node
  shutdown change introduced in PR #102344 which changed behavior to no
  longer put the pods into a failed phase. Instead, the test now checks
  that containers are not ready, and the pod status message and reason
  are set appropriately.

Signed-off-by: David Porter <david@porter.me>
2021-11-03 18:40:26 -07:00
Kubernetes Prow Robot
662ea77c6a
Merge pull request #105996 from marosset/host-process-volume-mount-e2e
Adding e2e tests to validate volume mounts in HostProcessContainers on Windows
2021-11-03 17:24:05 -07:00
Kubernetes Prow Robot
6717bdbcd7
Merge pull request #106034 from ii/delete-service-collection
Create e2e delete service collection test - +1 endpoint
2021-11-03 15:24:39 -07:00
Kubernetes Prow Robot
8e2d7a3d64
Merge pull request #105983 from jiahuif-forks/dep/bump-smd
Upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.0
2021-11-03 15:24:32 -07:00
Mark Rossetti
5dffdfc0d5 Adding e2e tests to validate volume mounts in HostProcessContainers on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2021-11-03 14:01:53 -07:00
Kubernetes Prow Robot
4dfd739403
Merge pull request #105997 from robscott/mirroring-selector
Fixing how EndpointSlice Mirroring handles Service selector transitions
2021-11-03 12:48:32 -07:00
Kubernetes Prow Robot
29c6e83227
Merge pull request #105201 from marosset/hostprocess-command-line-tests
HostProcess e2e tests to validate command / workingDir parameters
2021-11-03 11:48:32 -07:00
Claudiu Belu
afb8569620 tests: Fetch the pod logs in failed cases
For some test failures, checking the pod logs could potentially
yield some interesting information, which could be used to further
investigate certain failures / flakes (for example, if there are some
networking issues, we could at least see if requests reach the containers,
(agnhost logs the connections / requests), or if there were any
other issues during the container's startup).
2021-11-03 11:10:26 -07:00
Kubernetes Prow Robot
a2960dc277
Merge pull request #106120 from jsafrane/fix-test-name
Fix ephemeral test description
2021-11-03 09:11:25 -07:00
Reza Karimi
bb15f02039 issue#105861: making scheduler metrics stable 2021-11-03 15:34:50 +00:00
Jan Safranek
f0bc04f169 Fix ephemeral test description
It looks like it tests two pods sharing the same volume, but the goal is
actually the opposite - two pods with the same inline volume definition
should get separate volumes.
2021-11-03 14:26:08 +01:00
Nikhil Sharma
2e1899244f Changed code to improve output for files under test/e2e/framework 2021-11-03 17:29:05 +05:30
Kubernetes Prow Robot
9af2ece18a
Merge pull request #106089 from liggitt/podsecurity-beta
PodSecurity: promote config and feature gate to beta
2021-11-02 22:22:57 -07:00
Kubernetes Prow Robot
1f8084789e
Merge pull request #105508 from claudiubelu/tests/refactor-deployments
tests: Use E2E framework deployments
2021-11-02 19:00:57 -07:00
Kubernetes Prow Robot
b489b03946
Merge pull request #105575 from endocrimes/dani/cleanup-launcher
Allow the e2e_node runner to receive a KubeletConfiguration rather than requiring flags
2021-11-02 18:00:10 -07:00
Kubernetes Prow Robot
359b722c19
Merge pull request #102882 from fromanirh/device-manager-checkpoints
devicemanager: checkpoint: support pre-1.20 data
2021-11-02 16:56:57 -07:00
Stephen Heywood
38207e460c Create e2e delete service collection test
The test validates the following endpoint
-  deleteCoreV1CollectionNamespacedService
2021-11-03 10:17:23 +13:00
Benjamin Elder
6d532084e5 removed unused test/e2e_kubeadm/runner/local/run_local.go 2021-11-02 11:53:25 -07:00
Kubernetes Prow Robot
ec8e6e8778
Merge pull request #106002 from kerthcet/feature/refactor-NodeResourcesFit-plugin
refactor scheudler's node resource plugins
2021-11-02 10:52:34 -07:00
Rob Scott
d4ebc6ff1e
Transitioning from multiple execs to reading logs 2021-11-02 10:44:47 -07:00
Jiahui Feng
fbc8ac9c96 update expected ordering
in apply test.
2021-11-02 10:00:00 -07:00
kerthcet
e5dd375b14 refactor scheudler's node resource plugins
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-11-03 00:52:23 +08:00
Kubernetes Prow Robot
d8b6dc3e06
Merge pull request #106001 from NikhilSharmaWe/betterOutputKubectl
Changed code to improve output for files under test/e2e/kubectl
2021-11-02 09:20:58 -07:00
Danielle Lancashire
4ae64bd799 e2e_node: add a default kubeletconfig fallback 2021-11-02 15:10:29 +01:00
Danielle Lancashire
a4cf3a90a2 e2e_node: support passing kubelet-config-file to local runs 2021-11-02 15:10:29 +01:00
Danielle Lancashire
6e9e436026 e2e_node: kubelet config: move to file where possible 2021-11-02 15:10:28 +01:00
Danielle Lancashire
4097a3d472 e2e_node: allow customizing the base kubeletconfig
This commit forces Kubelet Configuration files to always be generated
and when possible will use the kubeletconfig file that has been provided
by the test orchestrator
2021-11-02 15:09:56 +01:00
Danielle Lancashire
f1deb0ba2e e2e_node: remote: add kubeletconfig to archive
This commit enables the remote runner to provide a KubeletConfiguration
file to the test suite when uploading it to a remote host, thet test
runner will then use this configuration to run the Kubelet with the
provided config.
2021-11-02 15:08:39 +01:00
Danielle Lancashire
26980cf701 e2e_node: cleanup entrypoint 2021-11-02 15:08:39 +01:00
Danielle Lancashire
7dbbfe38e1 e2e_node: remote runner: junitFilePrefix -> junitFileName 2021-11-02 15:08:39 +01:00
Jordan Liggitt
01fa142ef5 PodSecurity: promote to beta 2021-11-02 09:43:24 -04:00
Kubernetes Prow Robot
2a821d787b
Merge pull request #105525 from damemi/wire-contexts-core
Wire contexts to Core controllers
2021-11-02 03:32:58 -07:00
Mark Rossetti
fa2c855ea5 batching test cases and improving logs in host-process-container command line test 2021-11-01 20:41:33 -07:00
Mark Rossetti
522bf81d83 HostProcess e2e tests to validate command / workingDir paramters
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2021-11-01 15:40:54 -07:00
Tim Allclair
6c273020d3 [PodSecurity] Avoid the LegcayRegistry for metrics serving 2021-11-01 14:23:00 -07:00
Tim Allclair
21692e1683 [PodSecurity] Add error & exemption metrics 2021-11-01 14:22:58 -07:00
Tim Allclair
e46928c0b1 [PodSecurity] Fix up metrics & add tests
Update pod security metrics to match the spec in the KEP.
2021-11-01 14:11:19 -07:00
Mike Spreitzer
154bf6aab3 Add metrics about watch counts seen by APF 2021-11-01 16:02:49 -04:00
Mike Dame
4960d0976a Wire contexts to Core controllers 2021-11-01 10:29:00 -04:00
Kubernetes Prow Robot
fc6890f902
Merge pull request #105989 from bobbypage/gpu-test-config
Fix COS GPU driver installation
2021-10-29 22:59:17 -07:00
Rob Scott
76c19a24db
Initial Topology Hints e2e Tests 2021-10-29 17:37:10 -07:00
Tim Hockin
11a25bfeb6
De-share the Handler struct in core API (#105979)
* De-share the Handler struct in core API

An upcoming PR adds a handler that only applies on one of these paths.
Having fields that don't work seems bad.

This never should have been shared.  Lifecycle hooks are like a "write"
while probes are more like a "read". HTTPGet and TCPSocket don't really
make sense as lifecycle hooks (but I can't take that back). When we add
gRPC, it is EXPLICITLY a health check (defined by gRPC) not an arbitrary
RPC - so a probe makes sense but a hook does not.

In the future I can also see adding lifecycle hooks that don't make
sense as probes.  E.g. 'sleep' is a common lifecycle request. The only
option is `exec`, which requires having a sleep binary in your image.

* Run update scripts
2021-10-29 13:15:11 -07:00
Rob Scott
794f0cb7f1
Fixing how EndpointSlice Mirroring handles Service selector transitions 2021-10-29 11:03:28 -07:00
Nikhil Sharma
a69a6aa4b5 Changed code to improve output for files under test/e2e/kubectl 2021-10-29 12:35:49 +05:30
David Porter
e1a951afe5 Fix COS GPU driver installation
* Rely on the built in GPU driver installer in COS as recommended in
  public docs - https://cloud.google.com/container-optimized-os/docs/how-to/run-gpus
* Run `nvidia-smi` after installation to verify installation
2021-10-28 17:49:50 -07:00
Kubernetes Prow Robot
c592bd40f2
Merge pull request #105609 from pohly/generic-ephemeral-volume-ga
generic ephemeral volume GA
2021-10-28 17:36:50 -07:00
James Sturtevant
d6db275cd3
[windows] Test: Check for failed sandbox pod when testing for RunAsUserName (#105943)
* Check for failed sandbox and failed workload containers

* Add test to confirm containers won't start
2021-10-28 14:04:59 -07:00
Kubernetes Prow Robot
1814c9c7fb
Merge pull request #105926 from 249043822/br-flakytest1
Fix:Flaky test] [sig-node] Kubelet should correctly account for terminated pods after restart
2021-10-28 10:20:34 -07:00
Kubernetes Prow Robot
64a5715a2d
Merge pull request #105774 from NikhilSharmaWe/betterOutput
Better output
2021-10-28 10:20:26 -07:00
Kubernetes Prow Robot
6edcb60d9f
Merge pull request #104915 from alculquicondor/job-ready
Track ready pods in Job status
2021-10-28 09:20:26 -07:00
Kubernetes Prow Robot
e450e3331f
Merge pull request #105482 from endocrimes/dani/kubeletconfig
e2e_node: remove unnecessary dynamic config changes
2021-10-28 07:04:27 -07:00
Shuanglu
9bcfa71e31
Fix Daemonset controller role missing 'update pod' permission (#104758)
* fix_dsc_rbac_pod_update

* add test for DaemonSet Controller updates label of the pod after "DedupCurHistories"

* rebase

* update parameter of dsc.Run
2021-10-28 05:24:26 -07:00
KeZhang
257efda87a Fix:Flaky test] [sig-node] Kubelet should correctly account for terminated pods after restart 2021-10-28 08:31:14 +08:00
Kenichi Omichi
db87fe139c Fix container name on NewDeployment()
The paramter is used as a container name, not an image name in the
function.
To avoid confusion, this fxies the name.
2021-10-27 22:46:11 +00:00
Kubernetes Prow Robot
00aab6312f
Merge pull request #105910 from deads2k/retry-pv-create
retry PV create in e2e-test on API quota failure
2021-10-27 15:23:09 -07:00
Nikhil Sharma
031dc016e6 Changed code to improve output for files under test/e2e/upgrades/apps 2021-10-27 11:41:18 +05:30
Kubernetes Prow Robot
fa6bb7cad0
Merge pull request #105921 from SergeyKanzhelev/setHostnameAsFQDNIsNodeConformance
setHostnameAsFQDN is a GA feature that does not depend on environment
2021-10-26 21:57:26 -07:00
Kubernetes Prow Robot
7c715dbc68
Merge pull request #105637 from Namanl2001/ssh
adding `--ssh-key` and `--ssh-user` for kubetest2
2021-10-26 16:33:45 -07:00
Kubernetes Prow Robot
0fec47582c
Merge pull request #105911 from pohly/generic-ephemeral-volume-test
volume e2e: block volume metrics fix, II
2021-10-26 10:39:30 -07:00
Patrick Ohly
194b31019d volume e2e: block volume metrics fix, II
Copying from pvcBlock swapped name and namespace (breaking the PVC test case)
and some references to the pvcBlock variable were left unchanged (incorrect
annotations for test failures).
2021-10-26 17:36:02 +02:00
David Eads
c8f87a6a24 retry PV create in e2e-test on API quota failure 2021-10-26 09:47:16 -04:00
Kubernetes Prow Robot
20ff5381ce
Merge pull request #105507 from claudiubelu/tests/refactor-daemonset
tests: Refactors daemonset utils into framework
2021-10-26 05:01:30 -07:00
Francesco Romani
b382b6cd0a node: e2e: add test for the checkpoint recovery
Add a e2e test to exercise the checkpoint recovery flow.
This means we need to actually create a old (V1, pre-1.20) checkpoint,
but if we do it only in the e2e test, it's still fine.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-26 09:55:11 +02:00
Kubernetes Prow Robot
e8fcd0de98
Merge pull request #105755 from bobbypage/npd-test-cg2
Support cgroupv2 in node problem detector test
2021-10-25 17:59:29 -07:00
Sergey Kanzhelev
cf0a387774 setHostnameAsFQDN is a GA feature that does not depend on environment 2021-10-26 00:24:12 +00:00
Kubernetes Prow Robot
fec7005de5
Merge pull request #105805 from stevekuznetsov/skuznets/fix-watch-e2e
e2e: conformance: correctly produce MODIFIED events
2021-10-25 14:38:27 -07:00
Kubernetes Prow Robot
770bc04740
Merge pull request #105878 from pohly/generic-ephemeral-volume-test
volume e2e: block volume metrics fix
2021-10-25 11:25:14 -07:00
Kubernetes Prow Robot
29552618e3
Merge pull request #105869 from ahg-g/ahg-jobtestfix
Fixes TestNodeSelectorUpdate flaky test
2021-10-25 09:38:34 -07:00
Kubernetes Prow Robot
f08ad3e0ed
Merge pull request #105273 from claudiubelu/tests/fixes-pod-collection-flake
tests: Wait for pod collection to enter a Running state
2021-10-25 07:34:23 -07:00
Abdullah Gharaibeh
74e1b07a5e Fixes TestNodeSelectorUpdate flaky test 2021-10-25 10:33:50 -04:00
Patrick Ohly
4c7a8c494e volume e2e: block volume metrics fix
The same PVC name handling as for non-block volumes is also needed for block
volumes.
2021-10-25 12:44:58 +02:00
Kubernetes Prow Robot
7fbb384e15
Merge pull request #105682 from pohly/generic-ephemeral-volume-raw-block
storage validation: accept generic ephemeral volumes as volume device
2021-10-22 18:04:50 -07:00
Kubernetes Prow Robot
54ad99f523
Merge pull request #105752 from yselkowitz/s390x-test-images
test: use newer test images for better s390x coverage
2021-10-22 11:14:54 -07:00
haichao li
679f520acc
Update glusterdynamic-provisioner to provide support for arm64 (#105754)
Signed-off-by: Haichao Li <Haichao.li@arm.com>
Change-Id: I69ca60e57cbe8cd98e4b7bb723a635c300e308dc
2021-10-22 10:10:49 -07:00
Kubernetes Prow Robot
491d9ae754
Merge pull request #94786 from ii/proxy-301-redirect
Write Pod- & ServiceProxy Test - +12 endpoint coverage
2021-10-22 10:10:37 -07:00
Kubernetes Prow Robot
14c0f84654
Merge pull request #105824 from pohly/generic-ephemeral-volume-test
storage e2e: fix volume metric test for PVC
2021-10-21 12:41:56 -07:00
Claudiu Belu
b87cc616b5 tests: Refactors daemonset utils into framework
Creates test/e2e/framework/daemonset, which contains commonly
used daemonset-related operations, deduplicating the code for it.
2021-10-21 18:54:38 +03:00
Patrick Ohly
d6aa7e321f storage e2e: fix volume metric test for PVC
The fix for the ephemeral volume
case (7538d089d5) broke the other variant with
PVC because pvc.Name is only set *after* creating the PVC.
2021-10-21 17:09:49 +02:00
Manjunath A Kumatagi
71ed83963f
Change the copyright year 2021-10-21 20:34:29 +05:30
Steve Kuznetsov
f87c712790
e2e: conformance: correctly produce MODIFIED events
The previous implementaton called Update() without changing anything
about the object, so no MODIFIED events were ever generated. This change
ensures that all calls to Update() cause mutations, thereby ensuring
that MODIFIED events happen in the watch stream.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2021-10-21 06:36:14 -05:00
Kubernetes Prow Robot
656f3752d2
Merge pull request #105659 from pohly/generic-ephemeral-volume-test
generic ephemeral volume E2E tests
2021-10-20 15:16:04 -07:00
Stephen Heywood
8e39630f40 Create e2e test for pod & service Proxy endpoints 2021-10-21 10:21:28 +13:00
Kubernetes Prow Robot
881980a5c6
Merge pull request #105490 from aojea/restclient-shared-transport
client-go: share the same transport for generated clientsets
2021-10-20 10:23:58 -07:00
Kubernetes Prow Robot
18104ecf1f
Merge pull request #105405 from verb/1.23-ec-beta
Promote EphemeralContainers to beta
2021-10-20 09:24:10 -07:00
Kubernetes Prow Robot
d5de03f0d3
Merge pull request #104551 from Elbehery/unprivileged_storage_client
[sig-storage] Run storage e2e test_client_pod as privileged
2021-10-20 05:01:58 -07:00
Patrick Ohly
c0bdf14942 storage e2e: refactor snapshottable
During PR review it was pointed out that the branches for ephemeral
vs. persistent make the test harder to read. Therefore all code that depends on
if checks gets moved into two different versions of the test, one hat runs for
ephemeral volumes and one for persistent volumes, with skip statements at the
beginning.
2021-10-20 12:40:58 +02:00
Kubernetes Prow Robot
e461ebeea0
Merge pull request #105730 from haichaoli01/test
glusterdynamic-provisioner: update to v1.3 and provide arm64 support
2021-10-20 02:53:59 -07:00
Martin Schimandl
c9edee165a
Cleanup FeatureGate skippers (#105428)
* Cleanup FeatureGate skippers

* Perform changes requested by review

* some more review related changes

* Rename skipper functions to make code more readable

* add utilfeature back in
2021-10-20 01:47:57 -07:00
Antonio Ojea
3ca2bb4443 integration test clientset share connection for custom transports 2021-10-20 06:39:39 +02:00
Kubernetes Prow Robot
b17bf879a4
Merge pull request #105697 from fromanirh/e2e-kubelet-restart-cleanups
node: e2e: clarify findKubeletService
2021-10-19 20:43:57 -07:00
Lee Verberne
40e7689f0e Move ephemeral container e2e to common 2021-10-19 23:02:09 -04:00
Lee Verberne
ba649b97b7 Add ephemeral container checks to volume e2e tests 2021-10-19 23:02:09 -04:00
Kubernetes Prow Robot
712840904a
Merge pull request #104540 from wzshiming/fix/node-shutdown-e2e
Fix nodeShutdownReason for node shutdown e2e
2021-10-19 18:39:57 -07:00
Aldo Culquicondor
68f2c892e5 Add integration tests for tracking ready Pods
Change-Id: I1f20657f4f9cd4daad73149f969bad52a33698fa
2021-10-19 15:18:37 -04:00
Kubernetes Prow Robot
c733594040
Merge pull request #105687 from alculquicondor/job-tracking
Graduate JobTrackingWithFinalizers to beta
2021-10-19 11:40:37 -07:00
Lee Verberne
6f4b8da9a3 Promote EphemeralContainers feature to beta 2021-10-19 08:47:57 -04:00
Patrick Ohly
5462d97e62 storage e2e: test snapshotting of generic ephemeral volumes
Conceptually, snapshots have to be taken while the pod and thus the volume
exist. Snapshotting has an issue where flushing of data is not guaranteed while
the volume is still staged on the node, so the test relied on deleting the pod
and checking for the volume to be unused. That part of the test cannot be done
for ephmeral volumes.
2021-10-19 14:01:21 +02:00
Patrick Ohly
7538d089d5 storage e2e: fix volume metric test for generic ephemeral volume
This is a fix for the new test case from
https://github.com/kubernetes/kubernetes/pull/105636 which had to be merged
without prior testing due to not having a cluster to test on and no pull job
which runs these
tests. https://testgrid.k8s.io/sig-storage-kubernetes#gce-serial then showed a
failure.

The fix is simple: in the ephemeral case, the PVC name isn't set in advance in
pvc.Name and instead must be computed. The fix now was tested on a kubetest
cluster in GCE.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2021-10-19 14:01:21 +02:00
Patrick Ohly
4568cdada2 storage e2e: test volume attach limits of generic ephemeral volumes
There are unit tests for this particular code path in kube-scheduler, but no
E2E tests.
2021-10-19 14:01:20 +02:00
Patrick Ohly
a90a3c6a9c storage e2e: check raw block support for generic ephemeral volumes
This adds a new test pattern and uses it for the inline volume tests. Because
the kind of volume now varies more, validation of the mount or block device is
always done by the caller of TestEphemeral.
2021-10-19 13:30:32 +02:00
Shivanshu Raj Shrivastava
3e6d122ee1
fixed using reference to loop iterator (#105433)
* fixed using reference to loop iterator

* fixed other for loops
2021-10-19 02:40:38 -07:00
Gunju Kim
0f2c94d842
NodeConformance: Respect grace period when updating static pod 2021-10-19 16:30:18 +09:00
Oleg Atamanenko
965f10f539 Upgrade etcd to 3.5.1 2021-10-18 23:09:27 -07:00
Yaakov Selkowitz
4e3f94eb41 test: use newer test images for better s390x coverage
These image versions added s390x builds via
https://github.com/kubernetes/kubernetes/pull/102785.
2021-10-18 23:00:31 -04:00
Kubernetes Prow Robot
b977200a5d
Merge pull request #102785 from yselkowitz/master
Enable more test images for s390x
2021-10-18 19:59:34 -07:00
David Porter
d28db6ee0c Support cgroupv2 in node problem detector test 2021-10-18 19:50:45 -07:00
Namanl2001
85d16760f0
adding defaultGceKey in remote/ssh.go
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 00:07:36 +05:30
elbehery
04ad18ce44 Run storage hostpath e2e test client pod as privileged
hostPath volume plugin creates a directory within /tmp on host machine, to be mounted as volume.
inject-pod writes content to the volume, and a client-pod tried the read the contents and verify.
when SELinux is enabled on the host, client-pod can not read the content, with permission denied.
running the client-pod as privileged, so that it can access the volume content, even when SEinux is enabled on the host.
2021-10-18 15:06:20 +02:00
Haichao Li
ad7bceb31b glusterdynamic-provisioner: update to v1.3 and provide arm64 support
Signed-off-by: Haichao Li <Haichao.li@arm.com>
Change-Id: I809de5eee0f4cc2865bbf89ee9ad840497185019
2021-10-18 16:23:32 +08:00
Aldo Culquicondor
2c1b3fdb5b Graduate JobTrackingWithFinalizers to beta
Enable feature by default.

Update integration tests for other features to assume that finalizers are present.

Change-Id: Ie969344f572627dba882c0e862e5700dadaf3026
2021-10-15 10:29:40 -04:00
Francesco Romani
baa55935f3 node: e2e: clarify findKubeletService
Add docstrings to findKubeletService and restartKubelet,
fix typos along the way.
xref: https://github.com/kubernetes/kubernetes/pull/105516#pullrequestreview-780230582

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-15 11:19:03 +02:00
Kubernetes Prow Robot
fe62fcc9b4
Merge pull request #105516 from fromanirh/e2e-kubelet-restart-improvements
e2e: node: kubelet restart improvements
2021-10-14 17:58:54 -07:00
Kubernetes Prow Robot
fb2556cb34
Merge pull request #105670 from pohly/restore-volume-life-cycle-check
e2e: restore volume lifecycle check for most tests, II
2021-10-14 10:50:04 -07:00
Kubernetes Prow Robot
57aaa70b2c
Merge pull request #105596 from pacoxu/subresource-remove
test fix: check correct subresource patch path
2021-10-14 10:49:48 -07:00
Kubernetes Prow Robot
dea052ceba
Merge pull request #105479 from ahg-g/ahg-mutable
Allow updating scheduling directives of suspended jobs that never started
2021-10-14 08:09:18 -07:00
Abdullah Gharaibeh
335817cbce Allow updating node affinity, selector and tolerations for suspended jobs that never started 2021-10-14 10:04:47 -04:00
Kubernetes Prow Robot
f27e4714ba
Merge pull request #105377 from damemi/wire-contexts-apps
Wire contexts to Apps controllers
2021-10-14 06:59:19 -07:00
Kubernetes Prow Robot
d09ce7be1c
Merge pull request #105563 from mengjiao-liu/go1172
[go1.17] Update to go1.17.2
2021-10-14 03:25:19 -07:00
Patrick Ohly
5378b4d220 e2e: restore volume lifecycle check for most tests, II
Besides "subPath should unmount if pod is gracefully deleted while kubelet is
down" we also need a special case for "subPath should unmount if pod is force
deleted while kubelet is down".

This fixes a test failure in https://testgrid.k8s.io/sig-storage-kubernetes#gce-serial
2021-10-14 10:59:03 +02:00
Mengjiao Liu
19e8852154 [go1.17] Update to go1.17.2 2021-10-14 16:15:51 +08:00
Kubernetes Prow Robot
548e37278c
Merge pull request #105313 from giuseppe/fix-flaky-pagefaults-summary-test
test, cgroupv2: adjust pagefaults test
2021-10-14 00:13:30 -07:00
Kubernetes Prow Robot
68f404b38f
Merge pull request #105636 from pohly/generic-ephemeral-volume-metrics-tests
storage e2e: check metrics also for generic ephemeral volumes
2021-10-13 20:27:27 -07:00
Kubernetes Prow Robot
894ceb63d0
Merge pull request #105003 from swatisehgal/getallocatable-to-beta
podresource-api: getAllocatableResources to Beta
2021-10-13 17:43:27 -07:00
Mike Dame
41fcb95f2f Wire contexts to Apps controllers 2021-10-13 16:32:13 -04:00
Patrick Ohly
3df4cc67de storage e2e: check metrics also for generic ephemeral volumes
It shouldn't make any difference, but it's better to actually test that
assumption.

All existing tests which create pods get converted by skipping the explicit PVC
creation for the ephemeral case and instead modifying the test pod so that it
has a volume claim template with the same spec as the PVC.
2021-10-12 20:29:49 +02:00
Kubernetes Prow Robot
3271dff7b4
Merge pull request #105535 from soltysh/apps_cleanup
Move test utils where they belong
2021-10-12 08:11:48 -07:00
Maciej Szulik
8322121434
Move test-related utils to test/utils 2021-10-12 14:52:19 +02:00
Dave Chen
1500a5ca80 Simplify the integration test by removing the struct of nodeConfig
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-10-12 17:46:38 +08:00
Kubernetes Prow Robot
c2cbf5ff49
Merge pull request #105509 from ravisantoshgudimetla/fix-integration
[scheduler] [test]: Fix PreferNominatedNode test
2021-10-11 20:01:46 -07:00
Kubernetes Prow Robot
f83b16d93d
Merge pull request #105052 from leiyiz/skip-storage-test
tag ginkgo tests affected by pdcsi migration for skipping
2021-10-11 13:09:02 -07:00
Patrick Ohly
a8c930ef46 generic ephemeral volume: graduation to GA
The feature gate gets locked to "true", with the goal to remove it in two
releases.

All code now can assume that the feature is enabled. Tests for "feature
disabled" are no longer needed and get removed.

Some code wasn't using the new helper functions yet. That gets changed while
touching those lines.
2021-10-11 20:54:20 +02:00
Paco Xu
abd13b131c test fix: check correct subresource patch path 2021-10-11 10:14:19 +08:00
Léiyì Zhang
822cc33955 tag ginkgo tests affected by pdcsi migration for skipping and add storageclass check for statefulset and upgrade tests 2021-10-09 17:33:56 +00:00
Claudiu Belu
76d20c5bce tests: Use E2E framework deployments
Deployments can be created easier with the NewDeployment
found in test/e2e/framework/deployment.
2021-10-09 06:11:07 -07:00
Kubernetes Prow Robot
835980ac67
Merge pull request #105424 from kerthcet/cleanup/remove-scheduler-policy-config
remove scheduler policy config
2021-10-08 10:57:23 -07:00
Kubernetes Prow Robot
76c86ce324
Merge pull request #105219 from sahilvv/ga_ttl
GA TTLAfterFinish
2021-10-08 09:38:59 -07:00
kerthcet
a6f695581b remove legacy scheduler policy config, as well as associated flags policy-config-file, policy-configmap, policy-configmap-namespace and use-legacy-policy-config
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-10-08 23:57:49 +08:00
Kubernetes Prow Robot
63f66e6c99
Merge pull request #105012 from fromanirh/cpumanager-policy-options-beta
node: graduate CPUManagerPolicyOptions to beta
2021-10-08 07:32:59 -07:00
Kubernetes Prow Robot
2face135c7
Merge pull request #97415 from AlexeyPerevalov/ExcludeSharedPoolFromPodResources
Return only isolated cpus in podresources interface
2021-10-08 05:58:58 -07:00
Kubernetes Prow Robot
60ab733932
Merge pull request #105546 from Huang-Wei/fix-evt-volumebinding
sched: adjust events to register for VolumeBinding plugin
2021-10-08 02:12:57 -07:00
Kubernetes Prow Robot
dd650bd41f
Merge pull request #105527 from rphillips/fixes/filter_terminated_pods
kubelet: set terminated podWorker status for terminated pods
2021-10-07 22:19:51 -07:00
Ryan Phillips
3982fcae64 go fmt 2021-10-07 20:13:43 -05:00
Sahil Vazirani
3988405c8d
GA TTLAfterFinish 2021-10-07 16:58:50 -07:00
Elana Hashman
c771698de3 Add e2e test to verify kubelet restart behaviour
Succeeded pods should not be counted as running on restart.
2021-10-07 18:30:17 -05:00
Kubernetes Prow Robot
956da16a8d
Merge pull request #105344 from jonyhy96/add-benchmark-test
add benchmark test for replaceRegistryInImageURLWithList
2021-10-07 14:21:32 -07:00
Francesco Romani
d15bff2839 e2e: node: expose the running flag
Each e2e test knows it wants to restart a running kubelet or a
non-running kubelet. The vast majority of times, we want to
restart a running kubelet (e.g. to change config or to check
some properties hold across kubelet crashes/restarts), but sometimes
we stop the kubelet, do some actions and only then restart.

To accomodate both use cases, we just expose the `running` boolean
flag to the e2e tests.

Having the `restartKubelet` explicitly restarting a running kubelet
helps us to trobuleshoot e2e failures on which the kubelet
was supposed to be running, while it was not; attempting a restart
in such cases only murkied the waters further, making the
troubleshooting and the eventual fix harder.

In the happy path, no expected change in behaviour.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-07 22:15:28 +02:00
Francesco Romani
e878c20ac7 e2e: node: improve error logging
In the `restartKubelet` helper, we use `exec.Command`, whose
return value is the output as the command, but as `[]byte`.
The way we logged the output of the command was as value, making
the output, meant to be human readable, unnecessarily hard to read.

We fix this annoying behaviour converting the output to string before
to log it out, making pretty obvious to understand the outcome of
the command.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-10-07 22:13:49 +02:00
Kubernetes Prow Robot
9b45983d3c
Merge pull request #104251 from ravisantoshgudimetla/scheduling-v1beta3
Scheduling v1beta3
2021-10-07 10:47:32 -07:00
Wei Huang
b7d90ca991
sched: adjust events to register for VolumeBinding plugin 2021-10-07 08:51:04 -07:00
ravisantoshgudimetla
283b176102 [test]: modify integration tests to use v1beta3 2021-10-07 10:58:07 -04:00
Swati Sehgal
5043b431b4 excludesharedpool: e2e tests: Test cases for pods with non-integral CPUs
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-07 15:39:41 +01:00
Swati Sehgal
42dd01aa3f excludesharedpool: e2e tests: code refactor to handle non-integral CPUs
This patch changes cpuCount to cpuRequest in order to cater to cases
where guaranteed pods make non-integral CPU Requests.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-07 15:39:40 +01:00
Kubernetes Prow Robot
c4d802b0b5
Merge pull request #103289 from AlexeyPerevalov/DoNotExportEmptyTopology
podresources: do not export empty NUMA topology
2021-10-07 07:11:46 -07:00
Yaakov Selkowitz
acaa24b254 Enable more test images for s390x 2021-10-07 01:25:55 -04:00
Yaakov Selkowitz
82920d99f8 Fix build of apparmor-loader test image
apparmor is no longer found in Alpine edge/testing but in
edge/community, presumably in preparation for full-fledged inclusion in
3.15.  If so, once that is released, BASEIMAGE can be updated again and
the explicit --repository flag to 'apk add' dropped.

Fixes: https://github.com/kubernetes/kubernetes/issues/105528
2021-10-07 01:25:49 -04:00
Kubernetes Prow Robot
79ee735bad
Merge pull request #105337 from Huang-Wei/pr-105303
sched: integration test to cover event registration
2021-10-06 19:53:56 -07:00
Kubernetes Prow Robot
c20ff9839e
Merge pull request #97045 from claudiubelu/tests-windows-containerd-enabled
tests: Enable some [LinuxOnly] tests for Windows Containerd
2021-10-06 19:53:45 -07:00
Wei Huang
3283e6bb72
sched: integration test to cover event registration 2021-10-06 15:17:38 -07:00
ravisantoshgudimetla
9476237923 [scheduler] [test]: Fix PreferNominatedNode test
Once the node gets deleted, the nodelifecycle controller
is racing to update pod status and the pod deletion logic
is failing causing tests to flake. This commit moves
the testContext creation to within the test loop and deletes nodes,
namespace within the test loop. We don't explicitly call the node
deletion within the loop but the `testutils.CleanupTest(t, testCtx)`
call ensures that the namespace, nodes gets deleted.
2021-10-06 09:07:16 -04:00
Swati Sehgal
9337902648 podresource: move the checkForTopology logic inline
As per the recommendation here: https://github.com/kubernetes/kubernetes/pull/103289#pullrequestreview-766949859
we move the check inline.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-06 11:31:48 +01:00
Kubernetes Prow Robot
4af19756bd
Merge pull request #105217 from dbgoytia/refactor/102787-enable-block-tests
Refactoring TestConcurrentAccessToRelatedVolumes for enabling Block Volume tests
2021-10-05 14:18:57 -07:00
Kubernetes Prow Robot
907d62eac8
Merge pull request #105462 from ehashman/merge-terminal-phase
Ensure terminal pods maintain terminal status
2021-10-05 13:12:58 -07:00
Elana Hashman
f9a827b895
Fix bugs in e2e pod test
- Update test to account for late synced statuses
- Terminated containers are not running
- Add missing format values to test logline
2021-10-05 11:51:12 -07:00
Kubernetes Prow Robot
c4c3062c07
Merge pull request #102333 from mcbenjemaa/fix/102295
Add Log statement in exec_util.go for ClientSet Creation
2021-10-05 11:21:53 -07:00
Kubernetes Prow Robot
b28bf04cd0
Merge pull request #105468 from ehashman/missing-format-values
Add missing format values to test logline
2021-10-05 09:23:40 -07:00
Kubernetes Prow Robot
b4a0342714
Merge pull request #105388 from mauriciopoppe/copy-volumesnapshotcontent-annotations
Copy VolumeSnapshotContent annotations in snapshottable.go test
2021-10-05 09:23:33 -07:00
Giuseppe Scrivano
f23e2a8c7f
test, cgroupv2: adjust pagefaults test
on cgroup v2 the reported metric is recursive and it includes all the
sub cgroups.

Closes: https://github.com/kubernetes/kubernetes/issues/105301

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-10-05 18:00:57 +02:00
Kubernetes Prow Robot
519b164db1
Merge pull request #105222 from cyclinder/remove_node_lease_GA
remove nodeLease feature GA
2021-10-05 05:41:21 -07:00
Kubernetes Prow Robot
c5ad58d8a1
Merge pull request #103372 from verb/1.22-e2e-node
Create node_e2e test for ephemeral containers
2021-10-05 05:41:09 -07:00
Danielle Lancashire
742d3d36f5 e2e_node: cleanup features in podresources 2021-10-05 14:39:59 +02:00
Danielle Lancashire
f28dd90810 e2e_node: NodeGracefulShutdown is a Beta feature 2021-10-05 14:39:59 +02:00
Danielle Lancashire
71e6d9cbe0 e2e_node: remove no-op config change from critical_pod_test 2021-10-05 10:36:32 +02:00
Danielle Lancashire
8b1b06c507 e2e_node: Remove KubeletPodResources enablement as it is a default gate 2021-10-05 10:26:10 +02:00
Author cyclinder
e61b901628 remove nodeLease feature GA
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-10-05 12:23:27 +08:00
Claudiu Belu
f7cf747e48 tests: Wait for pod collection to enter a Running state
While running tests in parallel, especially those with higher loads
than others, it might take some time for Pods to be Running, even more
so if the image has to be pulled as well.

The test [sig-node] Pods should delete a collection of pods [Conformance]
only waits for the for the pods to be scheduled before deleting them, and
expects them to be gone in 1 minute, which can flake because of the above
reasons. Note that the operations are in order, and kubelet runs them in
order, which means that the pod first has to enter the Running state
before attempting to delete it.

This commit waits for the Pods to enter the Running state first before
deleting the entire collection.

Co-Authored-By: Antonio Ojea <aojea@redhat.com>
2021-10-04 20:42:16 -07:00
Kubernetes Prow Robot
0a29e2a73a
Merge pull request #105197 from alculquicondor/job-tracking
Roll-forward: Beta requirements for JobTrackingWithFinalizers
2021-10-04 18:57:49 -07:00
Kubernetes Prow Robot
9eaabb6b2e
Merge pull request #104304 from endocrimes/dani/eviction
[Failing Test] Fix Kubelet Storage Eviction Tests
2021-10-04 15:16:40 -07:00
Kubernetes Prow Robot
70d1360ab8
Merge pull request #105103 from tkashem/extend-audit-policy
apiserver: refactor PolicyRuleEvaluator interface
2021-10-04 14:12:40 -07:00
Elana Hashman
7bbf40f1cc
Add missing format values to test logline 2021-10-04 13:44:15 -07:00
Kubernetes Prow Robot
04f747d09f
Merge pull request #104782 from kerthcet/cleanup/remove-cc-v1beta1
remove scheduler component config v1beta1
2021-10-04 08:53:08 -07:00
Lee Verberne
2a82228e33 Apply suggestions from code review
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2021-10-04 15:07:37 +02:00
Kubernetes Prow Robot
f31453fe5b
Merge pull request #104894 from pacoxu/windows-arm
add windows arm support on client-side since go 1.17 supports
2021-10-04 04:19:07 -07:00
Danielle Lancashire
7b91337068 e2e_node: eviction: Include names of pending-eviction pods in error 2021-10-04 13:07:40 +02:00
Danielle Lancashire
b5c2d3b389 e2e_node: eviction: Memory-backed Volumes seperation
This commit fixes the LocalStorageCapacityIsolationEviction test by
acknowledging that in its default configuration kubelet will no-longer
evict memory-backed volume pods as they cannot use more than their
assigned limit with SizeMemoryBackedVolumes enabled.

To account for the old behaviour, we also add a test that explicitly
disables the feature to test the behaviour of memory backed local
volumes in those scenarios. That test can be removed when/if the feature
gate is removed.
2021-10-04 13:07:40 +02:00
Danielle Lancashire
a8168ed543 e2e_node: Fix LocalStorage and PriorityLocalStorage eviction tests
Currently the storage eviction tests fail for a few reasons:
- They re-enter storage exhaustion after pulling the images during
  cleanup (increasing test storage reqs, and adding verification for
future diagnosis)
- They were timing out, as in practice it seems that eviction takes just
  over 10 minutes on an n1-standard in many cases. I'm raising these to
15 to provide some padding.

This should ideally bring these tests to passing on CI, as they've now
passed locally for me several times with the remote GCE env.

Follow up work involves diagnosing why these take so long, and
restructuring them to be less finicky.
2021-10-04 13:07:40 +02:00
Kubernetes Prow Robot
82da9bdaab
Merge pull request #105076 from pohly/log-flush-frequency-bug
initialize logging after flag parsing + refactor commands
2021-10-01 14:30:18 -07:00
Kubernetes Prow Robot
e414cf7641
Merge pull request #100482 from pohly/generic-ephemeral-volume-checks
generic ephemeral volume checks
2021-10-01 10:47:22 -07:00
Swati Sehgal
01dacd0463 podresource-api: getAllocatableResources to Beta
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-01 16:48:29 +01:00
Patrick Ohly
1e26115df5 consider ephemeral volumes for host path and node limits check
When adding the ephemeral volume feature, the special case for
PersistentVolumeClaim volume sources in kubelet's host path and node
limits checks was overlooked. An ephemeral volume source is another
way of referencing a claim and has to be treated the same way.
2021-10-01 17:03:44 +02:00
Aldo Culquicondor
95c2a8024c Parallelize pod updates in job test
To potentially reduce the number of job controller syncs.

Also reduce the maximum number of pods to sync in tests.
2021-10-01 09:55:53 -04:00
Jordan Liggitt
11c2674ec2 Fix CSR test to accept certs shorter than the requested duration 2021-10-01 09:14:54 -04:00
Kubernetes Prow Robot
1d5349df0c
Merge pull request #103359 from m14815/commit-21.6.4
Remove Redundant type conversion
2021-10-01 04:19:22 -07:00
Kubernetes Prow Robot
b15f37ef22
Merge pull request #103391 from tanjing2020/runtimeclass
[e2e] Add description of use case “storage version with non-existing id should be GC'ed” execution conditions
2021-09-30 17:29:21 -07:00
Mauricio Poppe
e89704dbb1 Copy VolumeSnapshotContent annotations in snapshottable.go test 2021-09-30 23:43:21 +00:00
Patrick Ohly
1957fb6508 command lines: harmonize command line parse error handling
The recommendation from #sig-cli was to print usage, then the error. Extra care
is taken to only print the usage instruction when the error really was about
flag parsing.

Taking kube-scheduler as example:

  $ _output/bin/kube-scheduler
  I0929 09:42:42.289039  149029 serving.go:348] Generated self-signed cert in-memory
  ...
  W0929 09:42:42.489255  149029 client_config.go:620] error creating inClusterConfig, falling back to default config: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
  E0929 09:42:42.489366  149029 run.go:98] "command failed" err="invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"

  $ _output/bin/kube-scheduler --xxx
  Usage:
    kube-scheduler [flags]

  ...
       --vmodule moduleSpec
                  comma-separated list of pattern=N settings for file-filtered logging

  Error: unknown flag: --xxx

The kubectl behavior doesn't change:

  $ _output/bin/kubectl get nodes
  Unable to connect to the server: dial tcp: lookup xxxx: No address associated with hostname

  $ _output/bin/kubectl --xxx
  Error: unknown flag: --xxx
  See 'kubectl --help' for usage.
2021-09-30 13:46:49 +02:00
Patrick Ohly
21d1bcd6b8 initialize logging after flag parsing
It wasn't documented that InitLogs already uses the log flush frequency, so
some commands have called it before parsing (for example, kubectl in the
original code for logs.go). The flag never had an effect in such commands.

Fixing this turned into a major refactoring of how commands set up flags and
run their Cobra command:

- component-base/logs: implicitely registering flags during package init is an
  anti-pattern that makes it impossible to use the package in commands which
  want full control over their command line. Logging flags must be added
  explicitly now, something that the new cli.Run does automatically.

- component-base/logs: AddFlags would have crashed in kubectl-convert if it
  had been called because it relied on the global pflag.CommandLine. This
  has been fixed and kubectl-convert now has the same --log-flush-frequency
  flag as other commands.

- component-base/logs/testinit: an exception are tests where flag.CommandLine has
  to be used. This new package can be imported to add flags to that
  once per test program.

- Normalization of the klog command line flags was inconsistent. Some commands
  unintentionally didn't normalize to the recommended format with hyphens. This
  gets fixed for sample programs, but not for production programs because
  it would be a breaking change.

This refactoring has the following user-visible effects:

- The validation error for `go run ./cmd/kube-apiserver --logging-format=json
  --add-dir-header` now references `add-dir-header` instead of `add_dir_header`.

- `staging/src/k8s.io/cloud-provider/sample` uses flags with hyphen instead of
  underscore.

- `--log-flush-frequency` is not listed anymore in the --logging-format flag's
  `non-default formats don't honor these flags` usage text because it will also
  work for non-default formats once it is needed.

- `cmd/kubelet`: the description of `--logging-format` uses hyphens instead of
  underscores for the flags, which now matches what the command is using.

- `staging/src/k8s.io/component-base/logs/example/cmd`: added logging flags.

- `apiextensions-apiserver` no longer prints a useless stack trace for `main`
  when command line parsing raises an error.
2021-09-30 13:46:49 +02:00
Kubernetes Prow Robot
bac45abf77
Merge pull request #105327 from julianvmodesto/kubectl-dry-run-flag-removals
Remove deprecated kubectl --dry-run values.
2021-09-29 13:31:21 -07:00
jonyhy
010641c849 test: add benchmark test
Signed-off-by: jonyhy <yun.hao@daocloud.io>
2021-09-29 17:46:11 +08:00
Francesco Romani
077c0aa1be node: graduate CPUManagerPolicyOptions to beta
We graduate the `CPUManagerPolicyOptions` feature to beta
in the 1.23 cycle, and we add new experimental feature gates
to guard new options which are planned in the 1.23 and in the
following cycles.

We introduce additional feature gate called `CPUManagerPolicyAlphaOptions` and
`CPUManagerPolicyBetaOptions`. The basic idea is to avoid the
cumbersome process of adding a feature gate for each option, and to have
feature gates which track the maturity level of _groups_ of options.
Besides this change, the graduation process, and the process in general,
for adding new policy options is still unchanged.

The `full-pcpus-only` option added in the 1.22 cycle is intentionally
moved into the beta policy options

For more details:
- KEP: https://github.com/kubernetes/enhancements/pull/2933
- sig-arch discussion:
  https://groups.google.com/u/1/g/kubernetes-sig-architecture/c/Nxsc7pfe5rw

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-09-29 11:40:03 +02:00
Kubernetes Prow Robot
32fefd5580
Merge pull request #105048 from mauriciopoppe/fix-double-storage-class-setup
Remove a duplicate StorageClass creation call
2021-09-28 23:36:48 -07:00
Julian V. Modesto
e0b7a85ee5 Remove deprecated kubectl --dry-run values.
The boolean values for --dry-run have been deprecated for removal since
1.18, more than 2 releases.

The default value for --dry-run with the flag set and unspecified has
been deprecated for removal since 1.18, more than 2 releases.

Both values are now removed in this change. Any kubectl --dry-run
usage no longer accepts --dry-run=(true|false) boolean values and usage
now requires that a value of (client|server|none) is specified.
2021-09-28 10:21:04 -04:00
Kubernetes Prow Robot
2ba872513d
Merge pull request #105283 from ricky-rav/dev_BZ_1997235
add NET_RAW capability to server container in "should drop INVALID conntrack entries" e2e test
2021-09-28 02:28:42 -07:00
Riccardo Ravaioli
d97a1b8d63 add NET_RAW capability to server container in "should drop INVALID conntrack entries" test
The boom-server container forges out-of-order TCP packets and injects them into the network. This requires the container to have the CAP_NET_RAW linux capability, otherwise the test will fail.

Signed-off-by: Riccardo Ravaioli <rravaiol@redhat.com>
2021-09-28 08:50:55 +02:00
kerthcet
75a255d2ed remove scheduler component config v1beta1
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-28 13:13:17 +08:00
Kubernetes Prow Robot
7c1e37ef27
Merge pull request #104803 from bobbypage/runtimeclass-skip
Skip runtimeclass test unless provider GCE
2021-09-27 12:49:45 -07:00
Kubernetes Prow Robot
48d844ec64
Merge pull request #104483 from margocrawf/master
Add UID to client-go impersonation config
2021-09-27 07:33:36 -07:00
Lee Verberne
da8ddb7485 Create node_e2e test for ephemeral containers 2021-09-27 13:13:33 +02:00
Kubernetes Prow Robot
d385d0602a
Merge pull request #105158 from justaugustus/its-a-bullseye
releng: Update build images to Debian 11 (Bullseye)
2021-09-26 23:14:23 -07:00
ishangupta-ds
4353365aa9 updated errors pkg to fmt for test/e2e/network/netopol test_helper
Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>
2021-09-26 10:50:38 +05:30
Khaled Henidak (Kal)
a53e2eaeab
move IPv6DualStack feature to stable. (#104691)
* kube-proxy

* endpoints controller

* app: kube-controller-manager

* app: cloud-controller-manager

* kubelet

* app: api-server

* node utils + registry/strategy

* api: validation (comment removal)

* api:pod strategy (util pkg)

* api: docs

* core: integration testing

* kubeadm: change feature gate to GA

* service registry and rest stack

* move feature to GA

* generated
2021-09-24 16:30:22 -07:00
Margo Crawford
d9ddfb26e1 Introduces Impersonate-Uid to client-go.
* Updates ImpersonationConfig in rest/config.go to include UID
  attribute, and pass it through when copying the config
* Updates ImpersonationConfig in transport/config.go to include UID
  attribute
* In transport/round_tripper.go, Set the "Impersonate-Uid" header in
  requests based on the UID value in the config
* Update auth_test.go integration test to specify a UID through the new
  rest.ImpersonationConfig field rather than manually setting the
  Impersonate-Uid header

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2021-09-24 14:06:30 -07:00
Diego Goytia
de969ae2bf Testing GenerateReadBlockCmd for enabling block volume tests. 2021-09-24 18:50:21 +00:00
Kubernetes Prow Robot
86d23cf441
Merge pull request #105206 from pohly/test-integration-help
test/integration: skip etcd startup for -help flag
2021-09-24 10:29:23 -07:00
Aaron Crickenberger
42a955b3ae use k8s-staging-test-infra/gcb-docker-gcloud 2021-09-24 06:54:40 -07:00
Abu Kashem
a748fdc677
apiserver: refactor PolicyRuleEvaluator to return a struct 2021-09-24 08:08:32 -04:00
Patrick Ohly
81b4a695b3 test/integration: skip etcd startup for -help flag
By parsing flags in the test's main function before starting etcd we bail out
early without ever starting etcd when the test was invoked with -help.

Otherwise etcd must be available, gets started and then hangs because
flag.Parse itself exits when called by testing.go. This bypasses the code in
EtcdMain which normally stops etcd.
2021-09-24 11:51:58 +02:00
Kubernetes Prow Robot
e5c4defa8e
Merge pull request #103370 from verb/1.22-cleanup-shareprocesses-e2e
Remove ShareProcessNamespace tags from e2e_node tests
2021-09-23 10:11:14 -07:00
Aldo Culquicondor
47a957d163 Revert "Revert "Limit number of Pods counted in a single Job sync""
This reverts commit 8bcb780808.
2021-09-23 12:56:29 -04:00
Jan Chaloupka
b3249a1b39 e2e scheduling priorities: do not reference control loop variable
Otherwise, nodeNameToPodList[nodeName] list will have all its references
identical (corresponding to the control variable reference).
Thus, making all the pods in the list identical.
2021-09-23 13:08:03 +02:00
Kubernetes Prow Robot
686379281d
Merge pull request #97665 from heqg/unused-function-NewSingleContentTypeSerializer
remove unused function of NewSingleContentTypeSerializer
2021-09-21 22:16:00 -07:00
Kubernetes Prow Robot
857d4c107c
Merge pull request #104808 from chendave/indent
Format json file with proper indentation
2021-09-21 19:14:00 -07:00
Kubernetes Prow Robot
76c0573ff4
Merge pull request #105181 from alculquicondor/revert
Revert #104739
2021-09-21 16:54:00 -07:00
Kubernetes Prow Robot
92ddd4dcd6
Merge pull request #103906 from pacoxu/unsafe-e2e-test
sysctl-test: use status reason check instead of events check
2021-09-21 15:20:18 -07:00
Aldo Culquicondor
8bcb780808 Revert "Limit number of Pods counted in a single Job sync"
This reverts commit 7d9cb88fed.
2021-09-21 15:16:50 -04:00
Kubernetes Prow Robot
40c9203472
Merge pull request #105171 from liggitt/gomodule-staticcheck
Make staticcheck package-compatible
2021-09-21 10:34:23 -07:00
Jordan Liggitt
00622da45e Make staticcheck package-compatible 2021-09-21 12:19:57 -04:00
Madhav Jivrajani
fed2ec99c6 migrate k8s.io/apimachinery/util/clock -> k8s.io/utils/clock
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-09-21 15:54:44 +05:30
Stephen Augustus
1a15eeef38
test/conformance/image: Update runner image to base-debian11
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-09-20 21:05:06 -04:00
Stephen Augustus
531eb712c2
releng: Update build images to Debian 11 (Bullseye)
- debian-base:bullseye-v1.0.0
- debian-iptables:bullseye-v1.0.0
- go-runner:v2.3.1-go1.17.1-bullseye.0
- kube-cross:v1.23.0-go1.17.1-bullseye.0
- setcap:bullseye-v1.0.0

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-09-20 20:51:32 -04:00
Kubernetes Prow Robot
c4587a62f9
Merge pull request #105143 from aojea/netexec_optional_listen
agnhost: allow to disable udp listener on netexec
2021-09-20 16:10:22 -07:00
Kubernetes Prow Robot
dde200478a
Merge pull request #105145 from aojea/fix_host_internal
avoid hostNetwork pods conflict binding UDP ports
2021-09-20 15:02:45 -07:00
Kubernetes Prow Robot
3e985b7af6
Merge pull request #104916 from pohly/storage-e2e-owners
e2e storage: update OWNERS
2021-09-20 12:46:37 -07:00
Kubernetes Prow Robot
06796b7c7c
Merge pull request #104863 from pohly/restore-volume-life-cycle-check
e2e: restore volume lifecycle check for most tests
2021-09-20 12:46:24 -07:00
Antonio Ojea
b55e6f2cd0 avoid hostNetwork pods conflict binding UDP ports
The agnhost pods using netexec will bind by default to the UDP
port 8081, use a different port for hostNetwork pods to avoid
scheduling conflicts and fail the tests.
2021-09-20 09:54:23 +02:00
Antonio Ojea
2bf38ed86b agnhost: allow to disable udp listener on netexec
There are some tests that doesn't need the UDP listener, so they
can disable it.
This is specially needed for tests that use hostNetwork pods, if 2
pods try to bind to the same port, the test will fail because one
of the pod can't be scheduled because of the port conflict.

To keep backwards compatibility, we can add an option to disable
the UDP listener by setting the port number to -1, that is consistent
with the SCTP implementation.
2021-09-20 09:44:20 +02:00
Wei Huang
d7bf9d724f
Provide a timeout function to fail quick on blocking operations
It works like the Linux `timeout` utility.
2021-09-17 10:23:06 -07:00
Kubernetes Prow Robot
399656369f
Merge pull request #104739 from alculquicondor/job-tracking
Beta requirements for JobTrackingWithFinalizers
2021-09-17 04:57:00 -07:00
Kubernetes Prow Robot
47f381ba5e
Merge pull request #105083 from MrHohn/fix-autoscaler-test-value
Fix core calculation for dns autoscaler test.
2021-09-16 20:41:01 -07:00
Wei Huang
a689ad4cda
sched: start dynamicInformerFactory along with regular informerFactory (#105016)
* sched: start dynamicInformerFactory along with regular informerFactory

* fixup: start all informers and then wait for their syncs
2021-09-16 19:33:00 -07:00
Kubernetes Prow Robot
2f10e6587c
Merge pull request #105079 from aramase/remove-dualstack-test
test(dualstack): remove should have ipv4 and ipv6 node podCIDRs test
2021-09-16 17:19:00 -07:00
Zihong Zheng
93e59220c5 Fix core calculation for dns autoscaler test.
It didn't account for the return value being a string instead of an
integer.
2021-09-16 14:26:51 -07:00
Kubernetes Prow Robot
51384aa77e
Merge pull request #104847 from smarterclayton/worker_uid_reuse
kubelet: Handle UID reuse in pod worker
2021-09-16 11:35:37 -07:00
Anish Ramasekar
9de9c99093
test(dualstack): remove should have ipv4 and ipv6 node podCIDRs test
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-09-16 18:25:20 +00:00
h4ghhh
0734820279
'New' Event namespace validate failed (#100125) 2021-09-16 04:29:45 -07:00
Mauricio Poppe
144e6432cf Remove a duplicate StorageClass creation call
The issue on both tests is that before the refactor we had a method that
was creating the `StorageClass` manifest only, this manifest was used
later to be created by `TestBindingWaitForFirstConsumerMultiPVC`, after
the refactor we're ensuring that the `StorageClass` exists as a resource
before calling `TestBindingWaitForFirstConsumerMultiPVC` however this
method is still attempting to create it, that's the reason behind the
error: `resourceVersion should not be set on objects to be created

This issue wasn't caught before because
`TestBindingWaitForFirstConsumerMultiPVC` is creating the StorageClass
without the common utility function, the solution is to remove the
snippet that attempts to create the StorageClass againo
2021-09-15 19:09:35 +00:00
Elana Hashman
47086a6623
Add test for recreating a static pod 2021-09-15 14:01:48 -04:00
atiratree
2cad64db80 add StatefulSet MinReadySeconds e2e test 2021-09-15 13:32:38 +02:00
David Porter
4b056a615a Skip runtimeclass test unless provider GCE
This test case requires special test-handler setup which is only done
for gce clusters created by kube-up scripts. Let's skip the test when
run under other providers.
2021-09-14 13:23:09 -07:00
Kubernetes Prow Robot
af551a3b22
Merge pull request #105006 from Riaankl/Riaankl-change-upper_case-to-lower_case
update ineligible_endpoints removing upper case `Endpoint` to `endpoint`
2021-09-14 11:30:05 -07:00
Kubernetes Prow Robot
c7074017f7
Merge pull request #104948 from ishangupta-ds/test-conf-update
update github.com/pkg/errors in test/conformance/image/go-runner/ with native go pkg
2021-09-14 10:21:08 -07:00
Riaan Kleinhans
e675e74ce5
update ineligible_endpoints removing upper case 2021-09-15 02:05:08 +12:00
Carlos Panato
132c7066e0
[go1.17] Update to go1.17.1
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-09-14 13:04:25 +02:00
ishangupta-ds
c6b82bddd6 removing usage of github.com/pkg/errors from test/conformance/image/go-runner/ directory
Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>

formatted using gofmt script

Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>

adding nil check for error

Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>

adding nil check for errors

Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>

formatted

Signed-off-by: ishangupta-ds <ishangupta.ds@gmail.com>
2021-09-14 08:39:00 +05:30
Kubernetes Prow Robot
047a6b9f86
Merge pull request #104874 from wojtek-t/migrate_clock_1
Unify towards k8s.io/utils/clock - part 1
2021-09-13 19:09:20 -07:00
Kubernetes Prow Robot
c79f7c1add
Merge pull request #104711 from claudiubelu/update-pause-3.6
update pause image references to use 3.6
2021-09-13 19:09:08 -07:00
Kubernetes Prow Robot
06ec11d71b
Merge pull request #104883 from aojea/service_finalizer_delete
Add integration test for Services Finalizes Racing with the Repair Loop
2021-09-13 18:01:20 -07:00
Kubernetes Prow Robot
cdcf2a239e
Merge pull request #104399 from tkashem/apf-v1beta2
apf: introduce v1beta2
2021-09-13 18:01:08 -07:00
Kubernetes Prow Robot
5cbe2656c5
Merge pull request #104978 from Riaankl/Riaankl-update-ineligible_enpoint-RBAC
Update ineligible_endpoint.yaml to include RBAC
2021-09-13 15:44:11 -07:00
Antonio Ojea
7c12daed0f move repair loop interval to a constant
use Extraconfig to configure the repair interval

and add an integration test for services finalizers, and
possible races with the services repair loop.
2021-09-13 23:54:19 +02:00
Kubernetes Prow Robot
abd83afaec
Merge pull request #104970 from PushkarJ/update-debian-iptables
Update debian-iptables to pick CVE fixes
2021-09-13 14:34:14 -07:00
Kubernetes Prow Robot
62a6df9e0b
Merge pull request #104045 from ravisantoshgudimetla/promote-minReadySec-sts-beta
Promote min ready sec sts beta
2021-09-13 14:33:50 -07:00
Kubernetes Prow Robot
caf853b596
Merge pull request #104696 from PushkarJ/bump-conformance-images
Update conformance image to use debian-base:buster-v1.9.0
2021-09-13 13:28:02 -07:00
Riaan Kleinhans
6fa2859bf5
Update ineligible_endpoint.yaml to include RBAC 2021-09-14 08:02:49 +12:00
Pushkar Joglekar
64938ea160 Update debian-iptables to pick CVE fixes
- This image has fixes for CVE-2021-3711, CVE-2021-3712
- This will allow kube-proxy to be built on newer base image
  which has fixes for these CVEs
2021-09-13 11:13:08 -07:00
Pushkar Joglekar
8ed31517ff Bump conformance images to use debian:buster-v1.9.0
- Debian base used was older (v2.1.3)  missing multiple fixed CVEs
- Minor update to distroless debian image name to explicitly point
  to debian 10
- Debian base image now points to buster-1.9.0
2021-09-13 09:22:36 -07:00
Francesco Romani
54c7d8fbb1 e2e: TM: add option to fail instead of skip
The Topology Manager e2e tests wants to run on real multi-NUMA system
and want to consume real devices supported by device plugins; SRIOV
devices happen to be the most commonly available of such devices.

CI machines aren't multi NUMA nor expose SRIOV devices, so the biggest portion
of the tests will just skip, and we need to keep it like this until we
figure out how to enable these features.

However, some organizations can and want to run the testsuite on bare metal;
in this case, the current test will skip (not fail) with misconfigured
boxes, and this reports a misleading result. It will be much better to
fail if the test preconditions aren't met.

To satisfy both needs, we add an option, controlled by an environment
variable, to fail (not skip) if the machine on which the test run
doesn't meet the expectations (multi-NUMA, 4+ cores per NUMA cell,
expose SRIOV VFs).
We keep the old behaviour as default to keep being CI friendly.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-09-13 13:23:36 +02:00
Patrick Ohly
2d2ec0e088 storage: update OWNERS and ALIASES
This removes several people who are no longer active with reviews and adds
myself as owner and reviewer.
2021-09-13 07:54:25 +02:00
Tim Hockin
d30ae6a5ab Svc REST: Make ipFamilyPolicy authoritative
Previously we would try to infer the `ipFamilyPolicy` from `clusterIPs`
and/or `ipFamilies`.  That is too tricky.  Now you MUST specify
`ipFamilyPolicy` as one of the dual-stack options in order to get a
dual-stack service.
2021-09-11 11:30:01 -07:00
Kubernetes Prow Robot
6b21e064be
Merge pull request #104917 from vinayakankugoyal/e2e
Skip externalips service tests if admission controller to deny externalip services is enabled.
2021-09-10 19:08:06 -07:00
Kubernetes Prow Robot
b47f8263e1
Merge pull request #104858 from pohly/generic-ephemeral-volume-intree-tests
e2e: enable generic ephemeral inline volume also for in-tree drivers
2021-09-10 14:49:01 -07:00
Vinayak Goyal
b3c23290b4 Skip service external ips tests if admission controller to deny externalip services is enabled. 2021-09-10 12:51:31 -07:00
Aldo Culquicondor
7d9cb88fed Limit number of Pods counted in a single Job sync
This prevents big Jobs from starving smaller ones.
2021-09-10 10:32:04 -04:00
Kubernetes Prow Robot
5261433627
Merge pull request #104606 from endocrimes/dani/device-driver-deflake
[Failing Test] Fix GPU Device Driver test in kubelet-serial
2021-09-10 04:20:00 -07:00
wojtekt
53ce79a18a Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
Paco Xu
9a2a4f1051 add windows arm support on client-side since go 1.17 supports 2021-09-10 15:42:45 +08:00
Abu Kashem
d99497ef6d
apf: update e2e test to use v1beta2 2021-09-09 08:28:58 -04:00
Abu Kashem
e2b8701545
apf: ebable v1beta2 2021-09-09 08:28:53 -04:00
Patrick Ohly
e99b945b17 e2e: restore volume lifecycle check for most tests
f1e1f3a416
disable the check to work around an issue in one test. It's better to keep the
check enabled by default and only disable it for that test.
2021-09-09 10:29:37 +02:00
Patrick Ohly
468acb7418 e2e: enable generic ephemeral inline volume also for in-tree drivers
Previously, the ephemeral volume test suite was only enabled for CSI
drivers. By splitting the test patterns into those that work for all drivers
and the one for CSI ephemeral inline volumes it becomes possible to
define the former for all drivers and the latter only for CSI.

This increases test coverage, in particular also for migration to
CSI (https://testgrid.k8s.io/provider-gcp-compute-persistent-disk-csi-driver#Migration%20Kubernetes%20Master%20Driver%20Latest).
2021-09-09 09:59:39 +02:00
Kubernetes Prow Robot
5990b3c76a
Merge pull request #104828 from leiyiz/mock_volume_flake
increasing sleep timer to 5 sec in attempt to deflake token test
2021-09-08 15:48:52 -07:00
sanposhiho
1318f74609 Fix: use Fatalf and list all unused params in one error 2021-09-09 07:34:30 +09:00
sanposhiho
6bf6e424a1 Fix: rename getParams→get 2021-09-09 07:11:36 +09:00
sanposhiho
24643c67d5 Fix: make struct un-exported 2021-09-09 07:10:37 +09:00
Léiyì Zhang
f1bfd8f8df increasing sleep timer to 5 sec 2021-09-08 21:41:31 +00:00
Antonio Ojea
3f6f63d2a8 e2e iperf2 change threshold to 10MBps = 80 Mbps 2021-09-08 18:46:04 +02:00
Dave Chen
dda8090037 Format json file with proper indentation
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-09-07 16:14:34 +08:00
Danielle Lancashire
b970bb5fe0 e2e_node: Update GPU tests to reflect reality
In older versions of Kubernetes (at least pre-0.19, it's the earliest
this test will run unmodified on), Pods that depended on devices could be
restarted after the device plugin had been removed. Currently however,
this isn't possible, as during ContainerManager.GetResources(), we
attempt to DeviceManager.GetDeviceRunContainerOptions() which fails as
there's no cached endpoint information for the plugin type.

This commit therefore breaks apart the existing test into two:
- One active test that validates that assignments are maintained across
  restarts
- One skipped test that validates the behaviour after GPUs have been
  removed, in case we decide that this is a bug that should be fixed in
  the future.
2021-09-06 19:03:15 +02:00
Kubernetes Prow Robot
eb729620c5
Merge pull request #99682 from chymy/fix-misspelling
Fix misspelling and misgrammar
2021-09-05 12:46:28 -07:00
Kubernetes Prow Robot
4aeeeffa17
Merge pull request #104458 from claudiubelu/tests/image-bumps
tests: Bumps image versions (Adds Windows Server 2022)
2021-09-05 09:20:28 -07:00
Kubernetes Prow Robot
5fb66a4c70
Merge pull request #104740 from oomichi/fix-error
Fix err of GrabFromAPIServer()
2021-09-05 07:14:28 -07:00
Kubernetes Prow Robot
4e30c058c4
Merge pull request #104290 from nak3/fix-obsolete-link
Update obsolete link in the Conformance Test doc
2021-09-05 04:02:39 -07:00
vikram Jadhav
c10c92bda9 changes made by introducing mockgen command 2021-09-03 17:40:11 +00:00
Kubernetes Prow Robot
81e41b7fc4
Merge pull request #104664 from aojea/apiserver_endpoints_conformance
fix e2e test apiserver endpoint and endpointslices
2021-09-02 18:43:49 -07:00
Kubernetes Prow Robot
4fccfb1cd7
Merge pull request #104608 from saschagrunert/typecheck-parallel
Reduce the number of parallel typechecks to `2`
2021-09-02 15:05:47 -07:00
Kenichi Omichi
c6ba451235 Fix err of GrabFromAPIServer()
If getting an error from internal funcation call, GrabFromAPIServer()
didn't return it to the caller.
This fixes it.
2021-09-02 21:31:04 +00:00
Kubernetes Prow Robot
295a8c1371
Merge pull request #104467 from khenidak/fix-104329
fix 104329: check for headless before trying to release the ClusterIPs
2021-09-02 10:55:39 -07:00
Kubernetes Prow Robot
8d707e5aae
Merge pull request #104570 from RyanAoh/cronjob_dev
integration test for cronjob with controllerv2
2021-09-02 07:42:57 -07:00
sanposhiho
cc846c9d33 Feature: check for unused template parameters 2021-09-02 01:46:34 +09:00
Kubernetes Prow Robot
9b0f560a19
Merge pull request #104391 from chendave/metric_new
Add the metric data for different extension points
2021-08-31 19:34:59 -07:00
Kubernetes Prow Robot
0f50c40cf7
Merge pull request #104677 from x13n/master
[e2e] Wait 15m after instead of before breaking nodes
2021-08-31 11:00:22 -07:00
Aohan Yang
4e190f36e3 integration test for cronjob with controllerv2 2021-08-31 21:15:10 +08:00
Daniel Kłobuszewski
9808dd9a03 Wait 15m after instead of before breaking nodes
15m is enough for Cluster Autoscaler to remove empty nodes, so we need
to break them sooner than that. Instead, wait 15m after breaking them to
ensure Cluster Autoscaler will consider them as unready instead of still
starting.
2021-08-31 11:37:25 +02:00
Sascha Grunert
484b027536
Remove unused --allow-gathering-profiles e2e.test flag
The profile gatherer has been removed in
https://github.com/kubernetes/kubernetes/pull/85304, so those options
are unused since then and can therefore be removed.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-31 11:33:33 +02:00
Antonio Ojea
2a5ad65a9a e2e test apiserver endpoint and endpointslices
The e2e test "should have Endpoints and EndpointSlices pointing to
the API Server Service" was veryfing the current endpoints
reconciler implementation on the apiservers, however, users may
disable the endpoint reconciler and create their own.

This e2e test is also a conformance test, so we should test the
behaviour and not the implementation details. The test verifies
that a kubernetes.default service exist, an endpoint and endpoint
slices object referencing that service exist and are equivalent.
2021-08-31 11:29:06 +02:00
Kubernetes Prow Robot
5aea99b0a2
Merge pull request #104634 from Jiawei0227/snapshotorder
storege e2etest: Delete restored PVC/Pod in snapshottable
2021-08-30 14:25:13 -07:00
Kubernetes Prow Robot
ff617edd32
Merge pull request #104455 from claudiubelu/test-images/windows-server-2022-part-2
test images: Adds Windows Server 2022 to the BASEIMAGEs (part 2)
2021-08-30 12:07:13 -07:00
Claudiu Belu
18936d4785 updates pause image references
The pause:3.6 image has been published.

Also updates older / incorrect references.
2021-08-29 21:50:05 -07:00
Claudiu Belu
33aa55da79 tests: Bumps image versions (Adds Windows Server 2022)
The Container Images for Windows Server 2022 have been published, and we can
start adding jobs for them.

The ltsc2022-based images have been built and promoted with these image versions.
2021-08-29 18:57:35 -07:00
Kubernetes Prow Robot
80feff6f40
Merge pull request #104408 from martinkennelly/fix_fqdn_hostname_mismatch
Fix comparison between FQDN and hostname
2021-08-27 19:58:52 -07:00
Jiawei Wang
273ac5a594 storege e2etest: Delete restored PVC/Pod in snapshottable 2021-08-27 13:53:25 -07:00
Dave Chen
63b4710f38 Don't expose struct from prometheus client library 2021-08-27 22:21:24 +08:00
Kubernetes Prow Robot
5871321310
Merge pull request #104614 from prameshj/disable-pod-rec
Skip testing for Pod DNS records.
2021-08-27 05:32:04 -07:00
Kubernetes Prow Robot
c88a111a9c
Merge pull request #104609 from jsturtevant/hostprocess-init-containers
Add init hostprocess container e2e test
2021-08-26 15:36:20 -07:00
Pavithra Ramesh
fa3f4a69e5 Skip testing for Pod DNS records.
DNS records of the form *.pod.cluster.local are deprecated - https://github.com/kubernetes/dns/pull/335
Testing for their presence is not required.
2021-08-26 14:33:12 -07:00
James Sturtevant
445f9f2aba Add init hostprocess container test 2021-08-26 08:23:54 -07:00
Sascha Grunert
b8400cbc36
Reduce the number of parallel typechecks to 2
The PR https://github.com/kubernetes/kubernetes/pull/104575 introduces
some intermediate types which makes the 32GiB memory machine kill the
typecheck process. To resolve that issue and make the test more robust,
we now reduce the amount of parallel typechecks to run to `2`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-26 16:53:13 +02:00
Danielle Lancashire
3884dcb909 e2e_node: run gpu pod long enough to become ready 2021-08-26 14:24:23 +02:00
Danielle Lancashire
7d7884c0e6 e2e_node: install gpu pod with PodClient
Prior to this change, the pod was not getting scheduled on the node as
we don't have a running scheduler in e2e_node. PodClient solves this
problem by manually assigning the pod to the node.
2021-08-26 14:22:22 +02:00
Danielle Lancashire
0cc8af82a1 e2e_node: use upstream gpu installer
The current GPU installer was built in 2017, from source that no longer
exists in Kubernetes ([adding commit][1]. The image was built on 2017-06-13.

Unfortunately, this installer no longer appears to work. When debugging
on the same node type as used by test-infra, it failed to build the
driver as the kernel sha was no longer available.

This lead to needing to find a new way to install GPUs. The smallest
logical change was switching to [cos-gpu-installer][2]
. There is a newer version of this available on [googlesource][3] that
I have not yet tested as it's not clear what the state of the project
is, as I couldn't find docs outside of the source itself.

We install things to the same location as previously to avoid needing
extra downstream changes. There are a couple of weird issues here
however, like needing to run the container twice to correctly update the
LD Cache.

[1]: 1e77594958/cluster/gce/gci/nvidia-gpus/Dockerfile
[2]: https://github.com/GoogleCloudPlatform/cos-gpu-installer
[3]: https://cos.googlesource.com/cos/tools/+/refs/heads/master/src/cmd/cos_gpu_installer/
2021-08-26 14:09:45 +02:00
Emilio Garcia
a7b341b052 Remove Error Message Check Dynamic PV Tests
Different CSI drivers have different error messages, making it difficult
to check them accurately. We remove the check for the error message and
only check the failure type instead, since that is all we need.
2021-08-25 14:08:23 -04:00
Kubernetes Prow Robot
14ee98b1c0
Merge pull request #104552 from claudiubelu/patch-8
test images: Trigger the windows-servercore-cache image job
2021-08-25 05:50:40 -07:00
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
Stephen Augustus
e8d2bff6ba
[go1.17] Update to go1.17
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:41 -04:00
Claudiu Belu
e8cbee5f9b
test images: Trigger the windows-servercore-cache image job
The postsubmit job for this image was only added recently [1]. We need to commit a change to trigger the job.

[1] https://github.com/kubernetes/test-infra/pull/23350
2021-08-24 20:16:00 +03:00
Alexey Perevalov
bb81101570 podresource: do not export NUMA topology if it's empty
If device plugin returns device without topology, keep it internaly
as NUMA node -1, it helps at podresources level to not export NUMA
topology, otherwise topology is exported with NUMA node id 0,
which is not accurate.

It's imposible to unveile this bug just by tracing json.Marshal(resp)
in podresource client, because NUMANodes field ID has json property
omitempty, in this case when ID=0 shown as emtpy NUMANode.
To reproduce it, better to iterate on devices and just
trace dev.Topology.Nodes[0].ID.

Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
2021-08-24 15:38:21 +00:00
Claudiu Belu
d565129a45
test images: retrigger busybox image building
The previous job failed because the windows-servercore-cache image was not built yet.
2021-08-24 15:15:07 +03:00
Shiming Zhang
86acf3bc8f Fix nodeShutdownReason for node shutdown e2e 2021-08-24 15:42:53 +08:00
Kubernetes Prow Robot
e8263c2325
Merge pull request #104460 from verult/livenessprobe-2.4.0
Bump livenessprobe to 2.4.0 in e2e hostpath driver spec
2021-08-23 10:38:12 -07:00
Kubernetes Prow Robot
aeec553fd3
Merge pull request #104369 from mauriciopoppe/regional-pd-storage-class-setup
Fix storage class setup in regional_pd.go
2021-08-23 10:38:00 -07:00
Dave Chen
58ab18bc1e Add the metric data for different extension points
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-08-23 13:43:48 +08:00
Claudiu Belu
2601e23bc2 test images: Adds Windows Server 2022 to the BASEIMAGEs (part 2)
The Container Images for Windows Server 2022 have been published, and
we can start building test images using them, so we can start adding
jobs for them.

The image versions for the e2e test images have been bumped in a previous
commit, but haven't been promoted yet. We don't need to bump them here.

httpd-2.4.46-win64-VC15.zip no longer exists, so we have to use
httpd-2.4.48-win64-VC15.zip instead.
2021-08-21 01:01:39 +00:00
Khaled (Kal) Henidak
89ae53d510 integration test 2021-08-20 22:03:43 +00:00
Kubernetes Prow Robot
499a1f99a9
Merge pull request #104489 from liggitt/signal-buffer
Fix buffered signal channel go vet error
2021-08-20 14:53:58 -07:00
Jordan Liggitt
322bc82777 Fix buffered signal channel go vet error 2021-08-20 16:47:56 -04:00
Kubernetes Prow Robot
c8a91dc3a8
Merge pull request #104478 from aojea/lb_timeouts
bump e2e loadbalancer timeouts to 15m
2021-08-20 11:19:43 -07:00
Kubernetes Prow Robot
341d312066
Merge pull request #97350 from FabianKramm/master
kubectl proxy: append context host path to request path
2021-08-20 11:19:31 -07:00
Kubernetes Prow Robot
f4e1558af0
Merge pull request #104451 from claudiubelu/test-images/windows-server-2022
test images: Adds Windows Server 2022 to the BASEIMAGEs
2021-08-20 10:09:37 -07:00
ravisantoshgudimetla
d0937073dd sts: Promote minReadySeconds 2021-08-20 12:52:59 -04:00
Alexey Perevalov
461d8f51f0 e2e_node: Check for DynamicKubeletConfig properly
Even DynamicKubeletConfig is deprecated it still used in e2e_node test.
The bug is hidden by forcibly enabled option
TEST_ARGS='--feature-gates=DynamicKubeletConfig=true'
if this option is not enabled setKubeletConfiguration tries to set
kubelet config via apiserver interface and failed with timeout.

Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
2021-08-20 15:17:58 +00:00
Kubernetes Prow Robot
b0bc8adbc2
Merge pull request #104368 from aojea/ruleguard
golang 1.17 fails to parse IPs with leading zeros
2021-08-20 07:59:24 -07:00
Kubernetes Prow Robot
64e422dc2a
Merge pull request #104441 from jsturtevant/small-resource-requests-for-hpa
test: e2e: HPA ContainerResource - Lower requests b/c multiple containers will leave pending pods on existing test infra
2021-08-20 04:35:24 -07:00
Antonio Ojea
3a660b7294 bump e2e loadbalancer timeouts to 15m 2021-08-20 12:15:37 +02:00
Martin Kennelly
752a532c3d Fix comparison between FQDN and hostname
Agnhost's serve-hostname at endpoint /hostname
will return hostname. Pods host node name may
return FQDN. Comparison between the two fails.

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
2021-08-20 10:24:41 +01:00
Antonio Ojea
0cd75e8fec run hack/update-netparse-cve.sh 2021-08-20 10:42:09 +02:00
Kubernetes Prow Robot
851b4a2c9a
Merge pull request #104407 from aojea/host_network_collision
hostNetwork tests can't share the same port
2021-08-19 13:45:25 -07:00
Cheng Xing
21491aa5a1 Bump livenessprobe to 2.4.0 in e2e hostpath driver spec 2021-08-19 10:33:12 -07:00
fabiankramm
b1a6f8cdf9 kubectl proxy: append context host path to request path
Signed-off-by: fabiankramm <fab.kramm@googlemail.com>
2021-08-19 17:32:19 +02:00
Claudiu Belu
3c1a3dea59 test images: Adds Windows Server 2022 to the BASEIMAGEs
The Container Images for Windows Server 2022 have been published, and
we can start building test images using them, so we can start adding
jobs for them.

The image versions for the e2e test images have been bumped in a previous
commit, but haven't been promoted yet. We don't need to bump them here.

We're starting with windows-servercore-cache and busybox images, since
they are needed for the other images the most.

A previous added LD_FLAGS for the go binary compilation, but it's not
defined for all images.
2021-08-19 12:22:07 +00:00
Kubernetes Prow Robot
08eaea4590
Merge pull request #104350 from tkashem/audit-policy-refactor
refactor: rename audit Checker interface
2021-08-19 01:41:24 -07:00
James Sturtevant
f5e97186d2 Lower requests b/c multiple containers will leave pending pods 2021-08-18 13:33:17 -07:00
Kubernetes Prow Robot
333eb833e5
Merge pull request #104401 from aojea/sctp_scale
SCTP tests run only on 2 nodes
2021-08-18 03:28:08 -07:00
Antonio Ojea
513b55b00d hostNetwork tests can't share the same port
The pods using hostNetwork use the host network namespace, hence
they have to share it with the rest of the process and pods.
If several pods try to bind to the same port, the test will fail,
so we try to use a non common port, and run the different scenario
in the same test, so we only have to bind once and we avoid consuming
ports reducing the port collision risk.
2021-08-18 10:43:06 +02:00
pacoxu
ddaa3466eb correct unsafe sysctls e2e test case & use status reason check instead of events watch
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2021-08-18 15:11:09 +08:00
Kubernetes Prow Robot
40a9914801
Merge pull request #102916 from odinuge/serial-tests
Ensure images are pulled after eviction tests
2021-08-17 11:41:13 -07:00
Kubernetes Prow Robot
410702647e
Merge pull request #104409 from martinkennelly/fix_local_test_bind_denied
Fix insufficient privileges to bind to port
2021-08-17 09:01:13 -07:00
Kubernetes Prow Robot
027fe2554f
Merge pull request #104381 from wzshiming/fix/http
image: Change the download url from http to https
2021-08-17 01:02:00 -07:00
Antonio Ojea
04d83edd3c SCTP tests run only on 2 nodes 2021-08-17 00:42:20 +02:00
Kubernetes Prow Robot
fe099b2abd
Merge pull request #104393 from claudiubelu/test-images/git-tag
test images: Use PULL_BASE_SHA for non-git image building
2021-08-16 12:24:23 -07:00
Kubernetes Prow Robot
ca31857c55
Merge pull request #104077 from jsafrane/fix-skip-schedulable
Fix zone calculation - consider only untainted nodes
2021-08-16 10:03:29 -07:00
Kubernetes Prow Robot
c2674bb766
Merge pull request #103269 from mgutierrez98/Refactor-Master-ControlPlane-test-e2e
Refactor instances of master to controlplane in test/e2e.go
2021-08-16 10:03:17 -07:00
Claudiu Belu
00dd02f89c test images: Use PULL_BASE_SHA for non-git image building
In the test image build jobs, the image-util.sh script is not being run in a git
repository, which causes git log to fail.

In this case, we can use the PULL_BASE_SHA set in cloudbuild.yaml instead.
2021-08-16 08:18:28 -07:00
Claudiu Belu
91c095a11f tests: Enable some [LinuxOnly] tests for Windows Containerd
Windows Containerd has more features than Windows Docker. One of them is single file
mappings, allowing us to also map individual files into containers, not just folders.

This will set the tag [Excluded:WindowsDocker] for those tests instead of [LinuxOnly].

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
2021-08-16 07:43:24 -07:00
Shiming Zhang
804ce496e3 image: Change http to https 2021-08-16 12:45:50 +08:00
Mauricio Poppe
9c4d5b69ec Fix storage class setup in regional_pd.go 2021-08-15 00:52:08 +00:00
Kubernetes Prow Robot
894cb069dd
Merge pull request #102666 from viveksyngh/add-e2e-test-hpa-v2betav2
test: e2e: HPA ContainerResource
2021-08-13 14:17:31 -07:00
Martin Kennelly
eba9d33c3e Fix insufficient privileges to bind to port
Container without elevated privileges to bind to
host port less than 1024 causes bind permission
denied error.
Increase port number greater than 1024 to allow
binding.

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
2021-08-13 19:15:03 +01:00
Kubernetes Prow Robot
b6d83f0ba3
Merge pull request #103072 from ikeeip/scheduler_volumebinding
Remove "pkg/controller/volume/scheduling" dependency from "pkg/scheduler/framework/plugins"
2021-08-13 08:20:22 -07:00
Kubernetes Prow Robot
07dc81f83b
Merge pull request #104349 from rajaskakodkar/netpol-container-improvement
Optimize the resource consumption of networkpolicy tests by reducing the containers created
2021-08-13 07:08:23 -07:00
Kubernetes Prow Robot
28408bf252
Merge pull request #104322 from x13n/master
Increase time to wait for nodes to become unready
2021-08-13 04:14:23 -07:00
Konstantin Misyutin
29bd66d018 Remove "pkg/controller/volume/scheduling" dependency from "pkg/scheduler/framework/plugins"
All dependencies of VolumeBinding plugin from
"k8s.io/kubernetes/pkg/controller/volume/scheduling" package moved to
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumebinding" package:

- whole file pkg/controller/volume/scheduling/scheduler_assume_cache.go
- whole file pkg/controller/volume/scheduling/scheduler_assume_cache_test.go
- whole file pkg/controller/volume/scheduling/scheduler_binder.go
- whole file pkg/controller/volume/scheduling/scheduler_binder_fake.go
- whole file pkg/controller/volume/scheduling/scheduler_binder_test.go

Package "k8s.io/kubernetes/pkg/controller/volume/scheduling/metrics" moved
to "k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumebinding/metrics"
because it only used in VolumeBinding plugin and (e2e) tests.

More described in issue #89930 and PR #102953.

Signed-off-by: Konstantin Misyutin <konstantin.misyutin@huawei.com>
2021-08-13 19:08:45 +08:00
Abu Kashem
27f1503514
rename audit Checker interface 2021-08-12 17:42:41 -04:00
Kubernetes Prow Robot
4ab9c950d9
Merge pull request #102007 from vaibhav2107/perf-config
Update the typo in values of pods in performance-config.yaml
2021-08-12 13:59:50 -07:00
Kubernetes Prow Robot
1f8b1b84fb
Merge pull request #102886 from gnufied/add-local-expansion
Add support for expanding local volumes
2021-08-12 11:55:50 -07:00
Rajas Kakodkar
e36a14730b reducing the number of containers created based on the ports used 2021-08-12 23:36:28 +05:30
Kubernetes Prow Robot
81dca3d0cb
Merge pull request #103976 from claudiubelu/test-images/agnhost-adds-sync-exe
test images: Adds sync.exe to Windows agnhost images
2021-08-12 10:20:13 -07:00
Kubernetes Prow Robot
e6c7837afe
Merge pull request #101063 from claudiubelu/tests/lifecycle-hooks
tests: Spawn poststart / prestop pods on the same node as the http pod
2021-08-12 10:19:49 -07:00
Kubernetes Prow Robot
98e526390d
Merge pull request #103724 from claudiubelu/update-e2e-test-images-url
Update e2e test images url
2021-08-12 09:10:13 -07:00
Kubernetes Prow Robot
8b9f02836d
Merge pull request #103156 from claudiubelu/windows-osversion-cleanup
images: Removes OS Version workaround for manifest list images
2021-08-12 09:10:00 -07:00
Kubernetes Prow Robot
4c498db939
Merge pull request #102599 from claudiubelu/test-images/remove-eol-windows-images
test images: Removes Windows 1903 and 1909 images
2021-08-12 09:09:48 -07:00
Kubernetes Prow Robot
d77af28a35
Merge pull request #104086 from jayunit100/patch-27
(experimental) Calibrate networkpolicy test aggressiveness
2021-08-12 06:09:48 -07:00
Daniel Kłobuszewski
05beda5c40 Increase time to wait for nodes to become unready
https://github.com/kubernetes/autoscaler/pull/3924 changed Cluster
Autoscaler behavior to mark nodes as unhealthy only if at least 15m
passed since node creation time.
2021-08-12 11:03:38 +02:00
Kermit Alexander
5acb667ce9 Increase timeout to avoid test flaking in resize_nodes.go. 2021-08-12 00:00:01 +00:00
jay vyas
145cec925a reduce the number of containers created by 66%
Co-authored-by: jay vyas <jvyas@vmware.com>
Co-authored-by: rajas kakodkar <rkakodkar@vmware.com>
2021-08-12 02:08:00 +05:30
Elana Hashman
c69f55519e
Revert "E2E test for kubelet exit-on-lock-contention" 2021-08-11 10:45:46 -07:00
Kubernetes Prow Robot
2d599e3a8b
Merge pull request #104294 from aojea/test_owner
add aojea to test OWNERS approvers
2021-08-11 10:26:47 -07:00
Kubernetes Prow Robot
a535acdc91
Merge pull request #102736 from atiratree/e2e-bump-ProgressDeadlineSeconds
e2e test: bump ProgressDeadlineSeconds in Deployment iterative rollouts
2021-08-11 09:16:46 -07:00
Kubernetes Prow Robot
a87838481b
Merge pull request #103654 from coffeepac/sig-inst/metric-static-analysis/remote-package
seems to work, needs tests and a lot of cleanup
2021-08-11 08:06:46 -07:00
Kubernetes Prow Robot
22d1eff331
Merge pull request #102730 from atiratree/deployment-e2e-pause-fix
e2e test: fix Pause in Deployment iterative rollouts
2021-08-11 06:18:46 -07:00
Claudiu Belu
ea3c7d98a5 test images: Removes Windows 1903 and 1909 images
According to the Microsoft documentation, Windows Server 1903
reached its EOL December 8, 2020 [1], and Windows Server 1909
reached its EOL May 11, 2021 [2].

We ne longer need to build images for those OS Versions, since we won't
run tests for them.

[1]: https://docs.microsoft.com/en-us/windows-server/get-started-19/whats-new-in-windows-server-1903-1909
[2]: https://docs.microsoft.com/en-us/lifecycle/announcements/windows-server-1909-end-of-servicing
2021-08-11 11:49:05 +00:00
Claudiu Belu
d9f2268816 test images: Adds sync.exe to Windows agnhost images
We can get sync.exe from coreutils.
2021-08-11 11:45:13 +00:00
Kubernetes Prow Robot
7dd4f1742f
Merge pull request #104296 from claudiubelu/test-images/automate-agnhost-binary-version
test images: Simplifies the agnhost binary version
2021-08-11 04:36:47 -07:00
Claudiu Belu
94ac896269 test images: Simplifies the agnhost binary version
Currently, whenever agnhost/VERSION is bumped, the version in
agnhost/agnhost.go has to be bumped as well. This is also verified
on presubmit (build/dependencies.yaml).

This means that whenever we need to bump the agnhost image version,
someone has to approve the build/dependencies.yaml, which is not as
easy.

This commit removes the need for this check by automatically setting
the Version inside agnhost.go at build time, simplifying the process.
2021-08-11 09:12:03 +00:00
Kubernetes Prow Robot
202f775adb
Merge pull request #103608 from ipochi/imran/e2e-lock-contention
E2E test for kubelet exit-on-lock-contention
2021-08-11 02:08:46 -07:00
Antonio Ojea
3b6cd89f01 add aojea to test OWNERS 2021-08-11 10:54:35 +02:00
Kubernetes Prow Robot
ae79825914
Merge pull request #104271 from dims/warn-if-docker-buildx-is-not-available
Warn if docker buildx is not available
2021-08-11 00:55:03 -07:00
Kenjiro Nakayama
4f7cb4fb69 Update obsolete link in the Conformance Test doc
This patch updates the link for kubelet.go.

Recent conformance test docs always contain the invalid
link - e.g. https://github.com/cncf/k8s-conformance/blob/master/docs/KubeConformance-1.21.md#output
since 3b438eb4e5 moved the code.
2021-08-11 15:11:41 +09:00
Kubernetes Prow Robot
6b7c0cb386
Merge pull request #104048 from lizhuqi/fix-npd-test
Remove AUFSUmountHung from NPD test
2021-08-10 17:40:46 -07:00
Kubernetes Prow Robot
48da959dbf
Merge pull request #104248 from liggitt/drop-beta
Drop dead beta storage and validation code
2021-08-10 11:52:40 -07:00
Davanum Srinivas
f63dbd481f
Warn if docker buildx is not available
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-10 14:42:11 -04:00
Kubernetes Prow Robot
04248afb26
Merge pull request #103805 from Huang-Wei/preempt-or-del-waiting-pod
sched: retry unscheduled pod immediately after a waiting pod gets preempted or deleted
2021-08-09 12:01:10 -07:00
Jordan Liggitt
39a1293cbc Drop beta REST APIs removed in 1.22 2021-08-09 11:10:16 -04:00
Imran Pochi
2c2661a411 e2e test: lock-file and exit-on-lock-contention
This commit adds an e2e test for the kubelet flags `--lock-file` and
`exit-on-lock-contention`. Eventually we would like to move them to the
kubelet configuration file rather than flags.

This test is based on the premise that whenever there is a lock
contention of the lock file (e.g. /var/run/kubelet.lock), the running
kubelet must terminate and the waiting for the lock on the lock file to
be released before starting again.

In this test we simulate that behaviour of a file contention. The test
would try to acquire the lock on the lock file.

Success of the test is determined kubelet health check when the lock is
acquired by the test and passes when the lock on the lock file is
released.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2021-08-09 15:27:54 +05:30
Han Kang
619e38141b remove unnecessary waits from watch conformance test
Change-Id: Ic0eb4197ac4eeaf67a6d9c64c3f04a0d50bd5b03
2021-08-07 15:55:33 -07:00
Kubernetes Prow Robot
e2e3c2d01c
Merge pull request #104142 from mengjiao-liu/update-debian-setcap-bump
Update debian, debian-iptables, setcap images to pick up CVE-2021-33910 fixes
2021-08-07 07:13:29 -07:00
Kubernetes Prow Robot
fa6c221579
Merge pull request #104214 from seans3/dynamic-link-kubectl-fix
Fixes flaky GKE kubectl test
2021-08-07 05:01:29 -07:00
Sean Sullivan
1ce594b7ee Fixes flaky GKE kubectl test 2021-08-06 22:31:55 -07:00
Wei Huang
dc079acc2b
sched: retry unschedule pods immediately after a waiting pod's deletion 2021-08-06 19:08:37 -07:00
Mengjiao Liu
cafad98536 Update debian-iptables image to buster-v1.6.6 2021-08-07 09:47:29 +08:00
Hemant Kumar
d166cabd9e Add e2e for local volume expansion 2021-08-06 15:08:33 -04:00
Kubernetes Prow Robot
29c13f5515
Merge pull request #104199 from cpanato/go1167
[go1.16] Update to go1.16.7
2021-08-06 11:22:35 -07:00
Elana Hashman
d2ed3b28b7
Revert "revert Bump DynamicKubeConfig metric deprecation to 1.23 by delta update" 2021-08-06 08:38:56 -07:00
Carlos Panato
6b9dc099f8
[go1.16] Update to go1.16.7
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-08-06 17:11:00 +02:00
Kubernetes Prow Robot
3670029b3d
Merge pull request #103640 from saschagrunert/crictl-host-local-test
Make crictl tests host local
2021-08-06 07:33:19 -07:00
Kubernetes Prow Robot
d4179be611
Merge pull request #104183 from SergeyKanzhelev/SergeyKanzhelev-node-e2e-approver
Add SergeyKanzhelev to node e2e test approvers
2021-08-05 20:55:28 -07:00
Kubernetes Prow Robot
bfcc756f09
Merge pull request #103963 from mcshooter/update-npd-089
update node-problem-detector v0.8.9
2021-08-05 19:45:05 -07:00
Kubernetes Prow Robot
be0a1ecbd4
Merge pull request #99228 from Huang-Wei/hist-vec
sched: better support of HistogramVec in scheduler performance test
2021-08-05 19:44:53 -07:00
Kubernetes Prow Robot
05ee896667
Merge pull request #104124 from aojea/flakelb
retry apiserver errors on e2e service tests
2021-08-05 16:36:54 -07:00
Kubernetes Prow Robot
4d87be3ec4
Merge pull request #104121 from dims/skip-node-e2e-test-for-recovering-from-ip-leak-with-docker
Skip node e2e test for recovering from ip leak with docker/ubuntu
2021-08-05 16:36:46 -07:00
Kubernetes Prow Robot
98bd200217
Merge pull request #104102 from tnqn/dynamic-file
Improve dynamic cert file change detection
2021-08-05 16:36:26 -07:00
Sergey Kanzhelev
023f6a90db Add SergeyKanzhelev to node e2e test approvers 2021-08-05 21:32:55 +00:00
Kubernetes Prow Robot
7f231f899b
Merge pull request #103883 from ehashman/slow-e2es
Mark "update Node.Spec.ConfigSource" node e2es as slow
2021-08-05 14:10:37 -07:00
Kubernetes Prow Robot
7820de3803
Merge pull request #103876 from juanfescobar/flakylabel
Improve storage test skipping pattern.
2021-08-05 14:10:29 -07:00
Kubernetes Prow Robot
20d5526575
Merge pull request #103593 from matthyx/container_probe
Flake #99979 increase delay for ready state propagation
2021-08-05 14:09:19 -07:00
Quan Tian
3cfe3d048f Improve dynamic cert file change detection
DynamicFileCAContent and DynamicCertKeyPairContent used periodical job
to check whether the file content has changed, leading to 1 minute of
delay in worst case. This patch improves it by leveraging fsnotify
watcher. The content change will be reflected immediately.
2021-08-06 01:45:24 +08:00
Kubernetes Prow Robot
01cd315f3e
Merge pull request #104106 from ehashman/ehashman-node-e2e-owners
Add ehashman to node e2e test approvers
2021-08-05 08:18:49 -07:00
Kubernetes Prow Robot
3b84cc9e6b
Merge pull request #104075 from kerthcet/cleanup/revert-dynamickubeconfig-metric
revert Bump DynamicKubeConfig metric deprecation to 1.23 by delta update
2021-08-05 08:18:40 -07:00
Kubernetes Prow Robot
9aee1ea7ce
Merge pull request #104074 from danwinship/np-dns-fixup
Remove stray DNS port references in NetPol tests
2021-08-05 08:18:32 -07:00
Kubernetes Prow Robot
ed5618e2d5
Merge pull request #104061 from aojea/waitForPodsReady
replace e2e WaitForPodsReady by WaitTimeoutForPodReadyInNamespace
2021-08-05 08:18:24 -07:00
Kubernetes Prow Robot
d93fcf37db
Merge pull request #103903 from wzshiming/fix/framework-npe
Fix NPE in test/e2e/framework/providers/azure
2021-08-05 08:17:47 -07:00
Kubernetes Prow Robot
58cde6c442
Merge pull request #103874 from liggitt/move-conformance
Move conformance image
2021-08-05 08:17:34 -07:00
Kubernetes Prow Robot
25fae1d686
Merge pull request #104100 from dims/skip-nvidia-gpu-test-in-node-e2e-ci-jobs-for-non-docker-runtimes
Skip NVidia GPU test in node e2e CI jobs for containerd and other runtimes
2021-08-05 06:09:34 -07:00
Davanum Srinivas
9351b57def
Skip node e2e test for recovering from ip leak with docker
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-05 07:11:07 -04:00
Kubernetes Prow Robot
6edce1cfca
Merge pull request #103778 from danwinship/feature-sctp
remove superfluous [Feature:SCTP] tag in some test names
2021-08-05 01:43:13 -07:00
Kubernetes Prow Robot
02aa3edfd5
Merge pull request #100285 from 249043822/it-hsts
add integration test for apiserver hsts
2021-08-05 01:43:00 -07:00
Kubernetes Prow Robot
4470fc0ad9
Merge pull request #103776 from aojea/cleanup-e2e
Cleanup e2e
2021-08-04 23:41:00 -07:00
Kubernetes Prow Robot
adffa907bb
Merge pull request #103744 from claudiubelu/test-images/adds-labels
test images: Adds image labels by default
2021-08-04 22:12:21 -07:00
Kubernetes Prow Robot
b8641af9c2
Merge pull request #103711 from claudiubelu/test-image-manifest-cleanup
cleanup: Removes GcrRelease and SampleRegistry from manifest.go
2021-08-04 22:12:13 -07:00
Kubernetes Prow Robot
ddbdd3eca1
Merge pull request #103693 from alculquicondor/integration-parallelism
Add integration tests for updating Job parallelism
2021-08-04 22:11:56 -07:00
Kubernetes Prow Robot
11fb95b354
Merge pull request #103659 from tsmetana/k8s-nfs-ipv6-test-fail
e2e: Fix NFS options test for IPv6
2021-08-04 22:11:31 -07:00
Kubernetes Prow Robot
0a704f9e1f
Merge pull request #103564 from kevindelgado/unstr-extr-poc
ExtractItems for unstructured apply configurations
2021-08-04 22:10:55 -07:00
KeZhang
952aa1b2d2 add integration test for apiserver hsts 2021-08-05 10:41:52 +08:00
kerthcet
8cf10d9a20 set showHiddenMetricsForVersion=1.22 in dynamicKubeletConfiguration test
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-08-05 01:04:54 +08:00
Antonio Ojea
9d30eb88df retry apiserver errors on e2e service tests 2021-08-04 15:30:47 +02:00
Elana Hashman
ac076838c8
Add ehashman to node e2e test approvers
List of files raised by matthyx in SIG Node during the 2021-08-03
meeting.
2021-08-03 10:48:06 -07:00
Davanum Srinivas
3463c2dfa9
Skip NVidia GPU test in node e2e CI jobs for containerd and other runtimes
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-03 08:48:44 -04:00
Jan Safranek
4efc9a9569 Fix zone calculation - consider only untainted nodes
Tests "Multi-AZ Cluster Volumes" should consider only nodes that are
schedulable and *untainted* when computing AZ where to run the tests.

GetReadySchedulableNodes() already filters schedulable + untainted nodes,
no need to do it again in GetSchedulableClusterZones().
2021-08-03 14:41:12 +02:00
Kubernetes Prow Robot
9ff3b7e744
Merge pull request #104047 from ehashman/fix-node-e2e-logs
Log e2e-node kubelet output directly to file
2021-08-02 12:30:19 -07:00
Julie Qi
c35502ad4b Remove AUFSUmountHung from NPD test 2021-08-02 11:37:30 -07:00
Davanum Srinivas
dab19517e5
Explicitly restart kubelet to stabilize serial-containerd job
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-02 11:24:11 -04:00
Dan Winship
72223406ac Remove stray DNS port references in NetPol tests
The tests no longer use DNS, so we shouldn't be adding DNS-related
exceptions to the policies that are being tested.
2021-08-02 10:31:59 -04:00
Antonio Ojea
34f4959633 replace e2e WaitForPodsReady by WaitTimeoutForPodReadyInNamespace 2021-08-01 19:24:52 +02:00
Elana Hashman
a77f4f4c29
Log e2e-node kubelet output directly to file
For some reason when we send them to journald, many log lines are
consistently dropped as soon as the PLEG is started.

If we log directly to file, we don't have this problem. As a bonus, if
the tests crash, the kubelet logs will always be available since they
were already written; otherwise we normally wait until the end of the
test run to collect them from journald, meaning that we often end up
with empty logs.
2021-07-30 15:35:42 -07:00
Ryan Phillips
163e4974b6 e2e node server: fix crash in log line 2021-07-30 12:36:00 -05:00
Pat Christopher
f720c4fd44
hack/verify fixes 2021-07-28 19:26:44 -07:00
Elana Hashman
59a7cc12c9
Mark failing node serial tests as flaky
Tracked in:
- https://github.com/kubernetes/kubernetes/issues/103690
- https://github.com/kubernetes/kubernetes/issues/103691
2021-07-28 10:39:30 -07:00
Claudiu Belu
05cfbecab9 test images: Adds image labels by default
Adds the "image_version", "commit_id", "git_url" to the image labels.
2021-07-28 09:25:21 +00:00
Caleb Woodbine
bbb368b701 Update e2e test images url
Removes any reference from the registry gcr.io/kubernetes-e2e-test-images in
kubernetes/kubernetes, replacing it with k8s.gcr.io/kubernetes-e2e-test-images.
In some cases, the images had to be updated since a few things have changed since
their original implementation, most notably being the fact that some of the images
have been centralized into the agnhost image.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-07-27 22:01:43 -07:00
Pat Christopher
4549573a44
minor cleanups 2021-07-27 18:39:33 -07:00
Michelle Tandya
4606ebe423 update node-problem-detector v0.8.9 2021-07-28 01:02:56 +00:00
Kubernetes Prow Robot
d92b788faa
Merge pull request #103937 from jingxu97/july/grace
Fix disruptive subPath test failures
2021-07-27 08:22:45 -07:00
Jing Xu
f1e1f3a416 Fix disruptive subPath test failures
This PR fixes two distruptive subpath test failures.

1. disable --check-volume-lifecycle check
2. skip hostpath driver tests on graceful pod deletion test too.

See details in
https://github.com/kubernetes/kubernetes/issues/103651#issuecomment-887227562

Change-Id: Ibecd051be865feea5f2a92d22ade848367400939
2021-07-27 02:17:31 -07:00
Wei Huang
55765f1b49
sched: support HistogramVec in scheduler performance test 2021-07-26 20:27:37 -07:00
Kevin Delgado
7bfc420351 simplify test to only test the new logic of extractUnstructured 2021-07-27 01:28:44 +00:00
Kevin Delgado
c9e97de46b Address PR feedback around gvk parser generation ergonomics 2021-07-27 01:28:43 +00:00
Kevin Delgado
604db6eb2a rename cache, add to integration test 2021-07-27 01:28:43 +00:00
Kevin Delgado
7b9757faa4 basic caching working 2021-07-27 01:28:42 +00:00
Kevin Delgado
9f4a4d812d Write TestUnstructuredExtract 2021-07-27 01:28:04 +00:00
mgutierrez98
004e441483 refactored master to controlplane 2021-07-26 17:52:53 +00:00
Shiming Zhang
dc9eb82e0a Fix NPE in test/e2e/framework/providers/azure 2021-07-26 10:27:44 +08:00
Elana Hashman
93146048b4
Mark "update Node.Spec.ConfigSource" node e2es as slow
- recover to last-known-good ConfigMap.KubeletConfigKey
  ~12m to run in CI, 13m locally
- non-nil last-known-good to a new non-nil last-known-good
  ~24m to run in CI
- recover to last-known-good ConfigMap
  ~12m to run in CI
- state transitions
   ~8m to run in CI
2021-07-23 12:40:24 -07:00
Jordan Liggitt
4115bef826 Update references to test/conformance/image 2021-07-23 11:26:54 -04:00
Jordan Liggitt
024930df11 Move cluster/images/conformance to test/conformance/image 2021-07-23 11:23:55 -04:00
Nabarun Pal
77afa53f9d
Add e2e testing manifest bundle to e2e_node test suite
Ref: https://kubernetes.slack.com/archives/C0BP8PW9G/p1627003199187100?thread_ts=1626988113.184100&cid=C0BP8PW9G

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-07-23 09:49:33 +05:30
Juan Escobar
fef5c0c1a6 Improve storage test skipping pattern.
Including a skip method as the first line of a test does not prevent the test to fail in the BeforeEach function.
If the test is skipped because of a tag in the name, then we can prevent such odd behavior.
2021-07-22 21:42:30 -05:00
Kubernetes Prow Robot
8ac0fcdb74
Merge pull request #103842 from bobbypage/summary-test
test: summary use pointer gomega comparison for UsageNanoCores
2021-07-22 16:07:28 -07:00
Kubernetes Prow Robot
de8b873684
Merge pull request #103827 from mmiranda96/fix/demote-sysctl-conformance-test
Demote sysctl test from its conformance status
2021-07-22 16:07:16 -07:00
Kubernetes Prow Robot
603830b8a6
Merge pull request #103806 from mauriciopoppe/fetch-metrics-no-sync-once
Fetch metrics from controller manager & scheduler without `sync.Once`
2021-07-22 13:55:18 -07:00
Mike Miranda
0cce9a4a6c Remove conformance status from a sysctl test and relabel 2021-07-22 20:12:26 +00:00
David Porter
3af4fe8c9b Use pointer gomega comparison for UsageNanoCores 2021-07-22 01:08:36 -07:00
Kubernetes Prow Robot
85a29212e0
Merge pull request #103725 from jingxu97/July/wintests
Fix windows storage tests
2021-07-21 15:01:51 -07:00
Mauricio Poppe
9103b7187c Fetch metrics from controller manager & scheduler no run once 2021-07-21 17:16:42 +00:00
Sascha Grunert
8ad83fd685
Make crictl tests host local
We now use a host local exec instead of SSH commands to simplify the
test and make the result more robust.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-07-21 16:46:37 +02:00
Sascha Grunert
c1bac40880
Fix SIG Node SSH e2e test
This assumes that SSH via bastion works if the `KUBE_SSH_BASTION`
environment variable is set, which is the case for
`pull-kubernetes-e2e-gce-correctness`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-07-21 15:57:14 +02:00
Jing Xu
33feaee2c2 Fix windows storage tests
1. fix command empty issue for some Windows storage tests
2. enable more windows storage tests by adding ntfs test patten

Change-Id: Ic33be282d669a23107474a14d4368bbf95c9b459
2021-07-20 22:40:20 -07:00
Vivek Singh
80e4007bc3 test: e2e: HPA ContainerResource
This add e2e test for HPA ContainerResource metrics. This add test to cover two scenarios
1. Scale up on a busy application with an idle sidecar container
2. Do not scale up on a busy sidecar with an idle application.

Signed-off-by: Vivek Singh <svivekkumar@vmware.com>
2021-07-21 10:24:00 +05:30
jay vyas
59c0523bca
Using ServiceIPs instead of DNS names in the NetworkPolicy Probes + adding Interface decoupling (#102354)
* Squashed commit of the following:

commit 7f774dcb54b511a3956aed0fac5c803f145e383a
Author: Jay Vyas (jayunit100) <jvyas@vmware.com>
Date:   Fri Jun 18 10:58:16 2021 +0000

    fix commit message

commit 0ac09650742f02004dbb227310057ea3760c4da9
Author: jay vyas <jvyas@vmware.com>
Date:   Thu Jun 17 07:50:33 2021 -0400

    Update test/e2e/network/netpol/kubemanager.go

    Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>

commit 6a8bf0a6a2690dac56fec2bdcdce929311c513ca
Author: jay vyas <jvyas@vmware.com>
Date:   Sun Jun 13 08:17:25 2021 -0400

    Implement Service polling for network policy suite to remove reliance on CoreDNS when verifying network policys

    Update test/e2e/network/netpol/probe.go

    Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>

    Add deafultNS to use service probe

commit b9c17a48327aab35a855540c2294a51137aa4a48
Author: Matthew Fenwick <mfenwick100@gmail.com>
Date:   Thu May 27 07:30:59 2021 -0400

    address code review comments for networkpolicy decoupling from dns

commit e23ef6ff0d189cf2ed80dbafed9881d68402cb56
Author: jay vyas <jvyas@vmware.com>
Date:   Wed May 26 13:30:21 2021 -0400

    NetworkPolicy decoupling from DNS

gofmt

remove old function

* model refactor

* minor

* dropped getK8sModel func

* dropped modelMap, added global model in BeforeEach and subsequent changes

Co-authored-by: Rajas Kakodkar <rajaskakodkar16@gmail.com>
2021-07-19 23:09:32 -07:00
Pat Christopher
b09bbd808a
testing patches. add k8s.io/staging, remove local home 2021-07-19 20:26:53 -07:00
Antonio Ojea
5fdfe872d6 e2e: update makefile example for building images 2021-07-19 23:07:01 +02:00
Dan Winship
318b9a9578 remove superfluous [Feature:SCTP] tag in some test names
This tag was supposed to have gone away when SCTP went GA. (I think it
got screwed up due to a PR being mis-rebased after the SCTP GA merge.)
2021-07-19 14:49:53 -04:00
Antonio Ojea
50b3cbe999 e2e: remove unused sync.WaitGroup 2021-07-19 18:24:03 +02:00
Antonio Ojea
9d405710fe e2e: remove runKubernetesServiceTestContainer
The function depend on a manifest that no longer exist, it also
seems only useful for clusterapi, breaking the independence of
the e2e framework.
2021-07-19 18:24:03 +02:00
tanjing2020
bae1fb367a [e2e] Add description of use case execution conditions 2021-07-19 09:38:06 +08:00
Kubernetes Prow Robot
8cda0d7f9c
Merge pull request #103733 from wojtek-t/fix_master_upgrade_test
Fix panic in master upgrade tests
2021-07-16 04:40:08 -07:00
Kubernetes Prow Robot
5acefcc2bc
Merge pull request #100886 from claudiubelu/cuda-vector-add-update
tests: Updates cuda-vector-add:1.0 image to the promoted registry
2021-07-15 23:54:09 -07:00
wojtekt
1f2902a336 Fix panic in master upgrade tests 2021-07-16 07:50:25 +02:00
Kubernetes Prow Robot
43c9e8e7a1
Merge pull request #103234 from dashpole/apiserver_e2e_test
Add integration test for apiserver tracing
2021-07-15 22:10:09 -07:00
David Ashpole
e5a1f86e0a add apiserver tracing integration test, and fix endpoint validation 2021-07-15 20:56:57 -07:00
Kubernetes Prow Robot
4de033c2c0
Merge pull request #103720 from alculquicondor/rm-e2e-preferavoidpods
Remove E2E test for NodePreferAvoidPods scheduling Score
2021-07-15 16:06:09 -07:00
Kubernetes Prow Robot
ac8dca79af
Merge pull request #103566 from wzshiming/fix/e2e-dbus-config-path
Fix dbus config path for GracefulNodeShutdown e2e
2021-07-15 12:39:14 -07:00
Aldo Culquicondor
be34dc95b5 Remove E2E test for NodePreferAvoidPods scheduling Score
The feature is now disabled by default. The annotation never graduated from alpha. The same behavior can be achieved with PreferNoSchedule taints.
2021-07-15 14:55:09 -04:00
Kubernetes Prow Robot
4f9bfb39ad
Merge pull request #102169 from odinuge/rlimit-tests
Ensure node-e2e-test can open enough files
2021-07-15 10:20:45 -07:00
Claudiu Belu
a2ea04bab3 tests: Updates cuda-vector-add:1.0 image to the promoted registry
With this commit, we're no longer using any images from the gcr.io/kubernetes-e2e-test-images
registry.
2021-07-15 08:00:49 -07:00
Matthias Bertschy
5f0925a294 Flake #99979 increase delay for ready state propagation 2021-07-15 11:42:33 +02:00
Kubernetes Prow Robot
02355e22b3
Merge pull request #103650 from dims/get-golangci-lint-back-on-its-feet
Get golangci lint back on its feet
2021-07-15 02:06:48 -07:00
Kubernetes Prow Robot
f6c2068623
Merge pull request #102921 from fromanirh/pod-readiness-gate-timeout
e2e: increase readiness gate timeout
2021-07-14 23:34:48 -07:00
Pat Christopher
169583bf4e
tests for path resolver, add KUBE_ROOT to both top level func calls 2021-07-14 20:35:49 -07:00
Aldo Culquicondor
82728b5f71 Add integration tests for updating Job parallelism 2021-07-14 14:26:15 -04:00
Monis Khan
a6ac42082b
client-go exec: fix metrics related to plugin not found
These were missed because our tests did not pass in the correct test
data input (the command to execute).

Signed-off-by: Monis Khan <mok@vmware.com>
2021-07-14 14:02:23 -04:00
Davanum Srinivas
75748c185e
enable verify-golangci-lint.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:53:33 -04:00
Davanum Srinivas
07332ad398
fix ineffassign and varcheck
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:22 -04:00
Davanum Srinivas
26cc8e40a8
fix deadcode issues
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:21 -04:00
Pat Christopher
e75f3fb563
add happy path tests for two types of imports 2021-07-13 20:08:13 -07:00
Pat Christopher
d3aabe2397
fix existing unit tests 2021-07-13 19:25:45 -07:00
Pat Christopher
585ce7f04d
missed a paren 2021-07-13 19:03:39 -07:00
Pat Christopher
bde2ef2a1a
review comments 2021-07-13 19:02:23 -07:00
Kubernetes Prow Robot
dbfa5acaa3
Merge pull request #100887 from claudiubelu/test-images/cuda-vector-add-old
test images: Adds cuda-vector-add-old image
2021-07-13 14:34:01 -07:00
Carlos Panato
83f8d1ad72
[go1.16] Update to go1.16.6
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-07-13 18:05:16 +02:00
Tomas Smetana
2b03c77189 e2e: fix NFS options test for IPv6 2021-07-13 10:18:15 +02:00
Kubernetes Prow Robot
789662889b
Merge pull request #101195 from claudiubelu/test-images/private
test images: Adds windows-nanoserver image
2021-07-12 20:42:29 -07:00
Pat Christopher
ef3c344868
seems to work, needs tests and a lot of cleanup 2021-07-12 20:28:10 -07:00
Andrew Sy Kim
9fa641b9ad test/integration/endpoints: check for pod existencen in TestEndpointWithTerminatingPod
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-12 14:22:34 -04:00
Kubernetes Prow Robot
e0a22acaa0
Merge pull request #103598 from tkashem/integration-test-timeout
integration test: provide a timeout for /health
2021-07-12 06:06:47 -07:00
Kubernetes Prow Robot
8ab66dcc4e
Merge pull request #103621 from andrewsykim/integration-test-terminating-endpoints-only
Ensure Endpoints does not include terminating endpoints going forward
2021-07-11 11:26:46 -07:00
Tim Allclair
32783f7568 PodSecurity: Initial webhook implementation 2021-07-09 17:04:29 -07:00
Andrew Sy Kim
2878e472ad test/integration/endpoints: improve docs for TestEndpointWithTerminatingPod
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-09 16:45:23 -04:00
Kubernetes Prow Robot
b55c980279
Merge pull request #102395 from odinuge/node_container_manager_test_skip_systemd
Skip node container manager test on systemd
2021-07-09 13:26:54 -07:00
Andrew Sy Kim
0aa1b3b0bf test/integration/endpoints: add a test to ensure Endpoints does not include terminating pods
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-09 16:19:57 -04:00
Kubernetes Prow Robot
03fa68099e
Merge pull request #98238 from alculquicondor/job-completion
Track Job completion through Pod finalizers and status
2021-07-09 08:42:54 -07:00
Kubernetes Prow Robot
15ef9d42e3
Merge pull request #101866 from saschagrunert/ssh-hosts
e2e: test SSH port on NodeSSHHosts
2021-07-09 07:37:05 -07:00
Kubernetes Prow Robot
3ccfe94563
Merge pull request #100101 from deads2k/mutated-options
prevent mutation of deletion options during delete collection
2021-07-09 07:36:53 -07:00
Kubernetes Prow Robot
29652248eb
Merge pull request #103596 from andrewsykim/endpointslice-terminating
Promote EndpointSliceTerminatingCondition to Beta
2021-07-09 06:01:42 -07:00
Kubernetes Prow Robot
82398d1c0a
Merge pull request #103427 from matthyx/99437
Fix test "Pods should run through the lifecycle of Pods and PodStatus"
2021-07-09 06:00:54 -07:00
Abu Kashem
581b088f76
integration test: provide a timeout for /health 2021-07-09 08:38:15 -04:00
Kubernetes Prow Robot
617064d732
Merge pull request #101432 from swatisehgal/smtaware
node: cpumanager: add options to reject non SMT-aligned workload
2021-07-08 21:04:53 -07:00
Kubernetes Prow Robot
83baa708df
Merge pull request #103429 from saschagrunert/metrics-test-fix
Fix resource metrics e2e test
2021-07-08 17:58:53 -07:00
Kubernetes Prow Robot
dab6f6a43d
Merge pull request #102344 from smarterclayton/keep_pod_worker
Prevent Kubelet from incorrectly interpreting "not yet started" pods as "ready to terminate pods" by unifying responsibility for pod lifecycle into pod worker
2021-07-08 16:48:53 -07:00
Andrew Sy Kim
fd0db61d6c test/intergration/endpointslice: add tests for endpointslice terminating condition
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-08 17:59:11 -04:00
Francesco Romani
a2fb8b0039 smtalign: e2e: add tests
Add e2e tests to cover the basic flows for the `full-pcpus-only` option:
negative flow to ensure rejection with proper error message, and
positive flow to verify the actual cpu allocation.

Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:15:37 +02:00