Commit Graph

22123 Commits

Author SHA1 Message Date
Jordan Liggitt
e5c4c9b2c0
Make auth integation tests coexist with default API server config 2022-09-21 12:42:49 -04:00
Kubernetes Prow Robot
b8e740f2e5
Merge pull request #112580 from shyamjvs/disable-compression
Add --disable-compression flag to kubectl
2022-09-21 07:15:14 -07:00
jupblb
e1eb924327
Add timeout to kubemark cleanup commands
The kubectl delete -f commands in stop-kubemark.sh may get stuck if the
cluster setup is removed concurrently. It is not important for these
commands to succeed so a timeout of 5m is set.
2022-09-21 11:26:20 +02:00
Roman Bednar
f765e191d1 add e2e test for retroactive storage class feature 2022-09-21 10:52:28 +02:00
Kubernetes Prow Robot
6dbec8e255
Merge pull request #112120 from pohly/klog-flag-removal
logs: remove deprecated klog flags
2022-09-21 00:44:53 -07:00
Shyam Jeedigunta
b31301fa24 Integration test for kubectl --disable-compression flag 2022-09-20 16:09:52 -07:00
Humble Chirammal
6621db7dd1 fix typos in pkg/validation and test/cmd
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-09-20 19:12:17 +05:30
Kubernetes Prow Robot
f0823c0f59
Merge pull request #112503 from pohly/e2e-framework-pod-polling
e2e framework: pod polling
2022-09-20 00:05:20 -07:00
Kubernetes Prow Robot
6820a383be
Merge pull request #112545 from dims/update-etcd-3.5.5-and-all-otel-related-to-latest
Update etcd 3.5.5 and all otel related libraries to newer versions
2022-09-19 19:15:31 -07:00
cly
7975be8fdc fix a typo in test/conformance/walk.go 2022-09-20 09:23:06 +08:00
Kubernetes Prow Robot
59c21a2515
Merge pull request #112474 from liggitt/concurrency-cleanup
Simplify P&F concurrency test
2022-09-19 13:17:44 -07:00
Abu Kashem
aa04af3f5c
apf: don't omit flowschemas from reset fields test 2022-09-19 13:46:38 -04:00
Patrick Ohly
004c1b6441 e2e framework: abort polling for running pod early
When the pod state is failed or completed, the pod will never again enter the
running state and polling can stop.
2022-09-19 18:10:04 +02:00
Jordan Liggitt
9cfc128b8e
Simplify P&F concurrency test 2022-09-19 08:26:29 -04:00
Michal Wozniak
e11039b6f5 Cleanup the TestEvictionForNoExecuteTaintAddedByUser test 2022-09-19 10:07:54 +02:00
Michal Wozniak
ca90621b2a Simplify the integration test for node lifecycle manager 2022-09-19 10:07:35 +02:00
Davanum Srinivas
a1635fa702
fix how we look for our request
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-09-18 17:21:19 -04:00
Davanum Srinivas
3eaca7cf51
update code to use newer otel api
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-09-17 21:48:20 -04:00
Kubernetes Prow Robot
d2e3c70f1d
Merge pull request #111961 from pohly/e2e-klog-output
e2e: klog output
2022-09-17 14:38:28 -07:00
Manjunath A Kumatagi
2384a341e1
Add no-op package file to avoid build constraints exclude all Go files error 2022-09-17 12:15:49 +05:30
Kubernetes Prow Robot
3e5e5cc7ee
Merge pull request #112357 from SataQiu/deprecated-20220907
kube-scheduler: add taints filtering logic consistent with TaintToleration plugin for PodTopologySpread plugin
2022-09-16 18:14:27 -07:00
Kubernetes Prow Robot
4bc1398c08
Merge pull request #112510 from humblec/new-2
various typo corrections in test/e2e package
2022-09-16 14:59:00 -07:00
Kubernetes Prow Robot
ea3637f447
Merge pull request #112511 from aojea/e2e_dnspolicy
add e2e test for hostNetwork pods with dnsPolicy: ClusterFirstWithHostNet
2022-09-16 12:50:50 -07:00
Kubernetes Prow Robot
06fd0a0728
Merge pull request #112489 from dims/etcd_update_v3.5.5
etcd: Updated to v3.5.5
2022-09-16 08:49:16 -07:00
Humble Chirammal
40621d4351 Fix the test failure on volume snapshot
Since we have upgraded to snapshot controller version to v6, the
snapshot tests looks to be failing in the testgrid. It has been mainly
because the latest version of snapshot controller stopped serving
v1beta1 APIs. The sidecar image versions in the tests also has to be
updated to make sure these are compatible.

This commit add missing RBAC rules for the controller as per the
latest version.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-09-16 19:39:47 +05:30
Kubernetes Prow Robot
740011927c
Merge pull request #112504 from pohly/e2e-wait-service-account
e2e framework: better error when service account creation times out
2022-09-16 06:31:28 -07:00
Humble Chirammal
9e9fc2be88 various corrections in test/e2e package
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-09-16 18:59:30 +05:30
Antonio Ojea
210c1302ef add e2e test for hostNetworl pods with dnsPolicy: ClusterFirstWithHostNet 2022-09-16 15:26:38 +02:00
Kubernetes Prow Robot
0f582f7c3f
Merge pull request #112416 from aojea/race_apiserver_startup
Don't run TestCleanup that requires etcd on non linux+amd64 platforms
2022-09-16 02:49:18 -07:00
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
Antonio Ojea
920dec740b skip etcd unit tests on non fully supported architectures
etcd only fully supports linux && amd64, the other architectures
and OS are only guaranteed to build, see:

