Commit Graph

22123 Commits

Author SHA1 Message Date
Mark Rossetti
85e4dd2d48 Hostprocess container test updates
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-08-01 12:04:50 -07:00
Xinqi Li
9b48b7489e add creating a destroying services test 2022-08-01 11:24:40 -07:00
Sally O'Malley
47e7d8034f
kubelet tracing
Signed-off-by: Sally O'Malley <somalley@redhat.com>
Co-authored-by: David Ashpole <dashpole@google.com>
2022-08-01 12:55:02 -04:00
Deep Debroy
0ac7cce38a Node e2e test for pod conditions managed by Kubelet
Signed-off-by: Deep Debroy <ddebroy@gmail.com>
2022-08-01 09:52:07 -07:00
Fabian Fulga
ff92963551 Add e2e tests for node log viewer
Adding e2e tests for the feature: add node log viewer
2022-08-01 17:58:51 +03:00
Kubernetes Prow Robot
ef8e7c471e
Merge pull request #110291 from danwinship/kep-3178-iptables-cleanup-kubelet
Implement KEP-3178 "iptables cleanup" in kubelet
2022-08-01 07:50:40 -07:00
Sascha Grunert
584783ee9f
Partly remove support for seccomp annotations
We now partly drop the support for seccomp annotations which is planned
for v1.25 as part of the KEP:

https://github.com/kubernetes/enhancements/issues/135

Pod security policies are not touched by this change and therefore we
have to keep the annotation key constants.

This means we only allow the usage of the annotations for backwards
compatibility reasons while the synchronization of the field to
annotation is no longer supported. Using the annotations for static pods
is also not supported any more.

Making the annotations fully non-functional will be deferred to a
future release.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-08-01 09:19:29 +02:00
Cici Huang
dc15094316 Enable e2e test with feature prometed to beta. 2022-07-31 06:27:24 +00:00
Kubernetes Prow Robot
262d8b2a77
Merge pull request #111446 from alexzielenski/trivial-x-preserve-unknown-fields-correction
correct OpenAPI extension in error message
2022-07-30 05:06:27 -07:00
Kubernetes Prow Robot
3902a53419
Merge pull request #111441 from denkensk/respect-topology
Respect PodTopologySpread after rolling upgrades
2022-07-30 01:40:42 -07:00
Alex Wang
f4bc904376 implementation for MatchLabelKeys in TopologySpreadConstraint
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
2022-07-30 13:23:49 +08:00
Kubernetes Prow Robot
cf2800b812
Merge pull request #111402 from verb/111030-ec-ga
Promote EphemeralContainers feature to GA
2022-07-29 19:29:20 -07:00
Chih-Chieh Yang
ed74de833d Add comment for the reason this test is needed 2022-07-30 00:13:48 +00:00
Tim Allclair
b289c23394 [e2epod] wait: Don't override non-timeout errors 2022-07-29 17:11:50 -07:00
Tim Allclair
55ec0f2d9d [e2epod] wait: Don't retry on 50X errors 2022-07-29 14:56:33 -07:00
Kubernetes Prow Robot
4f469e63f4
Merge pull request #108592 from claudiubelu/tests/enable-etc-hosts
tests: Enables a few Conformance tests for Windows (part 2)
2022-07-29 13:17:23 -07:00
Han Kang
178e57c17b clean-up apiserver metrics and use subsystem
this is specifically so that we have more structured information when
the metric is parsed and stored as a stable metric. This change does not
change the name of the actual metrics.

Change-Id: I861482401ad9a0ae12306b93abf91d6f76d7a407
2022-07-29 12:51:32 -07:00
Kubernetes Prow Robot
9e6d456f05
Merge pull request #111481 from mattcary/gcepd
Enable gce pd driver via a flag rather than an env var
2022-07-29 11:49:13 -07:00
Kubernetes Prow Robot
442548a064
Merge pull request #110534 from kerthcet/feat/ga-component-config
Graduate component config to stable in kube-scheduler
2022-07-29 09:59:11 -07:00
Kubernetes Prow Robot
95ed6820ea
Merge pull request #107329 from pacoxu/promote-e2e-quota
promote LocalStorageCapacityIsolationFSQuotaMonitoring to beta
2022-07-28 19:35:10 -07:00
Matthew Wong
195797c36c Fix missing format string PVC namespace 2022-07-28 17:57:10 -07:00
Kubernetes Prow Robot
73b3be3082
Merge pull request #111009 from marosset/runasnonroot-windows-fix
Windows: ensure runAsNonRoot does case-insensitive comparison on username
2022-07-28 17:55:22 -07:00
kerthcet
02f77a1b84 Feat: ga component config in kube-scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-07-29 08:47:48 +08:00
Matthew Cary
738b458f8e enable gce pd driver via a flag rather than an env var
Change-Id: Ib7c99083ad334e5f6dd152e376a303de794e0bf1
2022-07-28 17:23:28 -07:00
Stephen Heywood
c5517109b9 Promote namespace status e2e test to Conformance 2022-07-29 11:54:47 +12:00
Matthew Wong
6390281a1c Clear ephemeral container resources field when creating one in volume test 2022-07-28 15:47:14 -07:00
Kubernetes Prow Robot
5856e83573
Merge pull request #110007 from ardaguclu/enhancements-alpha-events
Add new flags into alpha events
2022-07-28 07:33:11 -07:00
Arda Güçlü
63b8684cd3 Add new flags into alpha events
In order to promote kubectl alpha events to beta,
it should at least support flags which is already
supported by kubectl get events as well as new flags.

This PR adds;

--output: json|yaml support and does essential refactorings to
integrate other printing options easier in the future.

--no-headers: kubectl get events can hide headers when this flag is set for default printing.
Adds this ability to hide headers also for kubectl alpha events.
This flag has no effect when output is json or yaml for both commands.

--types: This will be used to filter certain events to be printed and
discard others(default behavior is same with --event=Normal,Warning).
2022-07-28 15:16:58 +03:00
Kubernetes Prow Robot
0532324bd1
Merge pull request #111491 from mkumatag/patch-3
Update agnhost image to 2.40
2022-07-28 03:29:21 -07:00
Kubernetes Prow Robot
dd454e0c91
Merge pull request #111489 from humblec/e2e/rbd
update base image to Fedora 36 for volume/(gluster|iscsi|rbd)
2022-07-28 03:29:10 -07:00
Manjunath Kumatagi
095e961657
Update agnhost image to 2.40 2022-07-28 12:19:26 +05:30
Humble Chirammal
b87b7032af update image version of GlusterFS test
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-07-28 11:54:36 +05:30
Humble Chirammal
29ad028396 update base image version of ISCSI test image
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-07-28 11:53:45 +05:30
Humble Chirammal
c158fde1e5 update RBD test image base to Fedora 36
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-07-28 11:45:30 +05:30
Kubernetes Prow Robot
3999794253
Merge pull request #111414 from chewong/chewong-emeritus
chore: move chewong to emeritus_approvers
2022-07-27 18:15:22 -07:00
Kubernetes Prow Robot
1663ec0851
Merge pull request #111249 from Octopusjust/k8s-pr6
test/e2e/common/node: fix several typo
2022-07-27 11:35:08 -07:00
Dan Winship
39bed84947 update "Networking should recreate its iptables rules" test
Don't assume kubelet will create KUBE-MARK-DROP; look for
KUBE-IPTABLES-HINT now instead.
2022-07-27 13:29:39 -04:00
Kubernetes Prow Robot
ce336550f1
Merge pull request #111444 from wojtek-t/prevent_leaking_goroutines
Prevent from future leaks of goroutines in integration tests
2022-07-27 06:31:52 -07:00
Ernest Wong
6fcc671b9d
chore: move chewong to emeritus_approvers
Signed-off-by: Ernest Wong <ernwong@amazon.com>
2022-07-27 03:08:28 +00:00
Stephen Heywood
337bba200c Promote ControllerRevision e2e test to Conformance 2022-07-27 14:47:32 +12:00
Han Kang
c38746c353 add test for fake objectives
Change-Id: Ib0bfdf1299cd74490474f92c41d93090809f41c4
2022-07-26 15:31:25 -07:00
Han Kang
cefa194998 Update test/instrumentation/error.go
Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>
2022-07-26 15:31:25 -07:00
Han Kang
e452850ec3 Add support for summary metrics for stablity checks
Also add entrypoints for verifying and updating a test file for easier
debugging. This is considerably faster than running the stablity checks
against the entire Kubernetes codebase.

Change-Id: I5d5e5b3abf396ebf1317a44130f20771a09afb7f
2022-07-26 15:31:25 -07:00
Kubernetes Prow Robot
3ffdfbe286
Merge pull request #111254 from dims/update-to-golang-1.19-rc2
[golang] Update to 1.19rc2 (from 1.18.3)
2022-07-26 14:25:09 -07:00
Kubernetes Prow Robot
8bc12f24e6
Merge pull request #106388 from alexzielenski/ssa-ignore-nonsemantic-changes
Ignore non-semantic changes to objects
2022-07-26 11:35:10 -07:00
Wojciech Tyczyński
ef607d131f Prevent from future leaks of goroutines in integration tests 2022-07-26 20:08:09 +02:00
Alexander Zielenski
a51d4c1fee
update conformance
x-preserve-unknown-fields becomes x-kubernetes-preserve-unknown-fields
2022-07-26 11:05:46 -07:00
Davanum Srinivas
a9593d634c
Generate and format files
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Davanum Srinivas
4784b58e17
golang: Update to 1.19rc2 from 1.18.3
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Alexander Zielenski
59629acf47
correct OpenAPI extension in error message
when attemping to use preserveUnknownFields the error message leads you astray
2022-07-26 09:43:09 -07:00
Kubernetes Prow Robot
9525206bcb
Merge pull request #111306 from stlaz/restricted_scheduling_test
Make scheduling e2e tests run PSa-restricted pods
2022-07-26 08:01:21 -07:00
Lee Verberne
14ee775215 Promote Ephemeral Containers e2e test to Conformance 2022-07-26 16:52:02 +02:00
Stanislav Laznicka
682ee2908a
Make scheduling e2e tests run PSa-restricted pods
The "pause" pods that are being run in the scheduling tests are
sometimes launched in system namespaces. Therefore even if a test
is considered to be running on a "baseline" Pod Security admission
level, its "baseline" pods would fail to run if the global PSa
enforcement policy is set to "restricted" - the system namespaces
have no PSa labels.

