Commit Graph

19203 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
8ae116003b
Merge pull request #100303 from cpanato/revert-100179
revert removal of gcr.io/gke-release from pr #100179
2021-03-16 13:13:04 -07:00
Maciej Szulik
d30e79d090
Add more details to daemon set test 2021-03-16 18:39:14 +01:00
Claudiu Belu
ac6ebc260c test images: powershell-helper linux cache
We can cache the powershell-helper image's results into a scratch Linux image using
docker buildx. This will allow us to spend less time pulling the data we need from the
powershell-helper image when we need it.

Additionally, docker buildx might have some issues with cross-registry images, so this
will allow us to circumvent it.
2021-03-16 17:07:50 +00:00
Mauricio Poppe
c95975d3f3 wait until the node is not using the volume before taking a snapshot 2021-03-16 16:09:38 +00:00
Carlos Panato
c0e61e95a0
revert removal of gcr.io/gke-release from pr 100179 2021-03-16 16:30:18 +01:00
Dave Chen
d50c0aeb5f Enable scheduler_perf to support scheduler config file
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-03-16 23:13:40 +08:00
Kermit Alexander
c2aa40ca13 Do not early exit if pod is not found in WaitForPodCondition. 2021-03-16 14:44:19 +00:00
Kubernetes Prow Robot
bd23f4ff1e
Merge pull request #99888 from mauriciopoppe/storage-windows-tests
Refactor on windows e2e storage related tests
2021-03-15 19:40:34 -07:00
Ernest Wong
573535691b
agnhost: resolve service account issuer URL before invoking oidc.NewProvider
Signed-off-by: Ernest Wong <chuwon@microsoft.com>
2021-03-15 19:14:14 -07:00
Kubernetes Prow Robot
aac64ec9b3
Merge pull request #100199 from chaitanyabandi/ns-patch
use Patch API to add namespace label
2021-03-15 14:20:53 -07:00
Stephen Heywood
af1f64bee8 Promote ServiceStatus lifecycle e2e test to Conformance 2021-03-16 10:07:05 +13:00
Jordan Liggitt
e7b0ec5857 Replicate update/patch operations from eviction test in conformance CRUD test 2021-03-15 16:54:45 -04:00
Jordan Liggitt
86a8271624 Ensure storage version is understood by prior releases 2021-03-15 11:58:44 -04:00
Kubernetes Prow Robot
b345913c5e
Merge pull request #100188 from alculquicondor/job-api-fixes
Only default Job fields when feature gates are enabled
2021-03-15 07:35:06 -07:00
Kubernetes Prow Robot
b458d97feb
Merge pull request #99670 from jsturtevant/windows-gmsa
Include nltest in the windows busybox image
2021-03-15 05:01:05 -07:00
Kubernetes Prow Robot
9657dd77a3
Merge pull request #100179 from cpanato/GH-1525-gke
test: remove gcr.io/gke-release since it is deprecated
2021-03-14 23:49:04 -07:00
Kubernetes Prow Robot
e814c55e78
Merge pull request #100121 from pacoxu/e2e-volume-registry/cleanup
remove e2e volume registry as it is not used
2021-03-14 18:43:04 -07:00
wojtekt
7ac0711af4 Split upgrade tests into sig-owned directories 2021-03-13 12:35:15 +01:00
Kubernetes Prow Robot
96f5e60308
Merge pull request #100173 from wojtek-t/cleanup_describe_23
Remove double-ownership of PV ResourceQuota tests
2021-03-12 21:21:04 -08:00
Kubernetes Prow Robot
d39c427d01
Merge pull request #100050 from neolit123/1.21-tag-node-probe-test-with-kubelet-version
e2e/common/node: tag tests with MinimumKubeletVersion
2021-03-12 18:01:03 -08:00
Kubernetes Prow Robot
ce6ddbe939
Merge pull request #100172 from wojtek-t/cleanup_describe_21
Move GPU upgrade tests to node directory
2021-03-12 16:53:03 -08:00
Chaitanya Bandi
4e0069b909 use Patch API to label namespace to avoid conflicts
While labeling the namespace using the Update API may result in conflicts as
"the object has been modified; please apply your changes to the latest version
and try again". Use Patch API to avoid this.