https://etcd.io/docs/v3.5/op-guide/supported-platform/#support-tiers

Skip the test that use etcd on not well supported environment to
guarantee the stability of the test.
2022-09-16 10:38:03 +02:00
Patrick Ohly
0bd901afea e2e framework: better error messages when pod has failed or completed
Getting a message about "pod ran to completion" is confusing when the pod
hasn't been able to start at all. The failed state now has a different message.

To address the previous ambiguity, the success state is described as "ran to
completion successfully".
2022-09-16 09:12:51 +02:00
Davanum Srinivas
0f6b9b883c
etcd: Updated to v3.5.5
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-09-15 21:05:13 -04:00
Kubernetes Prow Robot
efaf56d4b6
Merge pull request #112444 from piotrnosek/hpamultimplemetrics
HPA E2E tests: Multiple Metrics
2022-09-15 16:41:18 -07:00
Kubernetes Prow Robot
9f62f4f087
Merge pull request #112392 from alexkats/enable-tests-for-large-clusters
Remove 'DisabledForLargeClusters' tag for LB tests
2022-09-14 13:07:34 -07:00
Kubernetes Prow Robot
4e8b11d441
Merge pull request #111333 from flant/selfsubjectattributesreviews
Add auth API to get self subject attributes
2022-09-14 13:07:22 -07:00
Kubernetes Prow Robot
148476eff1
Merge pull request #112427 from gnufied/add-zone-field-cloud-config-test
Add zone field to vsphere test cloudconfig
2022-09-14 11:09:25 -07:00
Kubernetes Prow Robot
ee94dce5b1
Merge pull request #112015 from humblec/glusterfs-gone
Removal of GlusterFS code from the repo
2022-09-14 10:03:00 -07:00
m.nabokikh
00dfba473b Add auth API to get self subject attributes
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-09-14 18:00:26 +02:00
Piotr Nosek
72faedc291 HPA E2E tests: multiple metrics 2022-09-14 11:16:25 +00: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
Hemant Kumar
30ac00eeb5 Add zone field to vsphere test cloudconfig 2022-09-13 17:19:33 -04:00
Riaan Kleinhans
7ceeca13a3
Fix 1.17 to 1.7 2022-09-14 09:14:28 +12:00
Humble Chirammal
c2a7bfd6b4 removal of glusterfs in-tree driver code from the source
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-09-13 20:11:50 +05:30
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
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
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
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
Alex Katsman
945aea4627 Remove 'DisabledForLargeClusters' tag for LB tests
We performed several internal tests at Google both on GKE and
Kubernetes, and we believe it's safe to re-enable them for large
clusters.
2022-09-12 15:08:42 +02: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
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
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
SataQiu
bc9c494319 kube-scheduler: add taints filtering logic consistent with TaintToleration plugin for PodTopologySpread plugin
Signed-off-by: SataQiu <shidaqiu2018@gmail.com>
2022-09-10 09:04:30 +08: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
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
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
Kubernetes Prow Robot
a7936658ba
Merge pull request #112193 from jindijamie/master
Add an option for aggregator
2022-09-08 17:21:24 -07:00
Patrick Ohly
f7864977b6 e2e internal: support Ginkgo v2 log time stamps
When using By or some other Ginkgo output functions, Ginkgo v2 now adds a time
stamp at the end of the line that we need to ignore. Will become relevant when
testing more complete output.
2022-09-08 22:50:01 +02:00
Patrick Ohly
53e1c7b4c3 e2e framework: remove AddAfterEach
For cleanup purposes the ginkgo.DeferCleanup is a better replacement for
f.AddAfterEach:
- the cleanup only gets executed when the corresponding setup code ran
  and can use the same local variables
- the callback runs after the test and before the framework
  deletes namespaces (as before)
- if one callback fails, the others still get executed

