Commit Graph

110447 Commits

Author SHA1 Message Date
Patrick Ohly
efc172f4bf e2e framework: better error when service account creation times out
When waiting for the default service account in a new namespace, not finding
one was reported as "unexpected error: timed out waiting for the condition"...
2022-09-16 11:21:31 +02:00
Kubernetes Prow Robot
178f246bbc
Merge pull request #111381 from muyangren2/assert_Equal_azure
Fix test order  pkg/volume/azuredd/azure_common_test.go
2022-09-14 04:59:01 -07:00
Kubernetes Prow Robot
9e65786254
Merge pull request #112421 from pohly/e2e-annotated-location
e2e: improve description of framework callbacks
2022-09-14 01:09:00 -07:00
B Aravind
b307321c0a
I have evaluated TODO retry remove if feasible (#112383)
Hi team, hope u all doing well.

I have checked TODO that to remove "retry" if feasible but it's important i think that it shouldn't be removed because it was used in every file on your repo.

Update idempotency.go

Update idempotency.go

Update idempotency.go
2022-09-13 22:31:00 -07:00
Kubernetes Prow Robot
d5e5f48b88
Merge pull request #112406 from Riaankl/createCoreV1NamespacedBinding_ineligible
Update_ineligible_endpoints.yaml : add createCoreV1NamespacedBinding to the list
2022-09-13 19:01:01 -07:00
Kubernetes Prow Robot
ea4c28c7f8
Merge pull request #112403 from akankshakumari393/check_mount_state
Call SetupDevice for Block Volume only if Volume is not globally Mounted
2022-09-13 15:45:12 -07:00
Kubernetes Prow Robot
cee668beba
Merge pull request #112205 from jprzychodzen/ensure-metric-registered
Ensure metric 'running_managed_controllers' is registered
2022-09-13 15:45:00 -07:00
Riaan Kleinhans
7ceeca13a3
Fix 1.17 to 1.7 2022-09-14 09:14:28 +12:00
Kubernetes Prow Robot
084a412e03
Merge pull request #112200 from pohly/client-go-shared-informer-factory-shutdown
client-go: support waiting for SharedInformerFactory shutdown
2022-09-13 09:43:01 -07:00
Kubernetes Prow Robot
7be35679b8
Merge pull request #112422 from liggitt/prune-root-replace
Prune unused root replace directives
2022-09-13 07:37:05 -07:00
Jordan Liggitt
a9fd8a8a46
Prune unused root replace directives 2022-09-13 09:30:26 -04:00
Patrick Ohly
84990d53cf e2e: improve description of framework callbacks
When Ginkgo shows a BeforeEach/AfterEach/DeferCleanup, then it can only show
the source code where the callback was registered because there is no
description parameter. This can be improved by passing a custom CodeLocation.

Because a description like "set up framework" might not be enough, the source
code is still shown, too.
2022-09-13 14:27:32 +02:00
Riaan Kleinhans
f5502818ad
Update ineligible_endpoints.yaml 2022-09-13 11:16:42 +12:00
Riaan Kleinhans
4b4084915a
Update_ineligible_endpoints.yaml
remove createCoreV1NamespacedBinding
2022-09-13 09:35:58 +12:00
Patrick Ohly
e89d1d47e8 client-go: support waiting for SharedInformerFactory shutdown
SharedInformerFactory starts goroutines in Start and those can be stopped by
closing the stop channel. However, there was no API that waits for the
goroutines.

This is a problem for unit testing. A test has to return while the informers
are still running, which may get flagged by tools like
https://github.com/uber-go/goleak or by klog/ktesting when those informers
lead to log output.

While at it, more documentation gets added to address
https://github.com/kubernetes/kubernetes/issues/65036.
2022-09-12 21:05:06 +02:00
Kubernetes Prow Robot
0f37b31206
Merge pull request #112046 from aojea/etcd_healthz
rate limite etcd healthcheck request
2022-09-12 12:01:27 -07:00
Kubernetes Prow Robot
3ac752e4a0
Merge pull request #112003 from sanposhiho/metrics-goroutine
feature(scheduler): add "goroutines" metric and deprecate the "scheduler_goroutines" metric
2022-09-12 12:01:16 -07:00
Kubernetes Prow Robot
5858aa2bef
Merge pull request #110267 from TinySong/auth-cani
update auto can-i error message
2022-09-12 12:01:05 -07:00
Kubernetes Prow Robot
46e1718462
Merge pull request #112351 from piotrnosek/fixbehaviortests
Fix flaky and failing HPA E2E Behavior tests
2022-09-12 10:55:37 -07:00
Kubernetes Prow Robot
ed520f3cac
Merge pull request #112309 from shyamjvs/disable-compression
Add a "DisableCompression" option to kubeconfig
2022-09-12 10:55:25 -07:00
Akanksha Kumari
86fa479273 Call SetupDevice only if Volume is not globally Mounted 2022-09-12 23:00:00 +05:30
Kubernetes Prow Robot
16ca3eb96d
Merge pull request #112391 from bboreham/internal-comment
Tiny comment cleanup in pkg/apis/apps/types.go
2022-09-12 09:41:36 -07:00
Kubernetes Prow Robot
d7d82ad972
Merge pull request #112252 from piotrnosek/hpa-average-metrics
Add e2e HPA Tests: CPU and Memory Average with different aggregation methods: Average Value and Utilization
2022-09-12 09:41:24 -07:00
Kubernetes Prow Robot
eedf0ed221
Merge pull request #112390 from pohly/e2e-storage-helpers
e2e storage: update helpers
2022-09-12 08:07:48 -07:00
Kubernetes Prow Robot
6cf208e4d4
Merge pull request #112354 from pohly/volumebinding-delete-event-handler
volumebinding: handle special delete event in AssumeCache
2022-09-12 08:07:36 -07:00
Kubernetes Prow Robot
48256c55c2
Merge pull request #112251 from pohly/e2e-storage-proxy-shutdown
e2e storage: close all pending streams when proxy listener gets closed
2022-09-12 08:07:24 -07:00
Bryan Boreham
91eb1407d2 Remove incorrect mention of pointer in comment
This `DeploymentSpec` struct is used internally; the ones used for
serialization do have a pointer and this text was most likely copied
from there and not corrected.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-09-12 14:20:26 +00:00
Kubernetes Prow Robot
72f96d9c72
Merge pull request #112386 from Shubham82/remove_CSRDuration_featuregate
Remove  CSRDuration feature gate.
2022-09-12 07:01:37 -07:00
Kubernetes Prow Robot
74469ca4c5
Merge pull request #112123 from paskal/paskal/cfs_clarification
clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
2022-09-12 07:01:25 -07:00
Patrick Ohly
24230b4307 e2e storage: support creating ReplicaSet
This is useful for running a driver on a subset of all ready nodes:

- use e2enode.GetBoundedReadySchedulableNodes with a suitable
  maximum number of nodes to determine how much nodes are available
  for a test
- define pod anti-affinity in the PodTemplate:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app.kubernetes.io/instance: xxxxxxx
            topologyKey: kubernetes.io/hostname
- set the ReplicaSetSpec.Replicas value to the number of nodes
2022-09-12 14:38:28 +02:00
Patrick Ohly
b6b25c80de e2e storage: add CreateFile to pod IO operations
This complements the other operations and will be used by some
future tests.
2022-09-12 14:38:27 +02:00
Kubernetes Prow Robot
3e9e41f82c
Merge pull request #112389 from pohly/test-cleanup-flake
e2e: avoid random control plane output through GinkoWriter
2022-09-12 05:27:37 -07:00
Kubernetes Prow Robot
744bd22b35
Merge pull request #111959 from marseel/fix_approvers_reviewers
Add marseel/mborsz to sig-scalability-approvers and move mm4tt to emeritus
2022-09-12 05:27:25 -07:00
Kubernetes Prow Robot
bf350ac4c8
Merge pull request #112203 from azylinski/fix-teardown-delete-all
Fix Flake: On TearDown script, delete all firewall-rules with a single gcloud run
2022-09-12 03:17:25 -07:00
Patrick Ohly
2e61dfbf1d e2e: avoid random control plane output through GinkoWriter
If the control plane emits anything at the time when the test runs, for example
"unable to sync kubernetes service", the test breaks because that additional
output is unexpected.
2022-09-12 12:02:37 +02:00
Shubham Kuchhal
4ba39fc799 Remove GA featuregate: CSRDuration 2022-09-12 13:59:08 +05:30
Artur Żyliński
f35799f6b1 Fix: Refactor firewall-rules list to read-array 2022-09-12 10:20:50 +02:00
Kubernetes Prow Robot
4411a16a5c
Merge pull request #112375 from pohly/e2e-build-time
e2e: reduce built time for framework
2022-09-10 10:05:22 -07:00
Patrick Ohly
d33e66b81b e2e: reduce built time for framework
Pulling the CreateKubeConfig function from the expensive to build
test/utils/apiserver package had a considerable impact on the overall build
time because that package depends on a lot of other packages.

Because only that one function is needed by the framework, that extra build
time can be avoided by moving it into its own package.
2022-09-10 17:56:23 +02:00
Kubernetes Prow Robot
d9f21e55df
Merge pull request #111998 from pohly/e2e-framework-after-each
e2e framework: replace custom cleanup support with Ginkgo v2 mechanisms
2022-09-09 16:17:22 -07:00
Kubernetes Prow Robot
b48b0eac6a
Merge pull request #112349 from pohly/klog-update
build: update to klog v2.80.1
2022-09-09 14:37:24 -07:00
Kubernetes Prow Robot
e6fa40a11c
Merge pull request #112355 from mimowo/handling-pod-failures-roundtrip-test
Fix the TestRoundTripTypes by adding default to the fuzzer
2022-09-09 12:25:23 -07:00
Piotr Nosek
3d7855392f HPA E2E Test: CPU / Memory: Average Value / Utilization 2022-09-09 16:06:55 +00:00
Kante Yin
096dafe757
Feat: unify the status handle when return in bindingCycle (#112103)
Signed-off-by: kerthcet <kerthcet@gmail.com>

Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-09 08:31:23 -07:00
Michal Wozniak
31740d1c37 Fix the TestRoundTripTypes by adding default to the fuzzer 2022-09-09 16:47:08 +02:00
Piotr Nosek
ed1a3e6f70 Fix flaky and failing HPA E2E Behavior tests 2022-09-09 12:57:48 +00:00
Patrick Ohly
7eb472246f e2e framework: use new apiserver helper package 2022-09-09 13:51:07 +02:00
Patrick Ohly
fc092eb145 e2e: remove cleanup actions
The framework.AddCleanupAction API was a workaround for Ginkgo v1 not invoking
AfterEach callbacks after a test failure. Ginkgo v2 not only fixed that, but
also added a DeferCleanup API which can be used to run some code if (and only
if!) the corresponding setup code ran. In several cases that makes the test
cleanup simpler.
2022-09-09 13:51:07 +02:00
Patrick Ohly
b7529097ca e2e framework: add unit test for test execution
This covers multiple facets of the current framework and of Ginkgo:

- Ginkgo output is verbose and includes detailed progress
  messages (BeforeEach/AfterEach tracing).
- Namespace creation.
- Order of callback invocation.
2022-09-09 13:51:07 +02:00
Patrick Ohly
f6029e4281 test: add helper code for running apiserver inside unit test
This runs etcd and an apiserver using it inside the test process. The caller
can either use the ClientSet or the config file. More options might get added
in the future.

Co-author: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2022-09-09 13:51:04 +02:00