Signed-off-by: Chaitanya Bandi <kbandi@cs.stonybrook.edu>
2021-03-12 15:17:24 -08:00
Aldo Culquicondor
e6c3d7b34d Only default Job fields when feature gates are enabled
Also use pointer for completionMode enum
2021-03-12 20:46:52 +00:00
Wei Huang
68ff3168b8
sched: fix a bug that literal 'p99' is mapped to 95th-percentile 2021-03-12 12:03:12 -08:00
Anish Ramasekar
4cd09e15cf
update dual-stack test description to remove alpha
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-03-12 09:58:50 -08:00
Carlos Panato
bd32786b20
test: remove gcr.io/gke-release since it is deprecated 2021-03-12 14:35:10 +01:00
wojtekt
be87a9331b Remove double-ownership of PV ResourceQuota tests 2021-03-12 08:15:00 +01:00
Kubernetes Prow Robot
faa5c8ccd4
Merge pull request #99375 from ehashman/probe-kep-2238
Add Probe-level terminationGracePeriodSeconds
2021-03-11 23:10:18 -08:00
wojtekt
5744e44cad Move GPU upgrade tests to node directory 2021-03-12 08:00:11 +01:00
Kubernetes Prow Robot
251177e521
Merge pull request #100154 from jsturtevant/windows-volume-tests
[sig-windows] Write to unique file to avoid conflicts with other tests
2021-03-11 21:54:17 -08:00
Kubernetes Prow Robot
5ae856c36f
Merge pull request #100107 from robscott/rollback-100027
Rolling back PR 100027
2021-03-11 17:28:41 -08:00
Kubernetes Prow Robot
d43ffff007
Merge pull request #99298 from zshihang/csi
graduate CSIServiceAccountToken to beta
2021-03-11 17:28:25 -08:00
Kubernetes Prow Robot
019c892181
Merge pull request #100082 from logicalhan/etcd-stable
rename apiserver_storage_object_counts to apiserver_storage_objects
2021-03-11 16:24:30 -08:00
James Sturtevant
5dacb7ba88 write to unique file to avoid conflicts 2021-03-11 15:56:28 -08:00
Elana Hashman
06e634e216
Add e2es for terminationGracePeriod override 2021-03-11 14:38:06 -08:00
Kubernetes Prow Robot
2eb32e930a
Merge pull request #100137 from wojtek-t/cleanup_describe_22
Further refactoring of upgrade tests and removal of etcd upgrade tests which isn't even run
2021-03-11 13:36:18 -08:00
Wei Huang
b93b4a2c96
sched: fix a bug that metrics of init or collected pods are re-collected 2021-03-11 10:28:39 -08:00
wojtekt
ac0e7b57ab Remove etcd upgrade test - it's not being run 2021-03-11 14:41:48 +01:00
wojtekt
811d4aaaf6 Split GetUpgradeContext to a dedicated file 2021-03-11 14:39:32 +01:00
Kubernetes Prow Robot
823fa75643
Merge pull request #98900 from Huang-Wei/churn-cluster-op
Introduce a churnOp to scheduler perf testing framework
2021-03-11 02:00:24 -08:00
Kubernetes Prow Robot
784df7a37e
Merge pull request #100056 from pacoxu/patch-6
[test-only] e2e fix: loosen newTestResourceQuota to 10 configmaps
2021-03-11 00:18:53 -08:00
Kubernetes Prow Robot
b4648b11f9
Merge pull request #100030 from wojtek-t/cleanup_describe_20
Split upgrade tests logic to generic and provider-specific
2021-03-11 00:18:44 -08:00
Kubernetes Prow Robot
eb0c118a9d
Merge pull request #99759 from jpbetz/apply-extract
Add Extract support to client-go apply builders
2021-03-11 00:18:36 -08:00
Kubernetes Prow Robot
91a7be0c2f
Merge pull request #98884 from fedepaol/hostnetworkudp
Network Tests: bind host network udp listeners to hostIPs
2021-03-11 00:18:24 -08:00
pacoxu
59d96263e4 remove e2e volume registry as it is not used 2021-03-11 15:54:33 +08:00
Mauricio Poppe
5d9053014e Update tests to use common pod functions from framework/pod/utils.go 2021-03-11 07:25:56 +00:00
Kubernetes Prow Robot
cd66a33b32
Merge pull request #100092 from liggitt/conformance-pdb
[test-only] Promote PDB CRUD e2e tests to conformance
2021-03-10 22:42:35 -08:00
Paco Xu
2105d7ef6e e2e fix: loosen configmap to 10 in resource quota 2021-03-11 11:24:00 +08:00
Kubernetes Prow Robot
3baa0358b9
Merge pull request #100106 from justaugustus/go116
[go1.16] Update to go1.16.1
2021-03-10 17:34:23 -08:00
Rob Scott
68cfaa401c
Rolling back PR 100027
This PR was filed as a temporary workaround to reduce flakiness. Now
that the root cause has been fixed by #100103 we can restore the full
test.
2021-03-10 17:21:46 -08:00
Stephen Augustus
13ef775df2 [go1.16] Update to go1.16.1
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-10 19:06:57 -05:00
Kubernetes Prow Robot
23af91b293
Merge pull request #97779 from tiloso/staticcheck-test-integration-gs
Fix staticcheck in test/integration/{garbagecollector,scheduler_perf}
2021-03-10 16:04:23 -08:00
Lubomir I. Ivanov
d9facaec82 e2e/common/node: tag test with MinimumKubeletVersion
The tests:
"Pod liveness probe, container exec timeout, restart"
"Pod readiness probe, container exec timeout, not ready"