For the original purpose (https://github.com/kubernetes/kubernetes/pull/86177 "This is
very useful for custom gathering scripts.") it is now possible to use
ginkgo.AfterEach because it will always get executed. Just beware that its
callbacks run in first-in-first-out order.
2022-09-08 22:50:01 +02:00
Patrick Ohly
cbf94307ef e2e framework: clean up instance after all other code ran
In contrast to ginkgo.AfterEach, ginkgo.DeferCleanup runs the callback in
first-in-last-out order. Using it makes the following test code work as
expected:

    f := framework.NewDefaultFramework("some test")

    ginkgo.AfterEach(func() {
        // do something with f.ClientSet
    })

Previously, f.ClientSet was already set to nil by the framework's cleanup code.
2022-09-08 22:50:01 +02:00
Kubernetes Prow Robot
9188d55689
Merge pull request #112308 from ii/promote-namespace-replace-test
Promote CoreV1NamespaceReplace Test +1 Endpoint
2022-09-08 13:11:43 -07:00
Kubernetes Prow Robot
a7a5bfaef4
Merge pull request #112294 from pohly/importaliases
E2E import aliases
2022-09-08 13:11:31 -07:00
Kubernetes Prow Robot
cc4b7dc3c5
Merge pull request #111986 from enj/enj/i/transformer_leak
kms: fix go routine leak in gRPC connection
2022-09-08 09:49:46 -07:00
Patrick Ohly
2ace9a884e e2e: generalize the framework e2e* import alias rule
All framework sub packages should used e2e<package name> as import alias, also
the daemonset sub package that previously wasn't listed explicitly.
2022-09-08 18:37:52 +02:00
Di Jin
6d78a25374 Add integration test
Add integration test to ensure aggregator is not forwarding redirect response
2022-09-08 09:36:12 -07:00
Monis Khan
4e68e9b5ad
kms: fix go routine leak in gRPC connection
Signed-off-by: Monis Khan <mok@microsoft.com>
2022-09-08 11:46:57 -04:00
Stephen Heywood
974f4b8ee1 Promote Namespace e2e test to Conformance 2022-09-08 11:44:05 +12:00
Nabarun Pal
26b33246cd
Update Go version in test Makefile to 1.19.1
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-07 22:13:58 +05:30
Patrick Ohly
8349c77e82 e2e storage: better explanation for maxConcurrentConnections
This the same behavior as before, it just wasn't documented.
2022-09-07 17:05:22 +02:00
Kubernetes Prow Robot
a488f4b95c
Merge pull request #107515 from MikeSpreitzer/explain-reset-fields-failure
Make TestApplyResetFields exhibit surprising object
2022-09-07 07:14:37 -07:00
Patrick Ohly
0bd9a1a29a e2e storage: close all pending streams when proxy listener gets closed
After updating gRPC in node-driver-registrar from v1.40.0 to v1.47.0 the
behavior of gRPC change in a way such that it no longer detected the
single-sided closing of the stream as a loss of connection. This caused gRPC in
the e2e.test to get stuck, possibly in a Read or Write for the HTTP stream
because those have neither a context nor a timeout.

Changing the connection handling so that all active connections are tracking in
the listener and closing them when the listener gets closed fixed this problem.
2022-09-05 22:46:01 +02:00
Patrick Ohly
41619ace15 stop using deprecated klog flags
Some scripts and tools still relied on the deprecated flags, the ones
which are about to be removed.

This is intentionally not a complete removal of all those flags in the entire
repo. This would lead to much more code churn also in places where commands
still accept the flags because they use klog directly.
2022-09-04 21:02:43 +02:00
Joe Betz
7be77f9ecc changes code to improve output for files under test/e2e/storage 2022-09-02 17:43:41 +05:30
Kubernetes Prow Robot
84a349412b
Merge pull request #112166 from SataQiu/clean-cloud-provider-insecureserving
cloud-provider: remove deprecated insecure serving from Config
2022-09-01 08:01:17 -07:00
Kubernetes Prow Robot
bf624aa77f
Merge pull request #111951 from sashrith/vsphere_intree_test_fixes
vsphere in-tree driver test fixes
2022-09-01 08:01:06 -07:00
Kubernetes Prow Robot
c870f1ddc7
Merge pull request #111865 from piotrnosek/hpa-tests-batch
Add e2e HPA tests: Scale to zero, scale a CRD targetRef
2022-09-01 05:43:05 -07:00
SataQiu
f09e136aca cloud-provider: remove deprecated insecure serving from Config 2022-09-01 10:54:23 +08:00
Piotr Nosek
e252fcc429 HPA E2E Test: Scale to zero, scale custom CRD 2022-08-31 18:34:52 +00:00
Kubernetes Prow Robot
d0e413e86d
Merge pull request #112129 from pohly/e2e-ginkgo-report-after-each
e2e: suppress too verbose output
2022-08-31 10:00:56 -07:00
Kubernetes Prow Robot
cb057985ce
Merge pull request #112035 from piotrnosek/owners-autoscaling
Add OWNERS for autoscaling-owned directory
2022-08-31 08:37:01 -07:00
SataQiu
1ae5237a66 controller-manager: remove deprecated insecure serving from Config 2022-08-31 17:32:21 +08:00
Kubernetes Prow Robot
5debf63a74
Merge pull request #112074 from bertinatto/fix-snapshot-timeouts
e2e: use custom timeouts in GetSnapshotContentFromSnapshot()
2022-08-30 13:15:05 -07:00
Patrick Ohly
80d3cc3027 e2e: suppress progress messages for custom progress reporter
The custom progress reporter gets invoked via ginkgo.ReportAfterEach after each
test. The problem was that the e2e framework unconditionally enables Ginkgo's
-progress output which shows execution of all nodes, including this
ReportAfterEach. The effect were over 1000 lines of useless output at the start
of a test run while skipping disabled tests.

The solution is to tell Ginkgo that the ReportAfterEach isn't meant to be
reported.
2022-08-30 19:58:10 +02:00
Kubernetes Prow Robot
4f66f8c408
Merge pull request #112069 from enj/enj/t/aggregated_apis
Expand aggregated API server integration test to include CRUD
2022-08-30 08:52:55 -07:00
Monis Khan
ec283e526b
Expand aggregated API server integration test to include CRUD
This change updates TestAggregatedAPIServer and the related test
server wiring to exercise the full network path between the Kube API
server and the aggregated API server.  We now assert that the wardle
API service and Kube API server discovery endpoints are fully healthy.
CRUD operations are performed through the Kube API server to the
wardle API server.

Signed-off-by: Monis Khan <mok@microsoft.com>
2022-08-30 10:44:01 -04:00
Kubernetes Prow Robot
04f8a5c41a
Merge pull request #111999 from kerthcet/refactor/handle-failure
fix error type when handling failures in scheduler
2022-08-30 05:47:01 -07:00
Mike Spreitzer
d3081b378a Revise according to review 2022-08-29 23:02:29 -04:00
S R Ashrith
16f541ea8f Skip read only raw block volume test for in-tree vsphere driver 2022-08-27 23:17:29 +05:30
S R Ashrith
41dbdef540 vsphere in-tree driver test fixes 2022-08-27 23:14:40 +05:30
Ryan Phillips
32a90f5f35
Revert "promote LocalStorageCapacityIsolationFSQuotaMonitoring to beta" 2022-08-26 16:25:00 -05:00
Fabio Bertinatto
e13c9be88a e2e: use custom timeouts in GetSnapshotContentFromSnapshot() 2022-08-26 15:16:35 -03:00
Mike Spreitzer
98acbc3692 Make TestApplyResetFields exhibit surprising object 2022-08-26 14:13:35 -04:00
Kubernetes Prow Robot
3528d6f38e
Merge pull request #111848 from ii/create-namespace-replace-test
Write CoreV1NamespaceReplace Test +1 Endpoint
2022-08-25 23:34:26 -07:00
Piotr Nosek
7de1d13687 Add OWNERS for autoscaling-owned directory 2022-08-25 14:19:25 +00:00
Kubernetes Prow Robot
00191af94b
Merge pull request #111885 from p0lyn0mial/apiserver-integration-rsp-body
integration: TestCacheControl and TestHSTS close the ResponseBody
2022-08-25 05:14:07 -07:00
kerthcet
e61c16cc95 fix tests
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-08-25 15:33:10 +08:00
kerthcet
dd4fb3cd37 fix test error
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-08-25 13:29:09 +08:00
Kubernetes Prow Robot
8674ce53ff
Merge pull request #111093 from brianpursley/k-110097
Fix rollout history bug
2022-08-24 07:42:03 -07:00
Kubernetes Prow Robot
2472c8813a
Merge pull request #111874 from piotrnosek/hpa-tests-beh-scen
Add e2e HPA Behavior Tests: Scale up and down controls
2022-08-24 03:42:25 -07:00
Kubernetes Prow Robot
6c0bab878c
Merge pull request #111120 from iXinqi/lxinqi/destorying-svc-test
Add creating a destroying services test
2022-08-24 00:02:35 -07:00
Kubernetes Prow Robot
d436f5d0b7
Merge pull request #111954 from hj-johannes-lee/fix-typo-1
Fix typo of e2e utils under network framework
2022-08-23 20:09:16 -07:00
Kubernetes Prow Robot
22cb7ac766
Merge pull request #111912 from aojea/crd_recursion_regression_test
regression test for exponential recursion bug on CRDs
2022-08-23 20:09:08 -07:00
Kubernetes Prow Robot
95dab53bc2
Merge pull request #111907 from mythi/e2e-pod-wait-timeout
e2e: use user provided timeout in WaitForPodsWithLabelRunningReady
2022-08-23 20:08:52 -07:00
Kubernetes Prow Robot
a19935ac8a
Merge pull request #111789 from antoninbas/update-netpol-e2e-tests
Update Netpol e2e tests to use framework CreateNamespace
2022-08-23 19:00:44 -07:00
Kubernetes Prow Robot
07bca2d791
Merge pull request #67782 from dims/yank-in-tree-openstack-cloud-provider
Remove in-tree openstack cloud provider
2022-08-23 18:59:48 -07:00
Kubernetes Prow Robot
15a5136c26
Merge pull request #111726 from Huang-Wei/debug-pendingpods
Expose a pending pods summary in scheudler's dummper output
2022-08-23 17:17:49 -07:00
Kubernetes Prow Robot
55b657e37a
Merge pull request #111598 from fabi200123/e2e-node-log-viewer
Add e2e tests for node log viewer
2022-08-23 17:16:24 -07:00
Kubernetes Prow Robot
6ab5016ac2
Merge pull request #111551 from logicalhan/apiserver-metrics
clean-up apiserver metrics and use subsystem
2022-08-23 16:05:45 -07:00
Kubernetes Prow Robot
72a28b4406
Merge pull request #111380 from sonasingh46/e2e_nongracefulshutdown
chore(e2e): add e2e test for non graceful node shutdown
2022-08-23 16:05:24 -07:00
Kubernetes Prow Robot
068743f937
Merge pull request #111148 from cyang49/master
APF concurrency isolation integration test
2022-08-23 16:05:02 -07:00
Davanum Srinivas
9bbf01bae9
Remove references to openstack and cinder
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-22 16:43:14 -04:00
Patrick Ohly
53d5c6a15b e2e: enable contextual logging
Contextual logging cannot be enabled manually because there is no feature gate
flag. Enabling the feature unconditionally:
- should be low risk for E2E testing
- if it fails, we want to know
- is useful to get better log output from code which already supports it
2022-08-22 17:04:50 +02:00
Patrick Ohly
96e9a93a6b e2e: disable double printing of errors
We don't want klog to print to anything other than GinkgoWriter, but it still
used os.Stderr in addition to GinkgoWriter when printing log entries with
severity >= error. Changing "stderrthreshold" fixes that.

The unit test for framework output handling didn't test klog behavior. Now it
does:
- os.Stderr is redirected, should be empty
- a new test invokes klog
2022-08-22 17:04:26 +02:00
Patrick Ohly
c80eec19dd e2e: fix output test assertion
The format string didn't match the parameters.
2022-08-22 16:59:18 +02:00
Hyeongju Johannes Lee
0bd220ca39 Fix typo of e2e utils under network framework
Fix typo "contaienr" to "container"
2022-08-22 14:15:09 +03:00
Piotr Nosek
a4bc164989 HPA E2E Behavior Test: Scale up/down controls 2022-08-19 16:57:17 +00:00
Antonio Ojea
8d7264fb8e regression test for exponential recursion bug on CRDs 2022-08-19 09:43:17 +02:00
Mikko Ylinen
3128b1a773 e2e: use user provided timeout in WaitForPodsWithLabelRunningReady
The WaitFor* refactoring in 07c34eb400 had an oversight what timeout parameter
is used for calling WaitForAllPodsCondition() in WaitForPodsWithLabelRunningReady()
so the calls to WaitForPodsWithLabelRunningReady() ended up ignoring the user
provided timeout. Fix that.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-18 12:05:06 +03:00
Omer Tuchfeld
44a59710ea Fix failing test/e2e/storage/csi_mock_volume.go test
Followup on https://github.com/kubernetes/kubernetes/pull/111846. This
particular test was left out from that PR because once it was enabled it
started failing. It was desired to merge
https://github.com/kubernetes/kubernetes/pull/111846 irrespective of
this particular test.

The failure in the test was caused due to the
`createFSGroupRequestPreHook` mock CSI driver hook function assuming
that the request object passed to it is an instance of the respective
struct, but it's actually a pointer instead. This resulted in the hook
function not fulfilling its purpose, and the so the test failed.
2022-08-17 14:38:45 +02:00
Lukasz Szaszkiewicz
be2c707a4c integration: TestCacheControl and TestHSTS close the ResponseBody 2022-08-17 13:29:01 +02:00
Ashutosh Kumar
08bd22670f incorporate review comments
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>
2022-08-16 21:28:58 +05:30
Omer Tuchfeld
eb317ecd40 Fix capture loop vars in parallel or ginkgo tests
Fixes instances of #98213 (to ultimately complete #98213 linting is
required).