The "pause" pods run by this test can actually easily run with
"restricted" security context, and so this patch turns them
into just that.
2022-07-26 14:32:51 +02:00
Kubernetes Prow Robot
00ace95226
Merge pull request #111046 from wongearl/omit-comparison
omit comparison to bool constant
2022-07-26 03:37:09 -07:00
Kubernetes Prow Robot
a72032f9b3
Merge pull request #111395 from wojtek-t/cleanup_run_apiserver
Remove RunAnAPIServer from integration tests
2022-07-26 01:55:53 -07:00
Lee Verberne
d238e67ba6 Remove EphemeralContainers feature-gate checks 2022-07-26 02:55:30 +02:00
Kubernetes Prow Robot
f88f76f444
Merge pull request #111404 from verb/111025-ec-node-conformance
Add Ephemeral Containers to node conformance tests
2022-07-25 15:30:34 -07:00
Wojciech Tyczyński
5b042f0bf4 Remove RunAnAPIServer from integration tests 2022-07-25 17:52:31 +02:00
Stephen Heywood
1c9ae32103 Promote Event e2e test to Conformance
In promoting this e2e test to conformance it will
supersede e2e test "Event resource lifecycle", which
has been removed in this PR.
2022-07-25 09:15:36 +12:00
Lee Verberne
4ad08e13b2 Add Ephemeral Containers to node conformance tests 2022-07-24 17:31:16 +02:00
Lars Ekman
e93f1161ea Replace fallocate with dd in e2e tests 2022-07-23 17:22:49 +02:00
Kubernetes Prow Robot
c58b2f4a54
Merge pull request #111269 from HecarimV/fix-22072011
use exist const to replace TCP str
2022-07-22 09:43:49 -07:00
Kubernetes Prow Robot
9495b2fb9f
Merge pull request #111325 from wojtek-t/fix_leaking_goroutines_13
Clean shutdown of serviceaccount integration tests
2022-07-22 08:31:49 -07:00
Kubernetes Prow Robot
9ec582da8b
Merge pull request #111347 from aojea/aggregator_serial
Conformance test "manage the lifecycle of an APIService" is Disruptive and should run in Serial
2022-07-22 07:17:37 -07:00
Antonio Ojea
6f681c8357 Tag test should manage the lifecycle of an APIService as Serial
The test breaks the controllers that depend on api services to be resolvable,
per example, the namespace controller, that is heavily used by the e2e framework to clean the environment
2022-07-22 12:08:26 +02:00
Antonio Ojea
38df6fcd3d Revert "Promote APIService e2e test to Conformance"
This reverts commit c4935571a5.
2022-07-22 12:07:53 +02:00
Kubernetes Prow Robot
cab41bd04d
Merge pull request #111324 from wojtek-t/cleanup_testing_namespace
Cleanup no longer used Create/Delete TestingNamespace
2022-07-22 00:05:49 -07:00
Wojciech Tyczyński
5af0866616 Clean shutdown of serviceaccount integration tests 2022-07-22 07:47:15 +02:00
Kubernetes Prow Robot
287888b191
Merge pull request #111330 from marosset/use-pause-3.8
Switching everything to use pause:3.8
2022-07-21 18:28:48 -07:00
Kubernetes Prow Robot
57e4c38ed6
Merge pull request #111060 from aojea/distroless_proxy
use new distroless kube-proxy image
2022-07-21 15:45:26 -07:00
Mark Rossetti
40f3e624a6 Switching everything to use pause:3.8
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-07-21 14:53:15 -07:00
Kubernetes Prow Robot
b431a61e10
Merge pull request #111264 from ii/promote-resourcequota-lifecycle-test
Promote List, Patch & DeleteCollection ResourceQuota test - +3 endpoint coverage
2022-07-21 14:25:39 -07:00
Kubernetes Prow Robot
398a67c033
Merge pull request #111263 from ii/promote-apiservice-lifecycle-test
Promote APIService lifecycle test + 4 Endpoints
2022-07-21 14:25:27 -07:00
Kubernetes Prow Robot
f93a37e314
Merge pull request #111253 from piotrnosek/hpa-tests-1
Add e2e HPA Behavior tests: scale down stabilisation, scale up disabled, scale down disabled
2022-07-21 12:59:42 -07:00
Kubernetes Prow Robot
bce7f34e96
Merge pull request #110967 from iXinqi/lxinqi/port-mutation-test
Add service port mutation test
2022-07-21 12:59:16 -07:00
Wojciech Tyczyński
aca03a4090 Cleanup no longer used Create/Delete TestingNamespace 2022-07-21 19:44:14 +02:00
Antonio Ojea
1ee13900a5 use new distroless kube-proxy image 2022-07-21 09:48:52 +02:00
Michal Wozniak
2f61b6105c Add integration tests for podgc 2022-07-20 15:17:14 +02:00
Kubernetes Prow Robot
8b16a4a4df
Merge pull request #111284 from aojea/slow_storage
Revert "Revert the workaround needed to cleanup for Ginkgo V1"
2022-07-20 05:52:33 -07:00
Kubernetes Prow Robot
e348a76e10
Merge pull request #111238 from bobbypage/fix-npd-test
test: Only Check NPD logs in standalone mode
2022-07-20 04:02:50 -07:00
Piotr Nosek
1c455c10de Add e2e HPA Behavior tests: scale down stabilisation, scale up disabled, scale down disabled. 2022-07-20 09:03:31 +00:00
Antonio Ojea
fc6acb2350 Revert "Revert the workaround needed to cleanup for Ginkgo V1"
This reverts commit 6a82ba82b1.
2022-07-20 10:48:35 +02:00
HaoJie Liu
677f0bae39
use exist const to replace TCP str
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-20 11:19:18 +08:00
Stephen Heywood
bc783aaeb7 Promote ResourceQuota e2e test to Conformance 2022-07-20 11:29:43 +12:00
Kubernetes Prow Robot
728d8fd96b
Merge pull request #109763 from ii/create-namespace-status-test
Write NamespaceStatus endpoints test +3 Endpoints
2022-07-19 16:18:36 -07:00
Stephen Heywood
c4935571a5 Promote APIService e2e test to Conformance 2022-07-20 10:29:11 +12:00
Kubernetes Prow Robot
0cde1b7446
Merge pull request #111242 from wojtek-t/fix_leaking_goroutines_11
Fix leaking goroutines in multiple integration tests
2022-07-19 05:34:30 -07:00
Kubernetes Prow Robot
eeb12bb3af
Merge pull request #110178 from kevindelgado/validation-beta-1-25
Graduate server side validation to beta
2022-07-19 05:34:06 -07:00
ZhangYu
9cbf198ce3 test/e2e/common/node: fix several typo 2022-07-19 17:51:18 +08:00
Wojciech Tyczyński
ab1038f0e0 Clean shutdown of auth integration tests 2022-07-19 11:34:02 +02:00
Wojciech Tyczyński
f673c262bd Clean shutdown of client integration tests 2022-07-19 10:03:51 +02:00
Wojciech Tyczyński
e9e494e14a Clean shutdown of apiserver integration tests 2022-07-19 10:03:51 +02:00
David Porter
d906521acd test: Only Check NPD logs in standalone mode
NPD can run in "standalone" or "daemonset" mode in cluster GCE tests.

For standalone mode, NPD runs as a systemd unit, daemonset mode it runs
as pod.

If NPD is running in standalone mode, as soon as we detect that the npd
service does not exist with `systemctl status`, we should skip the rest
of the checks such as looking at the journalctl logs or pid.