cannot be run against a kubelet older than 1.20.

Tag them with [MinimumKubeletVersion:1.20].
2021-03-11 01:03:05 +02:00
Kubernetes Prow Robot
c2ff2910fd
Merge pull request #98797 from sxllwx/fix/issue98606
(integration) adjust the test's client-side detection of a successful timeout case to include the connection reset
2021-03-10 12:28:22 -08:00
Kubernetes Prow Robot
4b6e3e164f
Merge pull request #99221 from jsturtevant/windows-host-stats-provider
Get filesystem stats for files on Windows
2021-03-10 11:09:23 -08:00
Kubernetes Prow Robot
be419673a2
Merge pull request #98677 from zachmandeville/ineligible_endpoint
add ineligible_endpoints.yaml
2021-03-10 08:15:14 -08:00
Jordan Liggitt
be58ad6fec Promote PDB CRUD e2e tests to conformance 2021-03-10 11:02:47 -05:00
Joe Betz
987657a80f Add extract apply function generation 2021-03-10 06:13:51 -08:00
Han Kang
50e6f15dee rename apiserver_storage_object_counts to conform to best practices (apiserver_storage_objects)
Change-Id: I8c08a37cd3ed7c943a6691185f750e55d389dd3a
2021-03-10 04:32:27 -08:00
Kubernetes Prow Robot
4740173f33
Merge pull request #100045 from swetharepakula/eps-ga-conformance
Add Endpoint Slice API Test
2021-03-10 00:35:43 -08:00
Kubernetes Prow Robot
b7d23d7111
Merge pull request #99661 from kevindelgado/status-wiping
Server-Side Apply status wiping
2021-03-10 00:35:14 -08:00
Kubernetes Prow Robot
956de2644f
Merge pull request #100036 from dims/revert-andrewsykim-conformance-probe-tests
Revert : conformance: promote container exec probe timeout tests
2021-03-09 20:37:13 -08:00
Shihang Zhang
4ad1c71174 graduate CSIServiceAccountToken to beta 2021-03-09 18:36:35 -08:00
Kubernetes Prow Robot
a43bd5e3da
Merge pull request #100027 from aojea/fixmirrorin
fix flake integration test endpoint slice mirroring updates
2021-03-09 17:39:41 -08:00
Kubernetes Prow Robot
410d092d8a
Merge pull request #99643 from pohly/generic-ephemeral-volume-beta
generic ephemeral volume beta
2021-03-09 17:39:26 -08:00
Kevin Delgado
a1fac8cbd9 Server-Side Apply: Status Wiping/Reset Fields
Adds and implements ResetFieldsProvder interface in order to ensure that
the fieldmanager no longer owns fields that get reset before the object
is persisted.