This commit fixes a few instances of a common mistake done when writing
parallel subtests or Ginkgo tests (basically any test in which the test
closure is dynamically created in a loop and the loop doesn't wait for
the test closure to complete).

I'm developing a very specific linter that detects this king of mistake
and these are the only violations of it it found in this repo (it's not
airtight so there may be more).

In the case of Ginkgo tests, without this fix, only the last entry in
the loop iteratee is actually tested. In the case of Parallel tests I
think it's the same problem but maybe a bit different, iiuc it depends
on the execution speed.

Waiting for the CI to confirm the tests are still passing, even after
this fix - since it's likely it's the first time those test cases are
executed - they may be buggy or testing code that is buggy.

Another instance of this is in `test/e2e/storage/csi_mock_volume.go` and
is still failing so it has been left out of this commit and will be
addressed in a separate one
2022-08-15 16:28:50 +02:00
Stephen Heywood
06346de0bb Create e2e test for endpoint: replaceCoreV1Namespace 2022-08-15 10:14:33 +12:00
Antonin Bas
2e282e8e02 Update Netpol e2e tests to use framework CreateNamespace
The main purpose of this change is to update the e2e Netpol tests to use
the srandard CreateNamespace function from the Framework. Before this
change, a custom Namespace creation function was used, with the
following consequences:

* Pod security admission settings had to be enforced locally (not using
  the centralized mechanism)
* the custom function was brittle, not waiting for default Namespace
  ServiceAccount creation, causing tests to fail in some infrastructures
* tests were not benefiting from standard framework capabilities:
  Namespace name generation, automatic Namespace deletion, etc.

As part of this change, we also do the following:

* clearly decouple responsibilities between the Model, which defines the
  K8s objects to be created, and the KubeManager, which has access to
  runtime information (actual Namespace names after their creation by
  the framework, Service IPs, etc.)
* simplify / clean-up tests and remove as much unneeded logic / funtions
  as possible for easier long-term maintenance
* remove the useFixedNamespaces compile-time constant switch, which
  aimed at re-using existing K8s resources across test cases. The
  reasons: a) it is currently broken as setting it to true causes most
  tests to panic on the master branch, b) it is not a good idea to have
  some switch like this which changes the behavior of the tests and is
  never exercised in CI, c) it cannot possibly work as different test
  cases have different Model requirements (e.g., the protocols list can
  differ) and hence different K8s resource requirements.

For #108298

Signed-off-by: Antonin Bas <abas@vmware.com>
2022-08-10 11:38:26 -07:00
Ashutosh Kumar
707d50d806 chore(e2e): add e2e test for non graceful node shutdown
Signed-off-by: Ashutosh Kumar <sonasingh46@gmail.com>
2022-08-10 21:55:00 +05:30
Kubernetes Prow Robot
3b945fd77d
Merge pull request #111746 from RomanBednar/retro-sc-assignment-int
Add integration test for Retroactive default StorageClass assignement
2022-08-10 09:04:25 -07:00
Cici Huang
00ca624362 Remove feature 2022-08-09 19:23:27 +00:00
Roman Bednar
77d904f053 add integration tests for retroactive SC assignment
Also stress tested for ~2 hours to minimize possible races:

$ stress ./volume.test  -test.run=TestRetroactiveStorageClassAssignment
...
1h59m50s: 3198 runs so far, 0 failures
1h59m55s: 3200 runs so far, 0 failures
2h0m0s: 3201 runs so far, 0 failures
2h0m5s: 3202 runs so far, 0 failures
2022-08-09 15:22:38 +02:00
Chih-Chieh Yang
94097457fd Minor fixes 2022-08-09 12:19:00 +00:00
Kubernetes Prow Robot
f0bd02ca5e
Merge pull request #111346 from piotrnosek/hpa-tests-2
Add e2e HPA Behavior tests: scale up/down limited by number of Pods / min, scale up/down limited by percentage / min
2022-08-09 03:14:50 -07:00
Kubernetes Prow Robot
a837be03ff
Merge pull request #111751 from dobsonj/issue111740
Fix flaky CSIInlineVolumes e2e test (issue 111740)
2022-08-08 19:54:49 -07:00
Kubernetes Prow Robot
25a3274a4f
Merge pull request #111440 from verb/111025-ec-conformance
Promote Ephemeral Containers e2e test to Conformance
2022-08-08 15:35:57 -07:00
Jonathan Dobson
645f667376 Fix flaky CSIInlineVolumes e2e test (issue 111740) 2022-08-08 12:54:11 -06:00
Danielle Lancashire
e8442054fe node_e2e: add a dbus restart test 2022-08-08 16:56:13 +00:00
Kubernetes Prow Robot
759785ea14
Merge pull request #109090 from sarveshr7/multicidr-rangeallocator
Enhance NodeIPAM to support multiple ClusterCIDRs
2022-08-07 15:40:18 -07:00
Wei Huang
7df9bfcfef
Expose a pending pods summary in scheudler's dummper output 2022-08-05 22:02:38 -07:00
Sarvesh Rangnekar
1473e13d1b Add integration test for multi cluster cidr 2022-08-06 00:11:06 +00:00
Sarvesh Rangnekar
5b801ba9f9 Introduce MultiCIDRRangeAllocator
MultiCIDRRangeAllocator is a new Range Allocator which makes using
multiple ClusterCIDRs possible. It consists of two controllers, one for
reconciling the ClusterCIDR API objects and the other for allocating
Pod CIDRs to the nodes.

The allocation is based on the rules defined in
https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/2593-multiple-cluster-cidrs
2022-08-06 00:10:39 +00:00
Kubernetes Prow Robot
64ed914545
Merge pull request #111258 from dobsonj/kep-596-ga-feature-flag
KEP-596: Move CSIInlineVolume feature to GA
2022-08-05 13:54:30 -07:00
Sarvesh Rangnekar
7093b10416 Introduce networking/v1alpha1 api, ClusterCIDR type
Introduce networking/v1alpha1 api group.

Add `ClusterCIDR` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.
2022-08-05 00:54:00 +00:00
Edwin Xie
f167b9f4ab Fix e2e network dns_configmap test
Updates predicate to check for a length >=2 to avoid
the index out of bounds panic.