Signed-off-by: David Porter <david@porter.me>
2022-07-19 01:03:13 -07:00
Kubernetes Prow Robot
9cf4f15884
Merge pull request #110633 from wojtek-t/fix_leaking_goroutines_10
Fix leaking goroutines in multiple integration tests
2022-07-18 21:56:05 -07:00
Stephen Heywood
1d6cb6acf0 Create e2e test for NamespaceStatus endpoints
e2e test validates the following 3 endpoints
- patchCoreV1NamespaceStatus
- readCoreV1NamespaceStatus
- replaceCoreV1NamespaceStatus
2022-07-19 14:03:12 +12:00
Kubernetes Prow Robot
1c1efde70d
Merge pull request #109639 from Abirdcfly/fixduplicateimport
cleanup: remove all duplicate import
2022-07-18 16:55:23 -07:00
Mark Rossetti
588ff515bc Windows: ensure runAsNonRoot does case-insensitive comparison on user name
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-07-18 15:23:13 -07:00
Kevin Delgado
d815449ae5 Adjust testing for server-side validation as default 2022-07-18 16:16:00 +00:00
Kevin Delgado
d983fd8078 Add server-side metadata unknown field validation 2022-07-18 14:55:12 +00:00
Kubernetes Prow Robot
d79cf03615
Merge pull request #110569 from wojtek-t/fix_leaking_goroutines_8
Clean shutdown of controlplane integration tests
2022-07-18 02:49:15 -07:00
Kubernetes Prow Robot
e8410006ac
Merge pull request #107042 from kkkkun/update_metrics_bucket
Update etcdRequestLatency metrics bucket size
2022-07-16 00:28:52 -07:00
Kubernetes Prow Robot
9d59f95a11
Merge pull request #111138 from kidddddddddddddddddddddd/two_default_ingressClasses
Fix failing e2e test: Handle two default IngressClasses more cleanly
2022-07-15 16:49:09 -07:00
Chih-Chieh Yang
4fc7fd25bf Fix the apf metrics names 2022-07-15 18:27:29 +00:00
Chih-Chieh Yang
b0c211a1e5 Fix PL seat util metric retrieval 2022-07-15 17:11:16 +00:00
Chih-Chieh Yang
f298d506e8 APF concurrency isolation integration test (#1)
* Add APF concurrency utilization test
2022-07-15 17:11:16 +00:00
kidddddddddddddddddddddd
a76c0f9898 select the lower name ingressClass in e2e 2022-07-15 18:17:57 +08:00
Kubernetes Prow Robot
b3057e7ccc
Merge pull request #106834 from mengjiao-liu/sysctl-allow-slashes
Add support for slash as sysctl separator to Pod securityContext field and to PodSecurityPolicy
2022-07-15 01:04:24 -07:00
Alexander Zielenski
40343793f7
benchmark and metrics for new timestamp transformer comparison
add proper metrics

rename & improve documentation for path metric dimension
2022-07-14 11:56:36 -07:00
Alexander Zielenski
7233538008
revert timestamp updates to object if non-managed fields do not change
add short-circuiting logic for long comaprison

replace timestamps rather than doing a full managed fields deepcopy

add guard
2022-07-14 11:55:26 -07:00
Kubernetes Prow Robot
e5f4f8d71b
Merge pull request #110896 from ravisantoshgudimetla/promote-minReadySec-sts-update-ga
Promote minReadySeconds to GA
2022-07-14 09:45:09 -07:00
Kubernetes Prow Robot
a655368390
Merge pull request #104907 from adrianreber/2021-09-10-checkpoint
Minimal checkpointing support
2022-07-14 09:44:56 -07:00
Wojciech Tyczyński
8e267eba51 Clean shutdown of controlplane integration tests 2022-07-14 14:38:22 +02:00
Adrian Reber
92ea6e32b8
Add e2e tests for checkpointing
Signed-off-by: Adrian Reber <areber@redhat.com>
2022-07-14 10:27:41 +00:00
Wojciech Tyczyński
690d2f0101 Clean(er) shutdown of auth integration tests 2022-07-14 11:25:57 +02:00
Wojciech Tyczyński
13e4f2b554 Clean shutdown of volume integration tests 2022-07-14 11:25:57 +02:00
Abirdcfly
00b9ead02c cleanup: remove duplicate import
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-14 11:25:19 +08:00
Kubernetes Prow Robot
f3654386ab
Merge pull request #111097 from saltbo/fix-thethe-typo
fix: update the typo code comment
2022-07-13 18:03:07 -07:00
Brian Pursley
693e1299a6 Fix rollout history bug
Fix rollout history bug where the latest revision was
always shown when requesting a specific revision and
specifying an output.

Add unit and integration tests for rollout history.
2022-07-13 18:27:05 -04:00
Kubernetes Prow Robot
c813886dc4
Merge pull request #110930 from falser101/fix/codeCleanUp
fix:remove Redundant type conversion
2022-07-13 09:27:38 -07:00
Ravi Gudimetla
9144250a92 Promote minReadySeconds to GA 2022-07-13 11:37:10 -04:00
Kubernetes Prow Robot
5d7fdf1f12
Merge pull request #111065 from chendave/cleanup_measure
Stop using the deprecated `Measure` method
2022-07-12 19:57:50 -07:00
saltbo
d2bab218dd
fix: update the typo code comment 2022-07-13 10:16:51 +08:00
falser101
f07d8d396f fix:remove Redundant type conversion
Signed-off-by: jianfei.zhang <jianfei.zhang@daocloud.io>
2022-07-13 10:03:38 +08:00
Kubernetes Prow Robot
cb0f09275e
Merge pull request #111036 from Huang-Wei/rm-MakeDefaultErrorFunc
merge MakeDefaultErrorFunc into handleSchedulingFailure
2022-07-12 18:37:59 -07:00
Kubernetes Prow Robot
f58d83777f
Merge pull request #111063 from chendave/revert_workaround
Revert the workaround needed to cleanup for Ginkgo V1
2022-07-12 16:21:36 -07:00
Wei Huang
4f77732540
merge MakeDefaultErrorFunc into handleSchedulingFailure 2022-07-12 12:11:16 -07:00
Kubernetes Prow Robot
71481bf247
Merge pull request #111075 from ii/fix-controllerrevision-test
Fix ControllerRevision e2e test flake
2022-07-12 11:35:56 -07:00
Kubernetes Prow Robot
a455c296fd
Merge pull request #111015 from xmcqueen/master
Capture the Container Logs for a Flaky Test
2022-07-11 16:58:50 -07:00
Xinqi Li
d6f729995a add service port mutation test 2022-07-11 11:44:49 -07:00
Brian McQueen
37d246bac1 capture the container logs on pod error to assist in debugging test failures #109295 2022-07-11 09:46:46 -07:00
Dave Chen
d61adab518 Stop using the deprecated Measure method
As what suggested by Ginkgo migration guide, `Measure` node was
deprecated and replaced with `It` node which creates `gmeasure.Experiment`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-11 17:40:33 +08:00
Dave Chen
6a82ba82b1 Revert the workaround needed to cleanup for Ginkgo V1
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-11 14:49:40 +08:00
Stephen Heywood
6c320b2991 Fix ControllerRevision e2e test 2022-07-11 13:38:24 +12:00
alingse
3bf9a559b6 fix pass []any as any in variadic function 2022-07-09 18:53:54 +08:00
wongearl
c2cb482181 omit comparison to bool constant 2022-07-09 17:15:27 +08:00
Kubernetes Prow Robot
9d577d8a29
Merge pull request #110576 from DangerOnTheRanger/cel-e2e-part2
Add second set of additional CRD validation E2E tests
2022-07-08 21:41:58 -07:00
Kubernetes Prow Robot
1d954908ba
Merge pull request #109394 from pohly/storage-capacity-storage-version
Kubernetes 1.25: CSIStorageCapacity: use v1 as storage version
2022-07-08 19:35:51 -07:00
Kubernetes Prow Robot
2a70749717
Merge pull request #111034 from bertinatto/bump-azure-disk-timeouts
e2e: bump Azure Disk in-tree timeouts
2022-07-08 16:05:57 -07:00
Kubernetes Prow Robot
6e8331932b
Merge pull request #111005 from DangerOnTheRanger/cel-cost-limit-integration-test
Add x-kubernetes-validations cost limit integration test
2022-07-08 16:05:46 -07:00
Kubernetes Prow Robot
9dc13f4f57
Merge pull request #111011 from ii/promote-patch-pod-status-test
Promote patchCoreV1NamespacedPodStatus test - +1 endpoint
2022-07-08 09:07:52 -07:00
Fabio Bertinatto
eefa0fd2ed e2e: bump Azure Disk in-tree timeouts
Some operations with Azure Disk volumes can be arbitrarily slow
sometimes. This causes CI flakes that are hard to debug.
Bumping the timeouts has sown to improve or eliminate this issue.
2022-07-08 11:46:26 -03:00
Patrick Ohly
2e8fa3ee6b CSIStorageCapacity: use v1 as storage version
This can be done because downgrades are only supported down to 1.24 and that
release supports v1.
2022-07-08 10:06:06 +02:00
Dave Chen
05c513d5bf ginkgo.By can only be used inside a runnable node
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
3833695e75 Redirect klog out to GinkgoWriter
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
82ac6be0e9 Custom reporter of Junit report is no longer needed
Ginkgo is now writing the JUnit file itself. The -report-dir parameter is used
as fallback for enabling JUnit output in case that users haven't migrated to
the new -junit-report parameter.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
5ac8105b86 Set Ginkgo config by the method of GinkgoConfiguration()
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
46a3954ba5 Migrate ProgressReporter to Ginkgo V2
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
fd4b5b629b Stop using the deprecated method CurrentGinkgoTestDescription
Besides, the using of method might lead to a `concurrent map writes`
issue per the discussion here: https://github.com/onsi/ginkgo/issues/970

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
2f3028c00d Define the timeout to 24h for Ginkgo V2
Default timeout setting has been reduced from `24h` down to `1h` in
Ginkgo V2, but for some long running test this is too short.

How long to abort the test was controlled by the the linux command `timeout`
in V1. e.g. `'timeout -k 30s 150m ...`, and is configured in the file
like `sig-network-misc.yaml`.

Set the timeout manually for Ginkgo V2 to avoid the early aborting.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
20498fd65d Generate conformance test spec with offset decorator
`FullStackTrace` is not available in v2 if no exception found
with test execution.

The change is needed for conformance test's spec validation.

pls see: https://github.com/onsi/ginkgo/issues/960 for details.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
dd58016484 Implement DetailsReporter report within ReportAfterSuite
The change is needed to verify the conformance test spec, as this
is verified in `verify-conformance-yaml.sh`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
b57bade50c Switch to use dry-run option to generate test spec
`dryRun` option is deprecated and will not be able to
generate test spec.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
f792256954 e2e: adapt output tests to Ginkgo v2 and Gomega 1.19
Full stack traces are on by default. The approach for collecting results is
different. Tests run in their own goroutine, therefore runTests is no longer
part of their callstack. To cover stack traces with more than one entry, a new
test case gets added with a separate helper function.

Gomega object formatting now includes the type.

This removes the last remaining reference to Ginkgo v1.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
375b2a5fb2 Build Ginkgo binary
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
ece0bb3522 Adapt to new type of GinkgoWriter
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
2eb8e9e81f ginkgo.It doesn't have a timeout arg anymore
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
05c0f4a298 Define the const of GINKGO_PANIC directly
`ginkgo.GINKGO_PANIC` is not available and cannot be imported
directly.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
857458cfa5 update ginkgo from v1 to v2 and gomega to 1.19.0
- update all the import statements
- run hack/pin-dependency.sh to change pinned dependency versions
- run hack/update-vendor.sh to update go.mod files and the vendor directory
- update the method signatures for custom reporters

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:46 +08:00
Kubernetes Prow Robot
6732550634
Merge pull request #110877 from claudiubelu/agnhost-windows-file-permissions
agnhost: Check symlink target's permissions for Windows
2022-07-07 19:11:45 -07:00
Kubernetes Prow Robot
2b657a0f3b
Merge pull request #110805 from saschagrunert/seccomp-default-beta
Graduate SeccompDefault feature to beta
2022-07-07 17:54:11 -07:00
Kubernetes Prow Robot
6d5cccfdf3
Merge pull request #110122 from ii/create-controller-revision-test
Write  ControllerRevisionLifecycleTest +7 Endpoints
2022-07-07 17:54:04 -07:00
Stephen Heywood
c288ebe53c Promote PodStatus e2e test to Conformance 2022-07-08 11:51:58 +12:00
Kermit Alexander
3eed801adc Add k8s CEL library and runtime cost tests. 2022-07-07 17:02:05 +00:00
Kermit Alexander
40da208b3d Add runtime cost limit test. 2022-07-07 10:08:55 +00:00
Kubernetes Prow Robot
2a017f94bc
Merge pull request #110237 from ii/create-apiservice-lifecycle-test
Write APIService lifecycle test + 4 Endpoints
2022-07-06 22:25:44 -07:00
Kubernetes Prow Robot
f74aa4714d
Merge pull request #109683 from ii/create-resourcequota-test
Write List, Patch & DeleteCollection ResourceQuota test - +3 endpoint coverage
2022-07-06 22:25:32 -07:00
Tim Hockin
55232e2ef7 Rename IPFamilyPolicyType => IPFamilyPolicy 2022-07-06 15:42:26 -07:00
Kubernetes Prow Robot
bd2776e0c9
Merge pull request #110868 from rikatz/endport-to-ga
Promote endPort in Network Policy to GA
2022-07-05 19:48:49 -07:00
Kubernetes Prow Robot
89aaf7c02d
Merge pull request #110862 from Abirdcfly/deleteutil
cleanup: delete same utils.go in pkg/apis/storage
2022-07-01 18:23:22 -07:00
Pablo Acevedo Montserrat
34f5938abe Add readinessProbe to aggregated api service test 2022-07-01 16:22:41 +02:00
Kubernetes Prow Robot
d2cea9475b
Merge pull request #110840 from aojea/echoserver
Remove e2e  echoserver image and replace it by agnost
2022-06-30 13:54:57 -07:00
Kubernetes Prow Robot
982743593b
Merge pull request #110798 from ii/create-event-lifecycle-test
Write Event Lifecycle Test +1 Endpoint
2022-06-30 13:54:44 -07:00
Kubernetes Prow Robot
8a7eda4f61
Merge pull request #110831 from chendave/openapi
Bump `kube-openapi` to the latest
2022-06-30 10:42:09 -07:00
Markus Lehtonen
2eadf30358 test/e2e: fix GetCurrentKubeletConfig
Seemingly on slow connections if the response to /configz request was
chunked the kubectl proxy was terminated before the response body was
received and read, causing unexpected EOF errors. This patch changes the
configz polling code so that the whole response body is read before
closing the proxy connection.
2022-06-30 14:57:12 +03:00
Kubernetes Prow Robot
91aca10d59
Merge pull request #108958 from 249043822/e2e-density
Fix:[Flaky test] create a sequence of pods latency/resource should be within limit when create 10 pods with 50 background pods
2022-06-29 20:18:06 -07:00
Ricardo Katz
3e7bdbbf30 Promote endPort to GA 2022-06-30 00:33:43 +00:00
Paul S. Schweigert
b6675fce4a
fix link to eviction policy in e2enode eviction test
Signed-off-by: Paul S. Schweigert <paulschw@us.ibm.com>
2022-06-29 19:23:49 -04:00
Kensei Nakada
b0d47cb380
scheduler_perf: allow users to specify default pod and node specs (#101799)
* scheduler_perf: default pod and node spec

* Fix: un-support DefaultNodeTemplatePath
2022-06-29 11:44:07 -07:00
Claudiu Belu
14708f23b5 agnhost: Check symlink target's permissions for Windows
We're not interested in checking the file permissions of the
symlink itself, but it's target's permissions.
2022-06-29 09:15:47 -07:00
Abirdcfly
1dbd9de96d
cleanup:delete same utils.go in pkg/apis/storage
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-29 20:54:34 +08:00
Antonio Ojea
092f7f601e remove echoserver image 2022-06-29 09:50:04 +02:00
Antonio Ojea
3204572f01 replace echoserver image with agnhost
agnhost contains the same features than echoserver.
2022-06-29 09:49:19 +02:00
Dave Chen
852f166960 Fix the failure of testcase TestFailureOutput
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-29 11:47:18 +08:00
Kubernetes Prow Robot
6ed938fc8f
Merge pull request #110705 from ii/patch-pod-status-test
Write patchCoreV1NamespacedPodStatus test - +1 endpoint
2022-06-27 16:35:55 -07:00
Stephen Heywood
7a9552593b Create ControllerRevision lifecycle e2e test
The test validates the following endpoints

- createAppsV1NamespacedControllerRevision
- deleteAppsV1CollectionNamespacedControllerRevision
- deleteAppsV1NamespacedControllerRevision
- listAppsV1ControllerRevisionForAllNamespaces
- patchAppsV1NamespacedControllerRevision
- readAppsV1NamespacedControllerRevision
- replaceAppsV1NamespacedControllerRevision
2022-06-28 09:34:30 +12:00
Stephen Heywood
bc22560bb4 Create e2e test for PodStatus endpoint
e2e test validates the following endpoint
- patchCoreV1NamespacedPodStatus
2022-06-28 09:14:11 +12:00
Kubernetes Prow Robot
10810ab42b
Merge pull request #110788 from 21kyu/change_reflect_ptr
Change reflect.Ptr to reflect.Pointer
2022-06-27 10:16:59 -07:00
Sascha Grunert
a4f966aada
Graduate SeccompDefault feature to beta
As outlined in the KEP, we now graduate the Kubelet feature to beta
which means that it is enabled by default. The corresponding Kubelet
flag still defaults to `false`, but we now have the chance to e2e test
the feature by using a new serial test case.

KEP: https://github.com/kubernetes/enhancements/issues/2413

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-06-27 14:39:55 +02:00
Arda Güçlü
f5af2d0e91 (kubectl events): Add integration tests
This PR adds integration tests for `kubectl alpha events`
2022-06-27 09:32:32 +03:00
Stephen Heywood
faae770946 Migrate and update current e2e event test
e2e test validates the following missing endpoint
- replaceCoreV1NamespacedEvent
2022-06-27 10:43:24 +12:00
21kyu
df168d5b5c Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
Paco Xu
b36786e96e promote LSCIQuotaFeature to beta 2022-06-23 10:00:54 +08:00
Kubernetes Prow Robot
dee37aacc1
Merge pull request #110652 from Abirdcfly/fixchunksize
fix: --chunk-size with selector returns missing result
2022-06-22 18:21:43 -07:00
Kubernetes Prow Robot
e64852fcad
Merge pull request #110330 from DangerOnTheRanger/cel-e2e
Add additional CRD validation E2E tests
2022-06-22 17:03:43 -07:00
Abirdcfly
fba297629d fix: --chunk-size with selector returns missing result
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-23 07:07:13 +08:00
Kubernetes Prow Robot
18b5efceda
Merge pull request #110410 from Jiawei0227/master
CSIMigration feature gate to GA
2022-06-22 04:05:48 -07:00
Kubernetes Prow Robot
23144130a8
Merge pull request #109396 from SergeyKanzhelev/testDurationCheck
check for the test duraiton to make NodeProblemDetector test reliable
2022-06-22 01:43:43 -07:00
Mengjiao Liu
5fca1112e1 Add test for sysctl support slash as separator 2022-06-22 10:39:52 +08:00
wongearl
44404d309c fix "k8s.io/client-go/rest" is being imported more than once,optimize code 2022-06-22 10:31:24 +08:00
ZhangKe10140699
a945b6f066 Fix:[Flaky test] ci-kubernetes-node-kubelet-serial-cri-o job: [sig-node] Density [Serial] [Slow] create a sequence of pods latency/resource should be within limit when create 10 pods with 50 background pods 2022-06-22 08:14:43 +08:00
Kubernetes Prow Robot
3beb8dc596
Merge pull request #110612 from mattcary/ss-integration
Add TestAutodeleteOwnerRefs statefulset integration test
2022-06-21 15:29:42 -07:00
Joachim Bartosik
a936e21538 Revert "Add e2e test for HPA behavior: scale up delay"
The test is failing since its first run: #110662

This reverts commit a724818ad0.
2022-06-20 14:50:46 +02:00
Stephen Heywood
d1447d6419 Create e2e test for ResourceQuota endpoints
e2e test validates the following 3 extra endpoints
- deleteCoreV1CollectionNamespacedResourceQuota
- listCoreV1ResourceQuotaForAllNamespaces
- patchCoreV1NamespacedResourceQuota
2022-06-20 12:26:27 +12:00
Kubernetes Prow Robot
3724273d38
Merge pull request #110640 from aspsk/aspsk/pr/fix-test-e2e-network-hostport
test/e2e/network: fix a bug in the hostport e2e test
2022-06-19 06:54:03 -07:00
Kermit Alexander
192aea7119 Remove need for escaped quotes. 2022-06-17 22:40:38 +00:00
Anton Protopopov
4026d355bc test/e2e/network: add a check to the hostport e2e test
As described in 8c76845b03 ("test/e2e/network: fix a bug in the hostport e2e
test") if we have two pods with the same hostPort, hostIP, but different
protocols, a CNI may be buggy and decide to forward all traffic only to one of
these pods. Add a check that we receiving requests from different pods.

Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2022-06-17 21:08:35 +00:00
Patrick Ohly
1aceac797d logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)
2022-06-17 20:22:13 +02:00
Anton Protopopov
fd94ff6487 agnhost/netexec: fix an error message
The error message inside the UDP server used a SCTP port instead of a UDP port
2022-06-17 16:03:33 +00:00
Anton Protopopov
8c76845b03 test/e2e/network: fix a bug in the hostport e2e test
The hostport e2e test (sonobuoy run --e2e-focus 'validates that there is no
conflict between pods with same hostPort but different hostIP and protocol')
checks, in particular, that two pods with the same hostPort, the same hostIP,
but different L4 protocols can coexist on one node.

In order to do this, the test creates two pods with the same hostIP:hostPort,
one TCP-based, another UDP-based. However, both pods listen on both protocols:

    netexec --http-port=8080 --udp-port=8080

This can happen that a CNI which doesn't distinguish between TCP and UDP
hostPorts forwards all traffic, TCP or UDP, to the same pod. As this pod
listens on both protocols it will reply to both requests, and the test
will think that everything works properly while the second pod is indeed
disconnected. Fix this by executing different commands in different pods:

    TCP: netexec --http-port=8080 --udp-port=-1
    UDP: netexec --http-port=8008 --udp-port=8080

The TCP pod now doesn't listen on UDP, and the UDP pod doesn't listen on TCP on
the target hostPort. The UDP pod still needs to listen on TCP on another port
so that a pod readiness check can be made.
2022-06-17 13:06:41 +00:00
Kubernetes Prow Robot
7992398725
Merge pull request #110451 from lzhecheng/fix-spread-pods
[e2e] Should spread Pods to schedulable cluster zones
2022-06-16 14:37:05 -07:00
Kubernetes Prow Robot
92c5f3f01c
Merge pull request #110583 from Riaankl/node_status_ineligible
Update ineligible_endpoints.yaml
2022-06-16 12:33:04 -07:00
Riaan Kleinhans
39d3d9439f
Update ineligible_endpoints.yaml 2022-06-17 06:24:35 +12:00
Kubernetes Prow Robot
80c19baa11
Merge pull request #110557 from ldsdsy/modify
Fixing grammar in e2e Windows test logging
2022-06-16 10:14:48 -07:00
ldsdsy
2a2d33b2b1 Modify annotation syntax errors 2022-06-16 16:46:51 +08:00
Kubernetes Prow Robot
4b024fc4ee
Merge pull request #110459 from wangyysde/promote-pod-security-to-ga
PodSecurity: promote config and feature gate to GA
2022-06-15 14:41:22 -07:00
Matthew Cary
3af09ab04a add TestAutodeleteOwnerRefs statefulset integration test
Change-Id: I3aa3220df59c33fc40f1d8e08e055caa1f6fb4a3
2022-06-15 13:33:02 -07:00
Kubernetes Prow Robot
2b51b2595a
Merge pull request #110604 from wojtek-t/fix_leaking_goroutines_9
Fix leaking goroutines in multiple integration tests
2022-06-15 09:01:18 -07:00
Wojciech Tyczyński
6b59525746 Clean shutdown of flowcontrol integration tests 2022-06-15 16:53:42 +02:00
Wojciech Tyczyński
57242e3cbb Clean shutdown of openapi integration tests 2022-06-15 16:40:54 +02:00
Kubernetes Prow Robot
700fea3d42
Merge pull request #110558 from wespanther/update-debian
Update Debian base images to latest
2022-06-15 07:23:17 -07:00
apeltop
e530336b18 fix typos 2022-06-15 13:38:48 +09:00
wangyysde
ab66a38194 PodSecurity: promote config and feature gate to GA
Signed-off-by: wangyysde <net_use@bzhy.com>
2022-06-15 09:29:47 +08:00
Riaan Kleinhans
6d19ddc7bf
Update ineligible_endpoints.yaml 2022-06-15 10:27:33 +12:00
Kubernetes Prow Robot
8e541911b8
Merge pull request #110574 from SataQiu/test-speed-20220614
Using t.Run() in integration test TestApplyAlsoCreates
2022-06-14 12:07:45 -07:00
Kubernetes Prow Robot
5503bb0570
Merge pull request #110529 from wojtek-t/fix_leaking_goroutines_7
Fix leaking goroutines in multiple integration tests
2022-06-14 09:09:54 -07:00
SataQiu
20f8a06e50 using t.Run() in integration test TestApplyAlsoCreates 2022-06-15 00:01:10 +08:00
Wojciech Tyczyński
ed442cc3dd Clean(er) shutdown of auth integration tests 2022-06-14 13:55:31 +02:00
Wojciech Tyczyński
3930362ad4 Clean(er) shutdown of apiserver integration tests 2022-06-14 13:55:31 +02:00
Wojciech Tyczyński
41d7ddee1a Clean shutdown of apimachinery integration tests 2022-06-14 13:55:31 +02:00
Wojciech Tyczyński
8a87681a39 Clean shutdown of resourcequota integration tests 2022-06-14 13:55:31 +02:00
Kubernetes Prow Robot
27cf82d785
Merge pull request #110385 from piotrnosek/hpa-beh-tests
Add e2e test for HPA behavior: scale up delay
2022-06-14 00:25:32 -07:00
Wes Panther
6ac853fe60 Update Debian base images to latest
- debian-base:bullseye-v1.3.0
- debian-iptables:bullseye-v1.4.0
- setcap:bullseye-v1.3.0
2022-06-13 21:36:46 -07:00
Kubernetes Prow Robot
c0cc911667
Merge pull request #110509 from kevindelgado/e2e-namespace-bug
Use namespace created by framework
2022-06-13 13:28:26 -07:00
Kubernetes Prow Robot
c0642b749e
Merge pull request #110179 from Jefftree/fix_openapi_v2
Prune defaults for CRDs for OpenAPI V2
2022-06-13 13:28:12 -07:00
Kubernetes Prow Robot
2b14fd9fb1
Merge pull request #110515 from MikeSpreitzer/unpairvec
Remove the PairVec types
2022-06-13 08:04:24 -07:00
Kubernetes Prow Robot
661cbe6823
Merge pull request #109850 from ardaguclu/validate-nooptdefval
Define NoOptDefVal for validate flag
2022-06-13 08:04:11 -07:00
Kubernetes Prow Robot
61a0ee5588
Merge pull request #110465 from bertinatto/e2e-populator-fix
e2e: ensure single image for populator containers
2022-06-13 06:44:11 -07:00
Kevin Delgado
1bfaccb434 Use namespace created by framework 2022-06-13 07:08:58 +00:00
Mike Spreitzer
1f1cfba2a3 Remove the PairVec types 2022-06-12 23:37:15 -04:00
Kubernetes Prow Robot
c8a2db31ac
Merge pull request #110505 from wojtek-t/fix_leaking_goroutines_6
Clean shutdown of some auth integration tests
2022-06-12 07:18:09 -07:00
Wojciech Tyczyński
8ef7dd49ee Clean shutdown of auth integration tests 2022-06-10 19:46:50 +02:00
Kubernetes Prow Robot
5b5fc07a29
Merge pull request #110272 from brianpursley/k-110270
Fix e2e test failure
2022-06-10 09:41:45 -07:00
Kubernetes Prow Robot
6e0e9f382e
Merge pull request #109194 from pohly/log-tests
log tests
2022-06-10 03:07:46 -07:00
Zhecheng Li
b8b18a0a05 [e2e] Should spread Pods to schedulable cluster zones
Some Nodes like control plane ones should not be considered
to spread Pods.

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
2022-06-10 16:40:56 +08:00
Kermit Alexander
9fb55af69b Make schema formatting consistent. 2022-06-09 23:15:30 +00:00
Kubernetes Prow Robot
226323178e
Merge pull request #110256 from bobbypage/terminal-ready-condition
kubelet: Mark ready condition as false explicitly for terminal pods
2022-06-08 20:07:42 -07:00
David Porter
b4b338d4eb test: update graceful node shutdown e2e with watch
Use a watch to detect invalid pod status updates in graceful node
shutdown node e2e test. By using a watch, all pod updates will be
captured while the previous logic required polling the api-server which
could miss some intermediate updates.

Signed-off-by: David Porter <david@porter.me>
2022-06-08 16:19:16 -07:00
Kermit Alexander
ff3d04d5df Fix incorrect wording in expectedErrMsg. 2022-06-08 22:45:29 +00:00
Jefftree
e2cbf9759b Add test to check for _v2 2022-06-08 21:33:07 +00:00
Fabio Bertinatto
9ef5c4e03a e2e: ensure single image for populator containers
This is useful in environments where the Deployment image is replaced
by another image from an internal registry (via fixture). In that case,
the populator running in populate mode should use the same image as the
populator running in controller mode.
2022-06-08 15:08:42 -03:00
Kermit Alexander
c58c02fcf9 Ensure estimated cost limit is exceeded. 2022-06-08 17:40:50 +00:00
Kermit Alexander
6f66ed06f2 Correct cost estimation check. 2022-06-07 16:36:20 +00:00
Kermit Alexander
120744bf44 Change case on syntax error check. 2022-06-07 16:31:41 +00:00
Kubernetes Prow Robot
198dd7668a
Merge pull request #110395 from tnqn/fix-sctp-test
Fix SCTP default-deny test
2022-06-07 08:45:07 -07:00
Kubernetes Prow Robot
39b6e6c6a0
Merge pull request #110362 from wojtek-t/fix_leaking_goroutines_5
Fix leaking goroutines in multiple integration tests
2022-06-07 08:44:55 -07:00
Kubernetes Prow Robot
9fad5c981a
Merge pull request #110327 from neolit123/1.25-ga-unversioned-kubelet-config
kubeadm: graduate the UnversionedKubeletConfigMap FG to GA
2022-06-07 07:04:56 -07:00
cpanato
aac61cea97
Update Go to 1.18.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-06-07 13:32:07 +02:00
Ryan Phillips
97db4ac963 add service e2e tests 2022-06-06 17:00:59 -05:00
Ryan Phillips
230124f3d4 kubelet: add e2e test to verify probe readiness 2022-06-06 17:00:55 -05:00
Jiawei Wang
760365d5c9 CSIMigration feature gate to GA 2022-06-06 21:19:19 +00:00
Wojciech Tyczyński
2af8d0bbd7 Clean shutdown of events integration tests 2022-06-06 20:33:20 +02:00
Wojciech Tyczyński
e5ec28ff86 Clean shutdown of network integration tests 2022-06-06 20:33:20 +02:00
Kubernetes Prow Robot
59ffc93678
Merge pull request #110404 from humblec/e2e-flag
correct the e2e framework flag description typos
2022-06-06 08:06:22 -07:00
Humble Chirammal
3988ac1498 correct the e2e framework flag description typos
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-06-06 19:23:28 +05:30
Kubernetes Prow Robot
913e8536f2
Merge pull request #110240 from yselkowitz/storage-e2e
Update storage e2e test images
2022-06-06 06:52:23 -07:00
Quan Tian
5dd9184945 Fix SCTP default-deny test
The test is about SCTP and the accessed service only forwarded SCTP
traffic to the server Pod but the client Pod used TCP protocol, so the
test traffic never reached the server Pod and the test NetworkPolicy
was never enforced, which lead to test success even if the default-deny
policy was implemented wrongly. In some cases it may got failure result
if there was an external server having same IP as the cluster IP and
listening to TCP 80 port.

Signed-off-by: Quan Tian <qtian@vmware.com>
2022-06-06 13:14:07 +08:00
Piotr Nosek
a724818ad0 Add e2e test for HPA behavior: scale up delay 2022-06-05 06:52:44 +00:00
Kubernetes Prow Robot
ca630bc118
Merge pull request #109828 from pohly/polling-failures
[E2E] enhance pod polling failures
2022-06-03 18:08:31 -07:00
Kubernetes Prow Robot
1f90b7980b
Merge pull request #108997 from dobsonj/issue79980
Fix volume reconstruction for CSI ephemeral volumes
2022-06-03 18:08:20 -07:00
Kubernetes Prow Robot
b7337cb171
Merge pull request #110235 from jsturtevant/fix-new-restricted-pod-tests
test: RunAsUser causes pods to not start on Windows
2022-06-03 13:32:20 -07:00
Patrick Ohly
f02c72eaf9 pods: more tolerant checking of poll tests
Under load we might skip some of the poll events, leading to less output. Now
we expect only at least one output line for polling.
2022-06-03 13:41:11 +02:00
Patrick Ohly
2b299526b2 e2e: include more information in pod timeout error
The advantage is that the extra error information is guaranteed to be printed
directly before the failure and we avoid one extra log line that would have to
be correlated with the failure.
2022-06-03 13:41:05 +02:00
Patrick Ohly
8e79f4ce27 e2e: make failure message for unexpected errors more readable
The failure message from Gomega was hard to read because explanation and error
text were separated by the error dump. In many cases, that error dump doesn't
add any relevant information.

Now the error is dumped first as info message (just in case that it is
relevant) and then a shorter failure message is created from explanation and
error text.
2022-06-03 13:41:02 +02:00
Patrick Ohly
486744e814 e2e: test output of e2epod wait
Both output during the test and the failure message are covered.
2022-06-03 11:03:16 +02:00
Patrick Ohly
0e0e51d792 e2e: refactor Ginkgo output testing
The helper code will be useful for testing other parts of the e2e framework.
2022-06-03 10:25:23 +02:00
Patrick Ohly
2ad1fc5f8f e2e: include expected line number in output test
This makes it easier to see when comment lines must be added or removed.
2022-06-03 10:04:40 +02:00
Stephen Heywood
e35ea8503f Create APIService lifecycle e2e test
The test validates the following endpoints
- deleteApiregistrationV1CollectionAPIService
- patchApiregistrationV1APIServiceStatus
- replaceApiregistrationV1APIService
- replaceApiregistrationV1APIServiceStatus
2022-06-03 12:05:44 +12:00
Yaakov Selkowitz
9c2be70e44 storage e2e: hostpath driver v1.8.0
Changes includes results of the following command:

test/e2e/testing-manifests/storage-csi$ ./update-hostpath.sh v1.8.0

This also includes backports from the following post-release commits:
https://github.com/kubernetes-csi/csi-driver-host-path/pull/355
https://github.com/kubernetes-csi/csi-driver-host-path/pull/357

Also includes a manual update of the busybox image to match the tag used
elsewhere in kubernetes e2e.
2022-06-02 19:33:35 -04:00
Kubernetes Prow Robot
b7b824bb9e
Merge pull request #110033 from mk46/etcd_update_v3.5.4
etcd: Updated to v3.5.4
2022-06-02 13:26:31 -07:00
Kubernetes Prow Robot
e562e93010
Merge pull request #110303 from hunknownz/enhance_assertions_windows
enhance assertions in test/e2e/windows
2022-06-02 12:11:50 -07:00
Wojciech Tyczyński
d9d46d5326 Clean shutdown of certificates integration tests 2022-06-02 21:02:04 +02:00
Wojciech Tyczyński
783da34f54 Clean shutdown of disruption integration tests 2022-06-02 21:02:04 +02:00
Kubernetes Prow Robot
03d0e2c338
Merge pull request #110264 from wojtek-t/fix_leaking_goroutines_4
Fix leaking goroutines in multiple integration tests
2022-06-02 03:59:47 -07:00
Kubernetes Prow Robot
b4fbd12c3a
Merge pull request #106441 from yjjy0921/master
create resultsDir if the folder not exists
2022-06-01 13:39:46 -07:00
Jonathan Dobson
c8d3cc5c07 e2e: restore volume lifecycle checks for csi-hostpath driver
These tests were previously disabled to work around #79980
https://github.com/kubernetes/kubernetes/commit/f1e1f3a416b70bafadf961518c330ce3b1b5459
2022-06-01 14:23:10 -06:00
Kubernetes Prow Robot
19ca12cb3e
Merge pull request #109820 from fromanirh/e2e-node-enable-device-plugin-test
e2e: node: re-enable the device plugin tests
2022-06-01 12:03:40 -07:00
Kermit Alexander
05da62c075 Add additional CRD validation tests. 2022-06-01 17:11:21 +00:00
Lubomir I. Ivanov
403ca0c1a2 e2e_kubeadm: cleanup tests for UnversionedKubeletConfig
- don't require clusteconfiguration.kubernetesVersion
- use the helper functions GetConfigMap, ExpectRole, ExpectRoleBinding
(these were used before UnversionedKubeletConfig went Beta)
2022-06-01 17:17:07 +03:00
Kubernetes Prow Robot
ba502ee555
Merge pull request #110180 from gnufied/add-ephemeral-expansion-tests
Enable volume expansion tests for generic ephemeral volumes
2022-06-01 06:11:02 -07:00
Manish Kumar
e9e8be304c etcd: Updated to v3.5.4 2022-06-01 07:52:46 +05:30
Kubernetes Prow Robot
78fb1fa9a2
Merge pull request #109938 from dims/move-from-k8s.gcr.io-to-registry.k8s.io
Move from k8s.gcr.io to registry.k8s.io
2022-05-31 13:45:23 -07:00
Han Kang
731397086b remove deprecated metric and promote the replacement to STABLE 2022-05-31 09:53:28 -07:00
Davanum Srinivas
50bea1dad8
Move from k8s.gcr.io to registry.k8s.io
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-05-31 10:16:53 -04:00
hunknownz
fdb43cc5ad enhance assertions in test/e2e/windows
Signed-off-by: hunknownz <klercc37@gmail.com>
2022-05-31 20:42:04 +08:00
Patrick Ohly
f45322ef41 logs: add micro benchmarks for argument passing
Parameter passing and value lookup from context are important aspects of the
proposed contextual logging.
2022-05-31 08:07:37 +02:00
Patrick Ohly
04ecc1b63b logs: test JSON output with klog output test
The updated klog provides a reusable test suite for output handling.
Using it increases our test coverage without having to copy the test cases from
there into some JSON specific test suite.
2022-05-31 08:07:37 +02:00
Lubomir I. Ivanov
2a18a2d59b test/e2e_kubeadm: add URL scheme test for node CRI annotations
The tests in nodes_test.go check if the Node objects
in a kubeadm cluster are annotated with a CRI socket
path. It is used by kubeadm to store a CRI socket per node.

Add a new test condition to verify if the CRI socket path
is prefixed with URL scheme "unix://".
2022-05-30 17:10:14 +03:00
Brian Pursley
457181fbd6 Fix e2e test failure
Remove namespace from manifest to fix the error: the namespace from
the provided object "my-ns" does not match the namespace
"kubectl-8939". You must pass '--namespace=my-ns' to perform this
operation.
2022-05-28 18:09:41 -04:00
Wojciech Tyczyński
3af4c74f37 Clean shutdown of cronjob integration tests 2022-05-28 21:36:54 +02:00
Wojciech Tyczyński
64d1b24cc8 Clean shutdown of daemonset integration tests 2022-05-28 21:31:28 +02:00
Wojciech Tyczyński
f31d0305ad Clean shutdown of defaulttolerationseconds integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
411c319db8 Clean shutdown of dualstack integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
8a959396b8 Clean shutdown of volumescheduling integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
3b61f4ac20 Clean shutdown of apply integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
5073506aa7 Clean shutdown of statefulset integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
aee829abf4 Clean shutdown of job integration tests 2022-05-28 21:14:09 +02:00
Kubernetes Prow Robot
c6970e6452
Merge pull request #110250 from wojtek-t/fix_leaking_goroutines_3
Fix leaking goroutines in scheduler integration tests
2022-05-28 05:51:02 -07:00
Kubernetes Prow Robot
8b6dd065d7
Merge pull request #110255 from robscott/fix-pod-eviction-ip
Endpoints and EndpointSlices should not publish IPs for terminal pods
2022-05-27 16:24:42 -07:00
Rob Scott
aa02b7a434
Updating e2e test to check EndpointSlices and Endpoints as well 2022-05-27 21:10:59 +00:00
James Sturtevant
061b8e8049 RunAsUser causes pods to not start on Windows 2022-05-27 09:31:39 -07:00
Kubernetes Prow Robot
f161dde085
Merge pull request #109977 from JohnTitor/remove-poddelete-use
Remove the use of derecated `PodDeleteTimeout` const
2022-05-27 06:21:08 -07:00
Wojciech Tyczyński
c802118e81 Update scheduler tests 2022-05-27 14:57:21 +02:00
Kubernetes Prow Robot
61b983a66b
Merge pull request #110229 from wojtek-t/fix_leaking_goroutines_1
Fix leaking goroutine in multiple integration tests by migrating to common StartTestServer utility
2022-05-27 00:41:19 -07:00
Antonio Ojea
3a8edca2d8 e2e: services with evicted pods doesn't have endpoints 2022-05-27 06:43:03 +02:00
Antonio Ojea
ffdbce6291 e2e test for evicted pods 2022-05-27 06:43:03 +02:00
Wojciech Tyczyński
8ca1ec2b60 Clean shutdown of cronjob integration tests 2022-05-26 19:29:34 +02:00
Wojciech Tyczyński
2893ad3e5b Clean shutdown of evictions integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
c0149f78d7 Clean shutdown of certificates integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
2583942eb7 Clean shutdown of daemonset integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
5fc1c39bd4 Clean shutdown of configmap integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
b8d28ef2b6 Clean shutdown of storageclasses integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
fbd2184583 Clean shutdown of namespace integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7b44e64dd8 Clean shutdown of secret integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
492bad026c Clean shutdown of endpointslice integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7add7ba9e5 Clean shutdown of endpoints integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7ac6638f92 Clean shutdown of replicationcontroller integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
33831c9fd3 Clean shutdown of replicaset integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
368802dd7e Clean shutdown of deployment integration tests 2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
79289294b2 Clean shutdown of pods integration tests 2022-05-26 17:18:26 +02:00
Wojciech Tyczyński
054c489d00 Clean shutdown of metrics integration tests 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
284509f36e Clean shutdown of ttlcontroller integration tests 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
c6e3bd732e Clean shutdown of persistentvolume integration tests 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
f68e72a360 Clean shutdown of volume integration tests 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
3b98f59e16 Clean shutdown of service integration tests 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
6ae4bbbfc2 Add namespace utility test functions 2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
fe3616cafb Clean shutdown of kcm, ccm and scheduler 2022-05-26 12:36:59 +02:00
Kubernetes Prow Robot
eb37a5d9c1
Merge pull request #110000 from wojtek-t/fix_shutdown_sequence
Fix apiserver shutdown in integration tests
2022-05-26 02:53:22 -07:00
Wojciech Tyczyński
6f706775bc Clean shutdown of test apiserver 2022-05-26 10:42:48 +02:00
Kubernetes Prow Robot
60481c944e
Merge pull request #109946 from tallclair/ps-e2e
Restricted Pod E2E tests
2022-05-25 14:45:22 -07:00
Kubernetes Prow Robot
1e7fa3478e
Merge pull request #110214 from aojea/agnhost_2.39
agnhost: bump version 2.39
2022-05-25 13:36:02 -07:00
Kubernetes Prow Robot
f08c680d2f
Merge pull request #110192 from RomanBednar/gcp-bump
bump gcp driver and sidecar versions
2022-05-25 13:35:54 -07:00
Kubernetes Prow Robot
b0991517e5
Merge pull request #110127 from jwtty/boolcheck
test/e2e/common/node: enhance assertions
2022-05-25 13:35:23 -07:00
Antonio Ojea
7397e60477 agnhost: bump version 2.39 2022-05-25 16:02:10 +02:00
Kubernetes Prow Robot
1290d6a4c0
Merge pull request #110212 from aojea/fix_agnhost_sigterm
agnhost: fix sigterm shutdown
2022-05-25 06:38:44 -07:00
Kubernetes Prow Robot
072148d339
Merge pull request #110194 from p0lyn0mial/hardens-test-aggregated-api-server
hardens TestAggregatedAPIServer
2022-05-25 04:58:45 -07:00
Roman Bednar
5c16ce257f bump gcp driver and sidecar versions 2022-05-25 13:54:27 +02:00
Antonio Ojea
2b822161f0 agnhost: fix sigterm shutdown 2022-05-25 12:50:23 +02:00
Lukasz Szaszkiewicz
c4e337c57c hardens TestAggregatedAPIServer
Since ClientCAs are provided by "client-ca::kube-system::extension-apiserver-authentication::client-ca-file" controller
we need to wait until it picks up the configmap (via a lister) before checking the CAs otherwise the response might contain an empty result.
2022-05-25 12:41:26 +02:00
Kubernetes Prow Robot
e1d92980e3
Merge pull request #107419 from sanposhiho/non-need-e2e-queue-move
Delete non-need `AddUnschedulableIfNotPresent` calling in `TestCoreResourceEnqueue`
2022-05-24 17:06:43 -07:00
Tim Allclair
702ab97722 Run common pod E2Es as restricted 2022-05-24 16:10:16 -07:00
Tim Allclair
ccc69b1e9a Add MixinRestrictedPodSecurity e2e util 2022-05-24 16:10:16 -07:00
Kubernetes Prow Robot
f8c77fda0c
Merge pull request #110176 from deads2k/try-new-image
update to new level of agnhost
2022-05-24 14:27:25 -07:00
Hemant Kumar
50f1e16e4d Log new size and old sizes 2022-05-24 14:57:29 -04:00
Kubernetes Prow Robot
1ad8613d5c
Merge pull request #109790 from p0lyn0mial/users-watchtools-informerwatcher
users of watchtools.NewIndexerInformerWatcher should wait for the informer to sync
2022-05-24 08:52:05 -07:00
David Eads
c1a891c661 update to the latest agnhost image 2022-05-24 11:12:37 -04:00
Kubernetes Prow Robot
78a4ba6af8
Merge pull request #110174 from deads2k/readyz-agnhost
add readyz handling to netexec
2022-05-24 07:26:18 -07:00
Kubernetes Prow Robot
c3d550d4e7
Merge pull request #110101 from MikeSpreitzer/rename-observers
Give apf metrics abstractions more familiar names
2022-05-24 07:26:06 -07:00
Lukasz Szaszkiewicz
59a5c1a6ea hardens integration job tests
the job controller used by the tests must wait for the caches to sync
since the tests don't check /readyz there is no way
the tests can tell it is safe to call the server and requests won't be rejected
2022-05-24 13:47:38 +02:00
Lukasz Szaszkiewicz
4a7845b485 users of watchtools.NewIndexerInformerWatcher should wait for the informer to sync
previously users of this method were relying on the fact that a call to LIST was made.
Instead, users should use the dedicated `HasSynced` method.
2022-05-24 13:05:40 +02:00
Hemant Kumar
fb9db79d3f Enable volume expansion tests for generic ephemeral volumes 2022-05-23 21:58:34 -04:00
Kubernetes Prow Robot
fdb2d54475
Merge pull request #108210 from jlsong01/update_kubectl_warning
coordinate the kubectl warning style
2022-05-23 15:57:09 -07:00
Mike Spreitzer
7d64a93a14 Give apf metrics abstractions more familiar names
The logic is similar to Prometheus gauges and vectors,
adopt that terminology.
2022-05-23 16:09:43 -04:00
David Eads
566394467e add readyz handling to netexec 2022-05-23 14:26:09 -04:00
Kubernetes Prow Robot
1131fb95fc
Merge pull request #110125 from wojtek-t/fix_resource_quota_shutdown
Fix resource quota shutdown
2022-05-23 07:18:03 -07:00
jlsong01
272e245f06 add a warning printer in cli-runtime to coordinate warning style
modified:   staging/src/k8s.io/kubectl/pkg/cmd/auth/auth.go
2022-05-23 19:10:15 +08:00
Kubernetes Prow Robot
e9f1c9cc7c
Merge pull request #110138 from wojtek-t/fix_leaking_goroutines_in_kubelet_test
Fix leaking goroutines in kubelet integration test
2022-05-23 04:06:01 -07:00
Wojciech Tyczyński
f8211d7e44 Fix ResourceQuota admission shutdown 2022-05-23 12:34:50 +02:00
Wojciech Tyczyński
0d41d2921e Fix leaking goroutines in kubelet integration test 2022-05-23 11:50:29 +02:00
Wantong Jiang
93692ef57d enhance assertions in test/e2e/common/node 2022-05-23 00:39:09 +00:00
sanposhiho
bbd5f19497 Delete non-need AddUnschedulableIfNotPresent in e2e 2022-05-22 06:54:49 +00:00
Kubernetes Prow Robot
4ab90ccebb
Merge pull request #109719 from stlaz/e2e_nodeauthn_nosasecret
auth e2e: node_authn test: don't expect a SA secret
2022-05-19 15:13:53 -07:00
Kubernetes Prow Robot
a608fba48c
Merge pull request #110055 from brianpursley/vol-limit-flake
Increase csiNodeInfoTimeout from 1 minute to 2 minutes
2022-05-19 09:21:20 -07:00
Kubernetes Prow Robot
a1c8e9386a
Merge pull request #110090 from wojtek-t/shutdown_broadcaster_in_controllers
Fix event broadcaster shutdown in multiple controllers
2022-05-18 03:38:53 -07:00
Kubernetes Prow Robot
84c8afeba3
Merge pull request #110095 from neolit123/1.25-update-master-label-taint
kubeadm: cleanup the "master" taint on CP nodes during upgrade
2022-05-18 00:52:54 -07:00
Kevin Delgado
91c016e4d5
Add unknown metadata field validation tests (#109316)
* add unknown metadata validation e2e tests

* Address PR Feedback

* explicitly check for unexpected nil errors or namespace errors
2022-05-17 15:04:30 -07:00
Wojciech Tyczyński
11b679c66a Fix event broadcaster shutdown in multiple controllers 2022-05-17 22:14:19 +02:00
Lubomir I. Ivanov
ddd046f3dd kubeadm: cleanup the "master" taint on CP nodes during upgrade
- iniconfiguration.go: stop applying the "master" taint
for new clusters; update related unit tests in _test.go
- apply.go: Remove logic related to cleanup of the "master" label
during upgrade
- apply.go: Add cleanup of the "master" taint on CP nodes
during upgrade
- controlplane_nodes_test.go: remove test for old "master" taint
on nodes (this needs backport to 1.24, because we have a kubeadm
1.25 vs kubernetes test suite 1.24 e2e test)
2022-05-17 19:21:49 +03:00
Francesco Romani
f3e157d168 e2e: node: re-enable the device plugin tests
Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 16:05:13 +02:00
Francesco Romani
48b5af49e0 e2e: node: reorder imports
trivial cleanup

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 16:04:01 +02:00
Francesco Romani
98eb6db7c0 e2e: node: fix plugins directory
Previously, the e2e test was overriding the plugins socket directory to
"/var/lib/kubelet/plugins_registry". This seems wrong, and with that
setting the e2e test was already failing, because the registration
process was timing out, in turn because the kubelet was trying to call
back the device plugin in the wrong place (see below for details).

I can't explain why it worked before - or it if worked at all - but
it really seems that `pluginapi.DevicePluginPath` is the right
setting here.

+++

In a nutshell, the device plugin registration process works like this:

1. The kubelet runs and creates the device plugin socket registration
   endpoint:
	KubeletSocket = DevicePluginPath + "kubelet.sock"
	DevicePluginPath = "/var/lib/kubelet/device-plugins/"
2. Each device plugin will listen to an ENDPOINT the kubelet will connect
   backk to.  IOW the kubelet will act like a client to each device plugin,
   to perform allocation requests (and more)
   Each device plugin will serve from a endpoint.
   The endpoint name is plugin-specific, but they all must be inside a
   well-known directory: pluginapi.DevicePluginPath
3. The kubelet creates the device plugin pod, like any other pod
4. During the startup, each device plugin wants to register itself in the
   kubelet. So it sends a request through
   the registration endpoint. Key details:
	grpc.Dial(kubelet registration socket)
	registration request
	reqt := &pluginapi.RegisterRequest{
		Version:      pluginapi.Version,
		Endpoint:     endpointSocket,	<- socket relative to pluginapi.DevicePluginPath
		ResourceName: resourceName, 	<- resource name to be exposed
}
5. While handling the registration request, kubelet dial back the
   device plugin on socketDir + req.Endpoint.
   But socketDir is hardcoded in the device manager code to
   pluginapi.KubeletSocket

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 16:03:50 +02:00
Francesco Romani
23147ff4b3 e2e: node: devplugin: tolerate node readiness flip
In the AfterEach check of the e2e node device plugin tests,
the tests want really bad to clean up after themselves:
- delete the sample device plugin
- restart again the kubelet
- ensure that after the restart, no stale sample devices
  (provided  by the sample device plugin) are reported anymore.

We observed that in the AfterEach block of these e2e tests
we have quite reliably a flip/flop of the kubelet readiness
state, possibly related to a race with/ a slow runtime/PLEG check.

What happens is that the kubelet readiness state is true,
but goes false for a quick interval and then goes true again
and it's pretty stable after that (observed adding more logs
to the check loop).

The key factor here is the function `getLocalNode` aborts the
test (as in `framework.ExpectNoError`) if the node state is
not ready. So any occurrence of this scenario, even if it
is transient, will cause a test failure. I believe this will
make the e2e test unnecessarily fragile without making it more
correct.

For the purpose of the test we can tolerate this kind of glitches,
with kubelet flip/flopping the ready state, granted that we meet
eventually the final desired condition on which the node reports
ready AND reports no sample devices present - which was the condition
the code was trying to check.

So, we add a variant of `getLocalNode`, which just fetches the
node object the e2e_node framework created, alongside to a flag
reporting the node readiness. The new helper does not make
implicitly the test abort if the node is not ready, just bubbles
up this information.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 14:22:25 +02:00
Francesco Romani
56c539bff0 e2e: node: deviceplug: deepcopy the pod dev template
Let's avoid unexpected side effects

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 14:22:24 +02:00
Kubernetes Prow Robot
22a21f974f
Merge pull request #110063 from wojtek-t/cleanup_testing_namespaces_in_integration
Simplify Create/Delete-TestingNamespace functions
2022-05-16 01:50:18 -07:00
Wojciech Tyczyński
deef9e40de Simplify Create/Delete-TestingNamespace functions 2022-05-15 23:06:26 +02:00
Brian Pursley
db9d5c1e77 Increase csiNodeInfoTimeout from 1 minute to 2 minutes 2022-05-14 16:29:28 -04:00
cpanato
90871a0b2f
Update Go to 1.18.2
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-05-14 00:57:15 +02:00
Kubernetes Prow Robot
bbdcce6a9e
Merge pull request #109880 from Jefftree/patch-4
Remove warning log for crd merging
2022-05-13 15:31:54 -07:00
Kubernetes Prow Robot
47bb8c6d0c
Merge pull request #108777 from pjo256/recursive-rollout-status
feat(kubectl rollout): support multiple resources for rollout status
2022-05-13 13:15:55 -07:00
Jefftree
fad5353ef8 Integration test for openapi scale & status 2022-05-13 11:45:31 -07:00
Kubernetes Prow Robot
1a6adee3d6
Merge pull request #109753 from matthyx/109577
do not install docker with curl
2022-05-13 07:33:49 -07:00
Matthias Bertschy
d42321dc05 recommend containerd instead of docker, cleanup 2022-05-13 15:25:15 +02:00
Kubernetes Prow Robot
9720d130e4
Merge pull request #110030 from wojtek-t/clean_shutdown_2
Minor cleanups in integration test shutdown
2022-05-13 03:43:48 -07:00
Wojciech Tyczyński
492e7111a0 Minor cleanup of apply tests 2022-05-13 11:37:22 +02:00
Wojciech Tyczyński
89549142c0 Stop leaking apiserver in tracing test 2022-05-13 09:47:24 +02:00
Kubernetes Prow Robot
340ba56567
Merge pull request #109989 from tallclair/image-type
Use typed ImageID for imageutils images
2022-05-13 00:13:48 -07:00
Kubernetes Prow Robot
1be1ec4aa3
Merge pull request #109970 from stevekuznetsov/skuznets/isolate-versioner
storage: move the APIObjectVersioner definition to storage
2022-05-12 12:32:44 -07:00
Tim Allclair
ab29782d24 Use typed ImageID for imageutils images 2022-05-12 08:51:07 -07:00
Kubernetes Prow Robot
dd1a7893d4
Merge pull request #109997 from aojea/downward_e2e
don't skip Feature:EphemeralStorage based on skipper
2022-05-12 08:09:26 -07:00
Kubernetes Prow Robot
976a940f4a
Merge pull request #109978 from wojtek-t/remove_storage_tracking
Cleanup no-longer used storage cleanup method
2022-05-12 06:31:25 -07:00
Kubernetes Prow Robot
076168b84d
Merge pull request #109990 from tnqn/fix-netpol-error
Correct errors in the netpol test suite
2022-05-12 03:43:26 -07:00
Kubernetes Prow Robot
9254f94da1
Merge pull request #109413 from lzhecheng/flexible-internal-static-ip
[e2e][azure] Make internalStaticIP flexible
2022-05-12 03:43:14 -07:00
Antonio Ojea
9b1f99bee8 don't skip Feature:EphemeralStorage based on skipper 2022-05-12 10:20:52 +02:00
Quan Tian
b792f7392f Correct errors in the netpol test suite
It was confusing to see message saying "unable to update pod" when it
was actually trying to create a Pod.

Signed-off-by: Quan Tian <qtian@vmware.com>
2022-05-12 10:48:51 +08:00
Kubernetes Prow Robot
cae22d8b8a
Merge pull request #108797 from deads2k/release-1.25-removed-01-checker
update for APIs removed in 1.25
2022-05-11 19:25:13 -07:00
Kubernetes Prow Robot
af99c75390
Merge pull request #109961 from pohly/e2e-framework-log-test-fix
e2e: fix unit test
2022-05-11 14:59:12 -07:00
Wojciech Tyczyński
2dd44d6226 Cleanup no-longer used storage cleanup method 2022-05-11 20:11:37 +02:00
Kubernetes Prow Robot
564b204923
Merge pull request #109972 from wojtek-t/clean_shutdown_1
Clean shutdown of couple controllers in integration tests
2022-05-11 10:47:25 -07:00
Yuki Okushi
6bc6a671ae
Remove the use of derecated PodDeleteTimeout const 2022-05-12 01:58:23 +09:00
Kubernetes Prow Robot
c0f48d2a2e
Merge pull request #109781 from wojtek-t/fix_scheduler_tests
Close events recording sink in integration tests
2022-05-11 08:47:14 -07:00
Kubernetes Prow Robot
3bcbf3de11
Merge pull request #108884 from kerthcet/feature/implement-nodeInclusionPolicy
feat: implement node inclusion policy in scheduler
2022-05-11 08:47:02 -07:00
Steve Kuznetsov
3939f3003e
storage: move the APIObjectVersioner definition to storage
The means by which we extract and parse the version of an API object is
not specific to etcd3. In order to allow for a generic suite of tests
against any storage.Interface imlpementation, we need this logic to live
outside of the etcd3 package, or import cycles will exist.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-11 08:19:32 -07:00
Wojciech Tyczyński
1fcc5d9eae Clear shutdown in deployment integration test 2022-05-11 17:05:31 +02:00
Wojciech Tyczyński
ca68691feb Clear shutdown in replicationcontroller integration test 2022-05-11 17:05:31 +02:00
Wojciech Tyczyński
c043535250 Clear shutdown in replicaset integration test 2022-05-11 17:05:31 +02:00
Patrick Ohly
e198c3a544 e2e: fix node wait test
Because these tests don't run in the CI, the test did not quite match the
actual code anymore. Apparently a retry mechanism was added after the test was
written.
2022-05-11 11:43:55 +02:00
Patrick Ohly
38348532a3 e2e: reformat log test
Using multi-line strings makes the test source code easier to read.
2022-05-11 11:29:56 +02:00
Patrick Ohly
228640ffab e2e: fix logs unit test
The test had two problems:
- the expected line was off by one (probably modified import statements)
- when Gomega failed in TestFailureOutput, Ginkgo panicked because
  its fail handler was called outside of a Ginkgo node

Now github.com/stretchr/testify/assert is used for comparing the output because
it works in a unit test without further customization and because the failure
messages are more useful.
2022-05-11 10:50:51 +02:00
Kubernetes Prow Robot
b74d023e70
Merge pull request #109694 from RyanAoh/fix-108837
Be sure to update the status of StatefulSet even if the new replica creation fails
2022-05-10 21:28:50 -07:00
kerthcet
790d983867 feat: implement NodeInclusionPolicy in TopologySpreadConstraint
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-05-11 07:51:18 +08:00
Kubernetes Prow Robot
cf64022a0f
Merge pull request #109896 from superbrothers/kubectl-delete-fix-discovery-cache-ttl
Fix discovery cache TTL to 6 hours
2022-05-10 14:33:36 -07:00
Kubernetes Prow Robot
517dd4ccfe
Merge pull request #109822 from claudiubelu/windows-node-name
tests: Include the Windows node name in the exception
2022-05-10 14:33:25 -07:00
David Eads
d323a30f60 remove PDB v1beta1 usage where v1 is equivalent 2022-05-10 13:32:07 -04:00
Kubernetes Prow Robot
8245695028
Merge pull request #109919 from stevekuznetsov/skuznets/clarify-integration-namespace
test/integration: clarify namespace utilities
2022-05-10 05:17:56 -07:00
Aohan Yang
774df1b0af Be sure to update the status of StatefulSet even if the new replica creation fails 2022-05-10 10:25:26 +08:00
Kubernetes Prow Robot
5fdbfbcd4a
Merge pull request #109921 from endocrimes/dani/use-newer-tf-image
node-perf: use tf-wide-deep:1.2
2022-05-09 19:07:42 -07:00
Kubernetes Prow Robot
8a4f82c6de
Merge pull request #109852 from pacoxu/DownwardAPIHugePages
do not skip DownwardAPIHugePages
2022-05-09 16:29:42 -07:00
Mauricio Poppe
34f078d7f4 Use sync in provisioning tests 2022-05-09 21:10:33 +00:00
Kubernetes Prow Robot
d0832102a7
Merge pull request #106415 from ahrtr/replace_ioutil_with_io_os_test_image_version
Replace ioutil with os and io for the test/images
2022-05-09 12:36:32 -07:00
Kubernetes Prow Robot
b059f99951
Merge pull request #109901 from aojea/integration_shutdown
integration: force close httpserver on exit
2022-05-09 11:17:30 -07:00
Danielle Lancashire
8756e9c027 node-perf: use tf-wide-deep:1.2 2022-05-09 16:58:18 +00:00
Steve Kuznetsov
173c1da99e
test/integration: clarify namespace utilities
For a developer that's not very familiar with the integration flow, it
is very surprising to see that the namespace creation logic does not
create anything and that the namespace deletion logic does not delete
anything, either.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-09 09:57:01 -07:00
Antonio Ojea
eba27127db integration: force close httpserver on exit 2022-05-09 16:18:26 +02:00
Kubernetes Prow Robot
543893cbb0
Merge pull request #109899 from wojtek-t/cleanup_apiserver_holder
Minor cleanup in  apiserver startup in integration tests
2022-05-09 06:33:31 -07:00
Kubernetes Prow Robot
4717a59097
Merge pull request #109734 from kidddddddddddddddddddddd/enhance_assertions_auth
test/e2e/auth: enhance assertions
2022-05-09 03:29:18 -07:00
Wojciech Tyczyński
d1c9042f57 Unify apiserver startup in integration tests 2022-05-09 12:08:38 +02:00
Paco Xu
db147b7d67 (ut) add tests for bad filed values checking; refactor some funcs 2022-05-09 16:17:32 +08:00
ahrtr
584d994133 replace all the deprecated ioutil with io and os 2022-05-09 15:27:13 +08:00
Wei Huang
c96109a321
Refactor scheduler integration test that starts APIServer in a non-standarized manner 2022-05-08 22:28:13 -07:00
Kazuki Suda
d2b4c017c8
Fix discovery cache TTL to 6 hours
Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com>
2022-05-09 13:47:52 +09:00
Kubernetes Prow Robot
7af5a7bfc5
Merge pull request #109602 from lavalamp/remove-clustername
Finish clustername removal
2022-05-07 08:01:16 -07:00
Kubernetes Prow Robot
570f1092f4
Merge pull request #109542 from sanposhiho/fix-test-case-scheduler-perf
scheduler_perf: Remove test cases for Preemption which always fail
2022-05-07 03:33:29 -07:00
kidddddddddddddddddddddd
6791ba2590 test/e2e/auth: enhance assertions 2022-05-07 11:58:06 +08:00
Kubernetes Prow Robot
83b25e371f
Merge pull request #109834 from aojea/split_scheduling_integration
integration: refactor and split scheduler tests
2022-05-06 09:07:32 -07:00
Kubernetes Prow Robot
7e6a8bc3db
Merge pull request #109252 from kerthcet/fix/goroutine-leak-in-integration-tests
fix: resolve goroutine leak in integration tests
2022-05-06 09:07:17 -07:00
Paco Xu
aa0642790b do not skip DownwardAPIHugePages 2022-05-06 21:24:58 +08:00
Arda Güçlü
0245e74590 Define NoOptDefVal for validate flag
validate flag does not have default value defined when there is no
parameter passed, therefore it tries to use next irrelevant flag.

This PR defines NoOptDefVal for validate flag which is set "strict".
2022-05-06 14:17:50 +03:00
Antonio Ojea
6a0e55d124 remove unused variables in test/integration/scheduler/filters/filters_test.go 2022-05-06 12:50:30 +02:00
Antonio Ojea
46fc39f440 remove unused variables in test/integration/scheduler/util.go 2022-05-06 12:49:59 +02:00
Antonio Ojea
ef410d18e1 remove unused function on b/test/integration/util/util.go 2022-05-06 12:47:25 +02:00
kerthcet
c74aeab5a5 fix: resolve goroutine leak in statefulset integration tests
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-05-06 17:51:34 +08:00