Co-authored-by: Kevin Wiesmueller <kwiesmul@redhat.com>
Co-authored-by: Kevin Delgado <kevindelgado@google.com>
2021-03-10 01:02:18 +00:00
Swetha Repakula
29a1246410 Add Endpoint Slice API Test 2021-03-10 00:08:27 +00:00
Kubernetes Prow Robot
e57e476153
Merge pull request #99862 from jsturtevant/windows-gmsa-full-fix
[Test] [sig-windows] Make sure the GMSA output doesn't have failures when resolving the domain
2021-03-09 16:08:16 -08:00
Kubernetes Prow Robot
3e110b3d8c
Merge pull request #98034 from Jefftree/testing
ServerSideApply E2E tests
2021-03-09 16:07:34 -08:00
Kubernetes Prow Robot
21d5787b40
Merge pull request #84740 from mortent/PromotePDBConformance
Promote PodDisruptionBudget e2e test to Conformance
2021-03-09 16:07:04 -08:00
Kubernetes Prow Robot
770a9504ea
Merge pull request #95734 from fromanirh/podresources-concrete-resources-apis
podresources APIs: concrete resources apis: implement GetAllocatableResources
2021-03-09 14:29:04 -08:00
Davanum Srinivas
6c76fe9c14
Skip test when depending on feature
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-09 17:22:10 -05:00
Davanum Srinivas
ecc8de7083
Revert : conformance: promote container exec probe timeout tests
Reverting af3e118b1f and
2242d0ffc4 as these tests fail when
ExecProbeTimeout feature gate is turned on.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-09 17:05:07 -05:00
Antonio Ojea
4c8be7793c fix integration endpointslicemirroring
it can happen that there are multiple slices, and some of them
outdated, so we relax the test to check that at least one
has the corresponding fields mirrored.
2021-03-09 22:38:14 +01:00
Morten Torkildsen
08e0a46757 Promote PodDisruptionBudget e2e test to Conformance 2021-03-09 12:26:02 -08:00
wojtekt
d3ec5a5138 Move non-provider specific upgrade tests logic to upgrades package 2021-03-09 21:17:15 +01:00
wojtekt
f5fab2672e Rename functions to eliminate master word 2021-03-09 21:17:15 +01:00
wojtekt
99fdb84ae8 Split GCE/GKE upgrade mechanics to a separate file 2021-03-09 20:58:58 +01:00
Kubernetes Prow Robot
eeccc9f9c0
Merge pull request #99992 from wojtek-t/cleanup_describe_19
Refactor upgrade tests in preparation for explicit ownership
2021-03-09 11:06:16 -08:00
Kubernetes Prow Robot
afca3dace4
Merge pull request #99785 from erain/issue/98270
metrics: etcd_object_counts->apiserver_storage_object_counts(stable)
2021-03-09 11:05:50 -08:00
Kubernetes Prow Robot
046ad61479
Merge pull request #99290 from mortent/PromotePDBsToGA
Promote PodDisruptionBudget to policy/v1
2021-03-09 11:05:05 -08:00
Jefftree
1ebfb6d679 Add E2E tests for SSA 2021-03-09 10:28:21 -08:00
Federico Paolinelli
b69bc865b4 Bump up the agnhost version used
This is needed to consume the changes in https://github.com/kubernetes/kubernetes/pull/98883

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-03-09 18:39:31 +01:00
Kubernetes Prow Robot
8a599510d3
Merge pull request #99935 from MikeSpreitzer/ratelimit-realtest
Enable, rate limit, and test APF controller fights
2021-03-09 09:19:36 -08:00
Morten Torkildsen
66e722765a Update e2e tests to use the policy v1 api 2021-03-09 10:29:11 -05:00
Morten Torkildsen
621aed4d32 generated 2021-03-09 10:29:11 -05:00
Morten Torkildsen
21fba79d45 Promote PDBs to GA 2021-03-09 10:29:11 -05:00
Kubernetes Prow Robot
16e9c682ff
Merge pull request #99495 from wojtek-t/cleanup_describe_8
Move ownership of core events test to sig-instrumentation
2021-03-09 04:27:38 -08:00
Francesco Romani
d7a30e1b08 podresources: getallocatable: add feature gate
Add feature gate to disable the GetAllocatableResources API.
The feature gate isd alpha stage, disabled by default.

Add e2e test to demonstrate the behaviour with feature gate disabled.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-09 13:14:56 +01:00
Francesco Romani
16d5ac3689 node: e2e: docs and fix for teardownSRIOVConfig
Document why teardownSRIOVPod has to wait for all the containers
to be gone before to end, and why is important.