Signed-off-by: Edwin Xie <exie@vmware.com>
Co-authored-by: Tyler Schultz <tschultz@vmware.com>
2022-08-04 21:04:02 +00:00
Jonathan Dobson
0ee8fed853 Add conformance test for CSIInlineVolume feature 2022-08-04 13:06:30 -06:00
Michal Wozniak
bf9ce70de3 Support handling of pod failures with respect to the specified rules 2022-08-04 18:39:08 +02:00
Kubernetes Prow Robot
15d290f280
Merge pull request #111521 from wongma7/ephemeralcopy
Clear ephemeral container resources field when creating one in volume test
2022-08-04 07:51:50 -07:00
Kubernetes Prow Robot
305ad47627
Merge pull request #111679 from puerco/kubecross-1.19
[go] Bump images, dependencies and versions to go 1.19
2022-08-04 04:58:04 -07:00
Kubernetes Prow Robot
8923661eea
Merge pull request #111675 from ii/revert-apiservice-lifecycle-test
Revert "e2e: should manage the lifecycle of an APIService"
2022-08-04 04:57:57 -07:00
Piotr Nosek
aa9ed5209b Add e2e HPA Behavior tests: scale up&down limited by number of Pods per minute, scale up&down limited by percentage of Pods per minute 2022-08-04 09:33:52 +00:00
Kubernetes Prow Robot
feec95583a
Merge pull request #111669 from pohly/trim_report_framework
e2e: trim junit report for Spyglass
2022-08-03 20:49:58 -07:00
Adolfo García Veytia (Puerco)
5d2de18956 Bump test Makefile to final 1.19
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
2022-08-03 22:05:03 -05:00
Kubernetes Prow Robot
0a2ae7ab3a
Merge pull request #111126 from aramase/kms-v2alpha1-impl
Implement KMS v2alpha1
2022-08-03 16:41:43 -07:00
Kubernetes Prow Robot
a0e702763e
Merge pull request #110495 from alexzielenski/atomic-objectreference
make ObjectReference field ownership granular
2022-08-03 14:21:48 -07:00
Stephen Heywood
88e86a7d98 Revert "e2e: should manage the lifecycle of an APIService" 2022-08-04 08:06:07 +12:00
Kubernetes Prow Robot
4b6134b6dc
Merge pull request #111090 from kinvolk/rata/userns-support-2022
Add support for user namespaces phase 1 (KEP 127)
2022-08-03 13:05:47 -07:00
Anish Ramasekar
f19f3f4099
Implement KMS v2alpha1
- add feature gate
- add encrypted object and run generated_files
- generate protobuf for encrypted object and add unit tests
- move parse endpoint to util and refactor
- refactor interface and remove unused interceptor
- add protobuf generate to update-generated-kms.sh
- add integration tests
- add defaulting for apiVersion in kmsConfiguration
- handle v1/v2 and default in encryption config parsing
- move metrics to own pkg and reuse for v2
- use Marshal and Unmarshal instead of serializer
- add context for all service methods
- check version and keyid for healthz

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2022-08-03 19:04:47 +00:00
Alexander Zielenski
bd648f3f9e
add regression test of formerly atomic claimRef 2022-08-03 10:57:13 -07:00
Giuseppe Scrivano
b1eaf6a2d9 tests: add e2e tests for userns
Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2022-08-03 19:53:22 +02:00
Dave Chen
c299a12cf2 e2e: trim junit report for Spyglass, avoid "open stdout"
Including the full information for successful tests makes the resulting XML
file too large for the 200GB limit in Spyglass when running large jobs (like
scale testing).

The original solution from https://github.com/kubernetes/kubernetes/pull/111627
broke JUnit reporting in other test suites, in particular
test/e2e_node. Keeping the code inside the framework ensures that all test
suites continue to have the JUnit reporting.

AfterReadingAllFlags is a good place to set this up because all test suites
using the test context are expected to call it before running tests and after
parsing flags.