Additionally, change the code to wait for all the containers to be gone,
not just the first. This is both a little cleaner and a little safer,
even though it seems the current code caused no issues so far.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-09 13:13:36 +01:00
Francesco Romani
adfff27279 node: e2e: run deleteSync in parallel
speedup the cleanup after testcases deleting pods in separate
goroutines.
The post-test cleanup stage must be done carefully since pod require
exclusive allocation - so pods must take all the steps to properly
cleanup the tests to avoid to pollute the environment, but
this has a negative effect on test duration (take longer).

Hence, we add safe speedups like doing pod deletions in parallel.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-09 13:13:36 +01:00
Francesco Romani
9c69db3f04 e2e: node: add tests for GetAllocatableResources
Add e2e tests for the new GetAllocatableResources API.
The tests are added in the `podresources_test` suite
created previously in this series.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-09 13:13:36 +01:00
Francesco Romani
4e7434028c e2e: node: bootstrap podresources tests
Start e2e tests for the existing List() API.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-09 13:13:35 +01:00
Federico Paolinelli
fa963f55ae Un-skip the hostnetwork udp endpoint test.
Since the test is being fixed, we can run the test.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-03-09 11:52:35 +01:00
Federico Paolinelli
a0ca1fd63f Network Tests: bind host network udp listeners to hostIPs
When listening on udp, the reply is sent using a src address which is
the address of the gateway interface. This means that when listening to
any, the reply can be sent out with a src ip which is different from the
request's target ip. This confuses natting and "connectionful" udp
services do not work.
Here, we force the endpoint to listen from the hostIP and from podIPs,
to cover both dual stack and legacy clusters.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-03-09 11:52:35 +01:00
wojtekt
bd3d1e7af0 Refactor upgrade tests to share more code 2021-03-09 10:06:12 +01:00
wojtekt
04a196a3dc Unify masterUpgrade and nodeUpgrade signatures 2021-03-09 08:50:49 +01:00
wojtekt
d1f721b73f Cleanup upgrade functions 2021-03-09 08:36:10 +01:00
Patrick Ohly
25f4174148 testdata: drop the alpha EphemeralVolumeSource.ReadOnly field
This is the result of
   UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test k8s.io/api
after removing the ReadOnly field from the API. The test data
for older releases must be updated because the current code
no longer supports that field.

The removal itself is okay because the struct was declared
as alpha.

Because EphemeralVolumeSource is embedded quite a lot, different types
are affected. Here is one example:

       --- FAIL: TestCompatibility/extensions.v1beta1.DaemonSet/v1.20.0 (0.04s)
            compatibility.go:476: json differs
            compatibility.go:477:   string{
                  	... // 12941 identical bytes
                  	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, //  |               }|
                  	0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, //  |.              }|
                - 	0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, // -|,.              |
                - 	0x22, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, // -|"readOnly": true|
                  	0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, //  |.            }. |
                  	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, //  |         }.     |
                  	... // 31426 identical bytes
                  }

            compatibility.go:482: yaml differs
            compatibility.go:483:   string{
                  	... // 22893 identical bytes
                  	0x34, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x70, 0x68, 0x65, 0x6d, //  |4".        ephem|
                  	0x65, 0x72, 0x61, 0x6c, 0x3a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //  |eral:.          |
                - 	0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0x0a, 0x20, // -|readOnly: true. |
                - 	0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                                           // -|         |
                  	0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x65, 0x6d, 0x70, 0x6c, //  |volumeClaimTempl|
                  	0x61, 0x74, 0x65, 0x3a, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //  |ate:.           |
                  	... // 5965 identical bytes
                  }

            compatibility.go:488: proto differs
            compatibility.go:490:   (
                  	"""
                  	... // 459 identical lines
                  	                }
                  	              }
                - 	              2: 1
                  	            }
                  	          }
                  	... // 1083 identical lines
                  	"""
                  )

            compatibility.go:506: wrote expected compatibility data... verify, commit, and rerun tests
2021-03-09 08:24:52 +01:00
Patrick Ohly
555d4a12bf generic ephemeral volumes: drop ReadOnly field
As discussed during the alpha review, the ReadOnly field is not really
needed because volume mounts can also be read-only. It's a historical
oddity that can be avoided for generic ephemeral volumes as part
of the promotion to beta.
2021-03-09 08:22:48 +01:00