Removing the ReportEntries added by ginkgo.By from all test reports usually
avoids the `system-err` part in the JUnit file, which in Spyglass avoids
the extra "open stdout" button.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Co-authored-by: Dave Chen <dave.chen@arm.com>
2022-08-03 17:56:36 +02:00
Chih-Chieh Yang
3c31efe32f Add more comment and clip negative value to prevent Sqrt error 2022-08-03 15:16:26 +00:00
Chih-Chieh Yang
c70ec593ec Fix minor issues and clean up 2022-08-03 14:14:36 +00:00
Danielle
5b312246c8
Revert "e2e: Trim junit reporter to adapt with testgrid" 2022-08-03 15:45:09 +02:00
Kubernetes Prow Robot
cf777ab782
Merge pull request #111627 from chendave/trim_report
e2e: Trim junit reporter to adapt with testgrid
2022-08-03 04:51:52 -07:00
Kubernetes Prow Robot
182e0989ec
Merge pull request #111646 from alculquicondor/fix_failed_suceeded
Fix JobTrackingWithFinalizers when a pod succeeds after the job fails
2022-08-02 17:45:52 -07:00
Aldo Culquicondor
ca8cebe5ba Fix JobTrackingWithFinalizers when a pod succeeds after the job fails
Change-Id: I3be351fb3b53216948a37b1d58224f8fbbf22b47
2022-08-02 19:33:06 -04:00
Kubernetes Prow Robot
6fbeacdf73
Merge pull request #111435 from soltysh/cronjob_timezone_beta
Promote CronJobTimeZone to beta
2022-08-02 16:23:51 -07:00
Kubernetes Prow Robot
90f9a52db6
Merge pull request #111467 from RomanBednar/retro-sc-assignment
Allow retroactive storage class assigment to PVCs
2022-08-02 15:05:57 -07:00
Kubernetes Prow Robot
236fd8efba
Merge pull request #111448 from cici37/testForCelBeta
Move e2e test from alpha with feature promoted to beta
2022-08-02 15:05:45 -07:00
Giuseppe Scrivano
9e9b23fd3c
pkg/apis, staging: add HostUsers to pod spec
It is used to request that a pod runs in a unique user namespace.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com>
2022-08-02 23:47:58 +02:00
Kubernetes Prow Robot
1de16be28f
Merge pull request #111462 from jprzychodzen/controllers
Enable 'running_managed_controllers' for KCM/CCM controllers: routes, services and cloud-node
2022-08-02 13:59:09 -07:00
Kubernetes Prow Robot
d4c7542878
Merge pull request #111522 from ii/promote-namespace-status-test
Promote NamespaceStatus endpoints test +3 Endpoints
2022-08-02 12:47:54 -07:00
Roman Bednar
42b24b7baf move storage class helpers to utils 2022-08-02 20:52:04 +02:00
Kubernetes Prow Robot
bc4c4930ff
Merge pull request #111475 from alculquicondor/clear_pod_disruption
Add worker to clean up stale DisruptionTarget condition
2022-08-02 11:38:18 -07:00
Kubernetes Prow Robot
d40bc18461
Merge pull request #105126 from sallyom/tracing-kubelet
kubelet tracing instrumentation
2022-08-02 11:38:06 -07:00
Kubernetes Prow Robot
51ea7b2169
Merge pull request #111523 from wongma7/e2epvcns
Fix missing format string PVC namespace
2022-08-02 10:23:56 -07:00
Kubernetes Prow Robot
9ef16e7908
Merge pull request #108554 from pacoxu/bad-input-1
add deprecated warning for node beta labels in pv/sc/rc/csi storage capacity
2022-08-02 10:23:44 -07:00
Dave Chen
5fcb8e5153 e2e: trim junit report for Spyglass
Including the full information for successful tests makes the resulting XML
file too large for the 200GB limit in Spyglass when running large jobs (like
scale testing).

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Co-authored-by: Dave Chen <dave.chen@arm.com>
2022-08-03 00:32:24 +08:00
Aldo Culquicondor
4188d9b646 Add worker to clean up stale DisruptionTarget condition
Change-Id: I907fbdf01e7ff08d823fb23aa168ff271d8ff1ee
2022-08-02 11:25:01 -04:00
Aldo Culquicondor
dad8454ebb Add clock interface to disruption controller
To be able to write more precise unit tests in the future

Change-Id: I8f45947dfacca501acd856849bd978fad0f735cd
2022-08-02 11:17:29 -04:00
Maciej Szulik
cb8eabe651
Add simple e2e verifying TimeZone support for CronJob 2022-08-02 16:53:10 +02:00
Chih-Chieh Yang
07e2bfe1cc Refactor and clean up the code 2022-08-02 14:29:03 +00:00
Cici Huang
175bb5e4e7 Add feature back 2022-08-02 10:16:27 +00:00
Michal Wozniak
04fcbd721c Introduction of a pod condition type indicating disruption. Its reason field indicates the reason:
- PreemptionByKubeScheduler (Pod preempted by kube-scheduler)
- DeletionByTaintManager (Pod deleted by taint manager due to NoExecute taint)
- EvictionByEvictionAPI (Pod evicted by Eviction API)
- DeletionByPodGC (an orphaned Pod deleted by PodGC)PreemptedByScheduler (Pod preempted by kube-scheduler)
2022-08-02 11:12:16 +02:00
Kubernetes Prow Robot
719f3cf8da
Merge pull request #111555 from tallclair/pod-e2e-retry
Minor fixes to e2epod wait logic
2022-08-02 02:09:45 -07:00
Jakub Przychodzeń
08749750a9 Enable 'running_managed_controllers' for few more controllers 2022-08-02 07:33:32 +00:00
Kubernetes Prow Robot
cdc60112a6
Merge pull request #111119 from aramase/aes-gcm-part-2
feat:(kms) encrypt data with DEK using AES-GCM instead of AES-CBC
2022-08-01 19:22:28 -07:00
Anish Ramasekar
d54631a41a
feat:(kms) encrypt data with DEK using AES-GCM instead of AES-CBC
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2022-08-02 01:12:47 +00:00
Kubernetes Prow Robot
eedd2b7cb4
Merge pull request #108696 from wongma7/zonepreprovisioned
Set zone label selector for preprovisioned AWS in-tree tests
2022-08-01 17:46:28 -07:00
Kubernetes Prow Robot
6a6a36f569
Merge pull request #111609 from marosset/hpc-test-updates
Hostprocess container test updates
2022-08-01 15:05:16 -07:00
Kubernetes Prow Robot
701fed4a5a
Merge pull request #111449 from ii/promote-controller-revision-test
Promote ControllerRevisionLifecycleTest +7 Endpoints
2022-08-01 15:05:00 -07:00
Kubernetes Prow Robot
2e1a4da8df
Merge pull request #111358 from ddebroy/hasnet1
Introduce PodHasNetwork condition for pods
2022-08-01 15:04:52 -07:00
Kubernetes Prow Robot
d1f70c1409
Merge pull request #111265 from ii/promote-event-lifecycle-test
Promote Event Lifecycle Test +1 Endpoint
2022-08-01 15:04:40 -07:00
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