Commit Graph

19803 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f039f94a6f
Merge pull request #101589 from mtaufen/fix-agnhost-ca
agnhost: Try both in-cluster and external discovery
2021-04-30 07:28:10 -07:00
Kubernetes Prow Robot
8d949052c8
Merge pull request #101582 from tsmetana/k8s-fix-aws-kms-key-test
Fix invalid AWS KMS key test flake
2021-04-29 18:10:52 -07:00
David Porter
28acfab74c Update cos-gpu-installer image
This installer image should be compatible with COS-M85 images,
specifically `cos-85-13310-1041-9`
2021-04-29 14:58:47 -07:00
Kubernetes Prow Robot
204ff6caeb
Merge pull request #101586 from liggitt/delete-partition-tests
Remove inactive failing tests
2021-04-29 11:36:23 -07:00
Kubernetes Prow Robot
eb326fdc07
Merge pull request #100262 from chaitanyabandi/daemon-ns-patch
use Patch API to add namespace annotations
2021-04-29 11:36:11 -07:00
Kubernetes Prow Robot
19c7089245
Merge pull request #101569 from wzshiming/test/e2e-node-shutdown
Fix flake for GracefulNodeShutdown e2e
2021-04-29 09:01:25 -07:00
Michael Taufen
0b3b99c096 Try both in-cluster and external discovery
The conformance test for ServiceAccountIssuerDiscovery is currently
configured with --in-cluster-discovery, which only supports token
validation against in-cluster endpoints. Many cloud providers provide
their own, external endpoints for OIDC discovery, and because the iss
claim in tokens will point to these endpoints, but the client in this
test only trusts the Cluster CA, it will fail to connect to the external
discovery endpoints when validating the token.

To ensure that the conformance test at least supports scenario where
both the discovery doc endpoint and JWKS endpoint are cluster-local and
the scenario where both endpoints are cluster-external, this PR has the
test try both and requires at least one to pass.

Caveat: The test still won't support a configuration where one
endpoint is cluster-local and the other is external. We don't yet have
evidence that this is a configuration that is used in practice, so this
initial hotfix will at least fix the conformance test for the "both
external" configuration we know providers already use. Note that if one
endpoint is cluster-local, and the other is cluster-external, tokens can
still only be validated in-cluster, because both endpoints must be
accessible to Relying Parties that validate tokens.
2021-04-29 08:56:02 -07:00
Kubernetes Prow Robot
6e29545168
Merge pull request #99998 from matthyx/deflake-startupprobe
Deflake startupProbe e2e test
2021-04-29 01:16:50 -07:00
Kubernetes Prow Robot
db70c2a96a
Merge pull request #99348 from chymy/e2e-rck-unused
Remove unused code in test/e2e/{upgrades,storage,network}
2021-04-28 21:02:50 -07:00
Shiming Zhang
91beb10aa4 Fix flake for GracefulNodeShutdown e2e 2021-04-29 10:52:00 +08:00
Kubernetes Prow Robot
e6b4fa3811
Merge pull request #101352 from ahg-g/ahg-nss-integration
Added integration test for pod affinity namespace selector
2021-04-28 08:00:50 -07:00
Jordan Liggitt
94a8c7af15 Remove inactive failing tests 2021-04-28 10:03:07 -04:00
Tomas Smetana
8773e0d491 Fix invalid AWS KMS key test flake 2021-04-28 13:22:49 +02:00
Matthias Bertschy
bcd582030f Deflake startupProbe e2e test
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2021-04-28 07:07:01 +02:00
Kubernetes Prow Robot
1cab0adcd5
Merge pull request #101487 from deads2k/annotate-A
add --all-namespaces to kubectl annotate,label
2021-04-27 20:56:49 -07:00
Kubernetes Prow Robot
21ab9c4175
Merge pull request #95286 from SergeyKanzhelev/removePodUnknown
Deprecating PodUnknown podPhase
2021-04-27 11:21:38 -07:00
Abdullah Gharaibeh
ebf0bca3ce Added integration test for pod affinity namespace selector 2021-04-27 14:13:08 -04:00
Kubernetes Prow Robot
3f98b98c69
Merge pull request #101488 from dcbw/e2e-net-firewall
e2e/network/firewall: don't assume nodes are exposed externally
2021-04-26 22:15:36 -07:00
Kubernetes Prow Robot
17f3990ea1
Merge pull request #100484 from gavinfish/e2e-storage-suffix
Remove suffixes for VolumeSnapshotClasses in E2E tests
2021-04-26 17:37:03 -07:00
Riaan Kleinhans
0733bcde2f Create List and DeleteCollection DaemonSet Test
Co-Authored-By: Riaan Kleinhans <riaan@ii.coop>

e2e test validates the following 2 extra endpoints

- listAppsV1ReplicaSetForAllNamespaces
- deleteAppsV1CollectionNamespacedReplicaSet
2021-04-27 11:50:47 +12:00
David Eads
ad0cff7b61 add --all-namespaces to kubectl annotate,label 2021-04-26 13:04:19 -04:00
Dan Williams
f86ddbea70 e2e/network/firewall: don't assume nodes are exposed externally
If no nodes have NodeExternalIP addresses, then clearly none of the
services are exposed externally, and the test should succeed.
Seen in OpenShift CI.
2021-04-26 10:25:21 -05:00
Kubernetes Prow Robot
2b54418d66
Merge pull request #100387 from jsturtevant/test-image-doc-updates
Doc updates to clarify the image promotion process
2021-04-26 06:25:01 -07:00
Kubernetes Prow Robot
3e71ecc6b3
Merge pull request #101329 from ahg-g/ahg-nss-bench
Added benchmarks for pod affinity NamespaceSelector
2021-04-25 19:07:00 -07:00
Kubernetes Prow Robot
5c34712a09
Merge pull request #101421 from yuzhiquan/typo
Fix typo for kubelet
2021-04-25 12:19:00 -07:00
Artyom Lukianov
79dbdbb4c1 e2e node: fix the race condition under the memory manager test
Wait for kubelet to be healthy after the dynamic update
of the kubelet configuration.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-04-25 15:12:12 +03:00
Kubernetes Prow Robot
113f828553
Merge pull request #101442 from aramase/ds-cleanup
update dual-stack test description to remove duplicate tag
2021-04-24 13:57:00 -07:00
Kubernetes Prow Robot
c1418fff4a
Merge pull request #101402 from wangyx1992/timeSub
cleanup: replace x.Sub(time.Now()) with time.Until(x) in e2e test
2021-04-24 05:54:59 -07:00
Kubernetes Prow Robot
10f7e189c2
Merge pull request #100496 from jpbetz/extract-subresources
Add subresource support to client-go apply extract
2021-04-23 19:27:43 -07:00
Kubernetes Prow Robot
3029808c91
Merge pull request #99772 from pacoxu/patch-4
job-e2e: wait exceeds active deadline for 15s
2021-04-23 19:27:35 -07:00
Anish Ramasekar
24f37695e5
update dual-stack test description to remove duplicate tag
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2021-04-23 16:32:36 -07:00
Kubernetes Prow Robot
b11f135a7a
Merge pull request #101381 from prameshj/port-change
Use a less-common port for e2e test http pod.
2021-04-23 16:14:29 -07:00
Kubernetes Prow Robot
8846859f77
Merge pull request #99154 from bertinatto/fix-make-pod
e2e: MakePod() should support block and inline volumes
2021-04-23 11:21:39 -07:00
Abdullah Gharaibeh
6988653457 Added benchmarks for pod affinity namespaceselector 2021-04-23 14:14:38 -04:00
yuzhiquan
02c3d53a23 typo 2021-04-23 17:55:54 +08:00
wangyx1992
fda7421f24 cleanup: replace x.Sub(time.Now()) with time.Until(x) in e2e test
Signed-off-by: wangyx1992 <wang.yixiang@zte.com.cn>
2021-04-23 11:27:12 +08:00
Kubernetes Prow Robot
2365d1e8bd
Merge pull request #101383 from msau42/update-mock
Update sidecars for csi mock driver
2021-04-22 17:44:40 -07:00
Kubernetes Prow Robot
66d27ff1a4
Merge pull request #101380 from kwiesmueller/flake-apply-mutating-webhook
[flake] fix TestMutatingWebhookResetsInvalidManagedFields flakes
2021-04-22 17:44:31 -07:00
Kubernetes Prow Robot
0e05558717
Merge pull request #101360 from pohly/hostpath-update
Revert "storage e2e: disable health check containers"
2021-04-22 17:44:14 -07:00
Kubernetes Prow Robot
2f6d79ca88
Merge pull request #100548 from mauriciopoppe/ephemeral-storage-e2e-windows
Make ephemeral volume tests work with Windows nodes
2021-04-22 17:44:01 -07:00
Joe Betz
d01788cd56 Enable extract test for status subresource 2021-04-22 15:32:45 -07:00
Kevin Wiesmueller
96a8df455c fix TestMutatingWebhookResetsInvalidManagedFields flakes 2021-04-23 00:09:31 +02:00
Michelle Au
b67e1b8dfb Update sidecars for csi mock driver
Change-Id: I751dc41facd95219604124f3f2f221f4d35ca34a
2021-04-22 14:29:30 -07:00
Riaan Kleinhans
94c550a050 Add NetworkPolicy Endpoint to Ineligible endpoints 2021-04-23 09:18:33 +12:00
Kubernetes Prow Robot
0f4de95e5b
Merge pull request #101330 from deads2k/apply-remove-beta
apply test for manager limit to only use v1 apis
2021-04-22 13:19:49 -07:00
Kubernetes Prow Robot
3061f6149f
Merge pull request #101171 from KnVerey/kubectl-describe-chunk-size
Add `--chunk size` flag to `kubectl describe`
2021-04-22 13:19:23 -07:00
Pavithra Ramesh
2430f23445 Use a less-common port for e2e test http pod.
8080 is a common port that is more likely to cause conflicts when used
in hostNetwork mode for tests.
2021-04-22 13:17:10 -07:00
Kubernetes Prow Robot
714a821f1b
Merge pull request #101295 from eddiezane/ez/fix-kubectl-error-code-e2e-test
Fix kubectl flake: Simple pod should return command exit codes
2021-04-22 11:27:59 -07:00
Eddie Zaneski
1bc5364b16
[e2e] match kubectl run timeout to pod start timeout
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2021-04-22 11:10:56 -06:00
Kubernetes Prow Robot
1b08dde41f
Merge pull request #101191 from tanjing2020/container_manager_test
Agnhost image's progress name is called agnhost, not test-webserver
2021-04-22 08:59:53 -07:00
Kubernetes Prow Robot
972ee2d425
Merge pull request #101034 from verb/1.22-ec-api
Switch alpha Pod ephemeralcontainers API to use Pod kind
2021-04-22 06:21:41 -07:00
Kubernetes Prow Robot
82d8d08c78
Merge pull request #101280 from huffmanca/address-snapshotting-flakes
Force NodeUnstageVolume to finish for all distros
2021-04-22 02:32:31 -07:00
Kubernetes Prow Robot
f1e51ceb3c
Merge pull request #98377 from nodo/scale-ownership-tracking-deployment
Track ownership of scale subresource
2021-04-22 01:28:32 -07:00
Patrick Ohly
3299469437 Revert "storage e2e: disable health check containers"
This reverts commit 0c2cee5676e64976f9e767f40c4c4750a8eeb11f.

The health check containers are not required for any test, but we want
to run them anyway to ensure that they cause no unexpected issues.
2021-04-22 08:20:39 +02:00
Kubernetes Prow Robot
1f87e3fe00
Merge pull request #101347 from verult/subpath-configmap-timeout
Extend pod start timeout to 5min for storage subpath configmap test
2021-04-21 21:12:46 -07:00
Kubernetes Prow Robot
d907c29956
Merge pull request #100637 from pohly/hostpath-update
storage e2e: automate hostpath YAML updates, update sidecars but not driver
2021-04-21 21:12:33 -07:00
Cheng Xing
4cfb6e2c23 Extend pod start timeout to 5min for storage subpath configmap test 2021-04-21 17:24:09 -07:00
Mike Dame
07029c941a Remove Limits from scheduling e2e balanced pod resources
The purpose of the pod created by `createBalancedPodForNodes()` is to ensure
that all nodes have equal resource requests (as seen by the scheduler). This
prevents the default scheduling behavior (which attempts to balance resource requests)
from interfering with e2e's which test other priorities/score plugins.

Because the scheduler only worries about requests, specifying `Limits` in this pod
is unnecessary. In fact, if the calculated "balancing" limit is too low, it can cause
the balancing pod to never start due to OOMKill errors, leading to flakes and failures.
2021-04-21 15:58:00 -04:00
Kubernetes Prow Robot
1e4388964e
Merge pull request #101293 from ehashman/issue-93480
Remove unmaintained elasticsearch tests
2021-04-21 12:20:12 -07:00
Christian Huffman
21ea9af37f Force NodeUnstageVolume to finish for all distros 2021-04-21 15:01:41 -04:00
Katrina Verey
8ad6fd6ddb Add --chunk-size support to kubectl describe 2021-04-21 11:44:15 -07:00
David Eads
b1ce579517 apply test for manager limit to only use v1 apis 2021-04-21 14:38:24 -04:00
Andrea Nodari
8e4b5c849b Do not add managed fields if a scale entry doesn't own replicas
This happens when a request changes the .status.replicas but not
.spec.replicas
2021-04-21 20:27:45 +02:00
Andrea Nodari
09649e58b5 Check request info when updating managed fields during scale
- Test all versions to make sure each resource version is in the
  mappings
- Fail when request info contains an unrecognized version. We have tests
  that guarantee that all known versions are in the mappings. If we
  get a version in request info that is not there we should fail fast to
  prevent inconsistent behaviour (e.g. for some reason the mappings is
  not up to date).

Ensure all known versions are in mappings
2021-04-21 20:27:02 +02:00
Antoine Pelisse
816e80206c Use ScaleHandler for all scalable resources 2021-04-21 18:41:40 +02:00
Andrea Nodari
a9ea98b3b9 Track ownership of deployments scale subresource 2021-04-21 18:41:40 +02:00
Kubernetes Prow Robot
032007e007
Merge pull request #101312 from harche/ContainerLogPath_fix
Add SELinux security context to ContainerLogPath test
2021-04-21 09:31:17 -07:00
Gautier Delorme
34b0fcef5f remove go-openapi/spec
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
2021-04-21 11:31:49 +02:00
Fabio Bertinatto
6a645592fc e2e: MakePod() should support block and inline volumes 2021-04-21 11:29:35 +02:00
Harshal Patil
df13eebfd0 Add SELinux security context to ContainerLogPath test
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2021-04-21 13:48:32 +05:30
Patrick Ohly
c794b5c442 storage e2e: patch in RBAC rules for secrets
In one mock test, the snapshotter needs permission to read
secrets. That was disabled in the RBAC files of recent releases. We
need to patch it back in during deployment.
2021-04-21 09:57:54 +02:00
Shiming Zhang
e08988ba16 Fix pull empty image URL
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
2021-04-21 15:29:46 +08:00
Riaan Kleinhans
8c7cef2621 Create List and DelectCollection ReplicaSet Test
Co-Authored-By: Riaan Kleinhans <riaan@ii.coop>

e2e test validates the following 2 extra endpoints
- listAppsV1NamespacedReplicaSet
- deleteAppsV1CollectionNamespacedReplicaSet
2021-04-21 16:19:26 +12:00
Kubernetes Prow Robot
497e7c0c1e
Merge pull request #101233 from pohly/e2e-suite-cleanup
storage e2e: remove obsolete function
2021-04-20 19:24:10 -07:00
Kubernetes Prow Robot
6a7572e4ad
Merge pull request #101287 from soltysh/replace_with_default
Fail fast when image is specified without tag
2021-04-20 17:38:24 -07:00
Elana Hashman
ac5ba850c1
Remove unused elasticsearch tests 2021-04-20 13:34:59 -07:00
Maciej Szulik
3edabfb460
Switch to a proper busybox test image 2021-04-20 22:05:31 +02:00
Maciej Szulik
89b50bcf94
Fail fast when image is specified w/o tag 2021-04-20 21:10:16 +02:00
Kubernetes Prow Robot
92aff21558
Merge pull request #95609 from fromanirh/tm-e2e-faster-delete
e2e: topology manager: use deletePodSync for faster delete
2021-04-20 04:14:33 -07:00
Patrick Ohly
ebd02341c9 storage e2e: downgrade hostpath driver
This is a temporary workaround until a fixed driver is available.
2021-04-20 08:07:15 +02:00
Patrick Ohly
7682e39a47 storage e2e: disable health check containers
They are not needed for any of the tests and in practice apparently
caused enough overhead that even unrelated tests timed out. For
example, in the pull-kubernetes-e2e-kind test, 43 out of 5771 tests
failed, including tests from sig-node, sig-cli, sig-api-machinery,
sig-network.
2021-04-20 08:07:15 +02:00
Patrick Ohly
446c1136dc storage e2e: automate hostpath YAML updates, hostpath v1.6.2
Mirroring the various YAML files by hand is tedious. The new
update-hostpath.sh does all the necessary steps automatically.

The result is now a bit more consistent with the upstream repos in the
sense that the original file names and paths for the RBAC YAML files
are used.

The csi-hostpath-testing.yaml is included for the sake of
completeness, but not used during E2E testing.

The new hostpath driver release is v1.6.2, which adds the
external-health-monitor for the first time.
2021-04-20 08:07:15 +02:00
Kubernetes Prow Robot
0f5fce6a64
Merge pull request #101244 from deads2k/remove-csr
remove CSR v1beta1 tests since the API is no longer available in 1.22 and CSRs are short term
2021-04-19 22:12:39 -07:00
Kubernetes Prow Robot
1eccb41fa8
Merge pull request #101248 from deads2k/integration
update more integration tests for v1beta1 removal
2021-04-19 18:54:56 -07:00
Kubernetes Prow Robot
651a7a6f6b
Merge pull request #101245 from deads2k/test-cmd
update test-cmd to avoid removed beta APIs
2021-04-19 18:54:44 -07:00
James Sturtevant
02a182f5e2 updates to clarify the image promotion process 2021-04-19 15:49:27 -07:00
David Eads
e6113c5fe6 update openapi overlap test for crd v1 2021-04-19 13:55:32 -04:00
David Eads
b199047fa6 remove outdated extensions group test 2021-04-19 13:55:32 -04:00
David Eads
b74c542de5 skip printing test for removed APIs 2021-04-19 13:55:32 -04:00
Shihang Zhang
925900317e allow multiple of --service-account-issuer 2021-04-19 09:54:11 -07:00
David Eads
2fb8420756 update test-cmd to avoid removed beta APIs 2021-04-19 10:06:37 -04:00
David Eads
2e07319356 remove CSR v1beta1 tests since the API is no longer avaiable and CSRs are short term 2021-04-19 09:39:41 -04:00
Patrick Ohly
93d1e373eb storage e2e: remove obsolete function
SkipRedundantSuite was replaced by SkipUnsupportedTests. We don't need
both.
2021-04-19 11:11:47 +02:00
Kubernetes Prow Robot
9f5573e83f
Merge pull request #101211 from aojea/nosnat
e2e create pods only on schedulable nodes
2021-04-17 10:32:34 -07:00
Kubernetes Prow Robot
0f1d105f8d
Merge pull request #100970 from apelisse/add-subresource-managedfields
Add subresource managedfields
2021-04-17 07:42:34 -07:00
Antonio Ojea
0695bc45cf e2e create pods only on schedulable nodes
We were avoiding the scheduled using the pod.Spec.NodeName directly,
however, once we switched to using the node selector, the no_snat
e2e test started to fail because was trying to schedule pods on
nodes with taints, hence, failing the test.
2021-04-17 12:05:40 +02:00
Stephen Augustus
fac97f8a9b [go1.16] Update to go1.16.3
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-04-16 19:56:51 -04:00
Antoine Pelisse
e477c31307 fieldmanager: Comment test broken by status being separated from main resource 2021-04-16 14:26:05 -07:00
Andrea Nodari
862d256195 Add "subresource" field to ManagedFieldEntry
This field is useful to namespace the managed field entries of a
subresource and differentiate them from the ones of the main resource.
2021-04-16 14:13:18 -07:00
Kubernetes Prow Robot
3ed71cf190
Merge pull request #100976 from jindijamie/master
releng: Update debian-base and debian-iptables to buster-v1.6.0 to patch base image CVEs
2021-04-16 12:56:34 -07:00
Kubernetes Prow Robot
f1c1379def
Merge pull request #100963 from enj/enj/i/authz_func_ctx
authorizer func: pass through context
2021-04-16 12:56:22 -07:00
Kubernetes Prow Robot
27a625cf89
Merge pull request #100724 from liggitt/eviction-v1beta1
Add policy/v1 Eviction support
2021-04-16 10:02:22 -07:00
Antonio Ojea
60c3480740 e2e don't set pod.Spec.NodeName directly
based on this comment in
ea07644522/test/e2e/framework/pod/node_selection.go (L96-L101)

// pod.Spec.NodeName should not be set directly because
// it will bypass the scheduler, potentially causing
// kubelet to Fail the pod immediately if it's out of
// resources. Instead, we want the pod to remain
// pending in the scheduler until the node has resources
// freed up.
2021-04-16 15:58:16 +02:00
Lee Verberne
97726a50c1 Address feedback for new /ephemeralcontainers API
* Use deep copies in `PrepareForUpdate()`
* Preserve select metadata from new pod
* Use patch to add ephemeral container `kubectl debug`
* Distinguish between pod vs /ephemeralcontainers NotFound
2021-04-16 14:08:12 +02:00
tanjing2020
fa3956844d The process name is called agnhost, not test-webserver, after the Agnhost image is started. 2021-04-16 18:05:00 +08:00
Kubernetes Prow Robot
97bdd7b9eb
Merge pull request #100377 from mauriciopoppe/storage-windows-e2e-tests
Fix "Pod Disks schedule pods each with a PD" test in windows
2021-04-15 23:22:22 -07:00
Mauricio Poppe
eaf2954ad8 Add a TODO to install sync in agnhost 2021-04-16 00:01:18 +00:00
Kubernetes Prow Robot
e583435ecb
Merge pull request #101147 from soltysh/wrong_substring
Limit image spec's hash length
2021-04-15 10:36:07 -07:00
Kubernetes Prow Robot
24350a922e
Merge pull request #101086 from enj/enj/i/auth_owners_gen
Prune stale entries from OWNERS files
2021-04-15 08:27:50 -07:00
Maciej Szulik
8acab3cc49
Limit image spec's hash length
To be able to properly limit the length of hash string we should limit
after encoding to base, not before.
2021-04-15 16:14:45 +02:00
Kubernetes Prow Robot
edc7f023a4
Merge pull request #101118 from zshihang/master
move upgrade test frameworks closer to Describe
2021-04-15 04:35:49 -07:00
Kubernetes Prow Robot
6d130d3b97
Merge pull request #100557 from chendave/validation_cleanup
Validate plugin config for KubeSchedulerConfiguration
2021-04-14 18:20:01 -07:00
Kubernetes Prow Robot
e824c59913
Merge pull request #99696 from JornShen/refactor_netpol_policies
refactor netpol/policies.go
2021-04-14 15:17:07 -07:00
Shihang Zhang
cf3232ca65 move upgrade test frameworks closer to Describe 2021-04-14 09:13:58 -07:00
Jordan Liggitt
a07d4460bf Promote e2e eviction test to conformance 2021-04-14 09:12:39 -04:00
Jordan Liggitt
10b07085f8 Define constant for eviction failure cause 2021-04-14 09:12:39 -04:00
Dave Chen
c6e65079c7 Validate plugin config for KubeSchedulerConfiguration
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-04-14 09:30:20 +08:00
Jordan Liggitt
33ad842480 allow evictions subresource to accept policy/v1 and policy/v1beta1 2021-04-13 21:22:25 -04:00
Monis Khan
91241eac9b
Prune stale entries from OWNERS files
Signed-off-by: Monis Khan <mok@vmware.com>
2021-04-13 20:54:50 -04:00
Kubernetes Prow Robot
2147937c41
Merge pull request #100128 from ingvagabund/sig-scheduling-single-node-e2e
[sig-scheduling] SchedulerPreemption|SchedulerPredicates|SchedulerPriorities: adjust some e2e tests to run in a single node cluster scenario
2021-04-13 10:31:09 -07:00
Jim Ramsay
050001d1d3 Position e2e Mount Propagation test to be kubelet-specific
This replaces the check of mount propagation to/from the host OS mount
namespace to a similar check about the mount namespace where kubelet is
running (which may or may not be the same mount namespace as the host
OS).

This addresses issue #100259
2021-04-13 12:03:08 -04:00
Lee Verberne
d22dc5cb72 Switch ephemeralcontainers SR to Pod Kind
This changes the `/ephemeralcontainers` subresource of `/pods` to use
the `Pod` kind rather than `EphemeralContainers`.

When designing this API initially it seemed preferable to create a new
kind containing only the pod's ephemeral containers, similar to how
binding and scaling work.

It later became clear that this made admission control more difficult
because the controller wouldn't be presented with the entire Pod, so we
updated this to operate on the entire Pod, similar to how `/status`
works.
2021-04-13 13:36:48 +02:00
Kubernetes Prow Robot
57459ebd3e
Merge pull request #101003 from ahg-g/ahg-cost
Integration test for pod deletion cost feature
2021-04-13 03:02:50 -07:00
Kubernetes Prow Robot
dd72c4534c
Merge pull request #97968 from saschagrunert/apparmor-host-check
Remove check for apparmor_parser in AppArmor host validation
2021-04-13 01:58:50 -07:00
Jan Chaloupka
bf2fc250a4 validates basic preemption works|validates lower priority pod preemption by critical pod: allocate 4/5 instead of 2/3
To run the tests in a single node cluster, create two pods consuming 2/5 of the extended resource instead of one consuming 2/3.
The low priority pod will be consuming 2/5 of the extended resource instead so in case there's only a single node,
a high priority pod consuming 2/5 of the extended resource can be still scheduled. Thus, making sure only the low priority pod
gets preempted once the preemptor pod consuming 2/5 of the extended resource gets scheduled while keeping the high priority pod untouched.
2021-04-13 09:47:28 +02:00
Kubernetes Prow Robot
ed3e0d302f
Merge pull request #100644 from Huang-Wei/sched-fwk-config
Surface kube config in scheduler framework handle
2021-04-12 19:12:49 -07:00
Katrina Verey
5200ff86d0 Add --chunk-size flag to kubectl drain 2021-04-12 08:10:52 -07:00
Abdullah Gharaibeh
74e3ffa959 Integration test for pod deletion cost feature 2021-04-11 23:37:20 -04:00
Kubernetes Prow Robot
ce14346b46
Merge pull request #100181 from pacoxu/master-to-control-plane
part1: master to controlplane in test/integration(1.22)
2021-04-11 05:07:59 -07:00
Kubernetes Prow Robot
3eac797255
Merge pull request #100200 from jackfrancis/ctx-respect-ExecProbeTimeout
respect ExecProbeTimeout=false for dockershim
2021-04-10 22:55:59 -07:00
Kubernetes Prow Robot
dbf1102437
Merge pull request #100762 from AliceZhang2016/multi-az-timeout
List pod list once to avoid timeout in Multi-AZ Clusters
2021-04-10 20:29:43 -07:00
Kubernetes Prow Robot
43af6783ae
Merge pull request #100865 from RA489/update_owner
kubeadm: Add RA489 as reviewer
2021-04-10 19:04:03 -07:00
Kubernetes Prow Robot
c51450609f
Merge pull request #100839 from jayunit100/patch-25
add network-policy label automatically
2021-04-10 19:03:47 -07:00
Kubernetes Prow Robot
e188a36408
Merge pull request #100836 from dims/fix-file-mode-condition-for-host_path-storage-test
Fix file mode condition for host_path storage test
2021-04-10 19:03:39 -07:00
Kubernetes Prow Robot
24b40c4d6c
Merge pull request #100808 from nicomitchell/scheduler_perf_tests_unique_names
test/integration/scheduler_perf: make sure each testCase and workload has a unique name
2021-04-10 19:03:30 -07:00
Kubernetes Prow Robot
e639d44ae5
Merge pull request #100440 from lojies/ingress_utils_cleanup
log format optimization
2021-04-10 19:03:10 -07:00
jindijamie
7e7a6284be update debian-base to buster-v1.5.0 for CVEs 2021-04-09 19:27:10 +00:00
Monis Khan
8f00e918d8
authorizer func: pass through context
Signed-off-by: Monis Khan <mok@vmware.com>
2021-04-09 09:47:19 -04:00
Kubernetes Prow Robot
fded3d71e5
Merge pull request #100676 from squeed/netpol-v6-test
test/e2e: handle ipv6 addresses in netpol tests
2021-04-09 05:19:53 -07:00
Kubernetes Prow Robot
4959cd6339
Merge pull request #100671 from Niekvdplas/spelling-mistakes
Fixed several spelling mistakes
2021-04-09 05:19:45 -07:00
Kubernetes Prow Robot
f56a2c4118
Merge pull request #100562 from deads2k/beta-proxy-removal
use a non-deprecated API to check kube-proxy
2021-04-09 05:18:59 -07:00
Kubernetes Prow Robot
ecd559a3ab
Merge pull request #100457 from gavinfish/integration-e2e
Make integration tests not depend on e2e tests
2021-04-08 22:09:39 -07:00
Kubernetes Prow Robot
c648d897e8
Merge pull request #100433 from gavinfish/e2e-common-unify
Unify some methods in e2e common
2021-04-08 22:09:14 -07:00
Kubernetes Prow Robot
851e14dc70
Merge pull request #100425 from eltociear/patch-4
test: fix typo in chaosmonkey.go
2021-04-08 22:09:05 -07:00
Kubernetes Prow Robot
2056c8df5d
Merge pull request #100378 from marun/tag-multiaz-serial
Tag Multi-AZ scheduling tests as serial
2021-04-08 20:30:28 -07:00
Kubernetes Prow Robot
3c75651d15
Merge pull request #100357 from Huang-Wei/enq-serviceaffinity
implement EnqueueExtensions interface in serviceaffinity
2021-04-08 20:30:20 -07:00
Kubernetes Prow Robot
c081e70656
Merge pull request #100356 from mauriciopoppe/storage-windows-tests
Disable intree storage multivolume e2e test in windows nodes
2021-04-08 20:30:12 -07:00
Kubernetes Prow Robot
4b9421674f
Merge pull request #100325 from cwdsuzhou/donot_delete_waitingpod
Preempting: do not delete the victim if it just exits in WaitingPods
2021-04-08 20:29:46 -07:00
Kubernetes Prow Robot
8d6b3229da
Merge pull request #100206 from KnVerey/fix-drain-server-dry-run
Error in kubectl drain --dry-run=server
2021-04-08 20:28:46 -07:00
Kubernetes Prow Robot
96db2323a4
Merge pull request #100041 from vteratipally/update_npd_version
bump npd version to latest v0.8.7
2021-04-08 17:10:55 -07:00
Kubernetes Prow Robot
bb0906dcb2
Merge pull request #99929 from lala123912/lint_clean
Remove unused/dead code
2021-04-08 16:00:34 -07:00
Kubernetes Prow Robot
a40da10099
Merge pull request #99713 from ankeesler/exec-plugin-integration-test
Exec plugin integration test
2021-04-08 15:59:17 -07:00
Kubernetes Prow Robot
e9d7247447
Merge pull request #99072 from cynepco3hahue/e2e_fix_memory_manager_tests
e2e: fix memory manager tests
2021-04-08 14:27:40 -07:00
Jack Francis
5a43067915 respect ExecProbeTimeout 2021-04-07 12:38:19 -07:00
Andrew Keesler
d00202bd3e
exec credential provider: informer happy path integration test
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-04-07 14:46:40 -04:00
Antonio Ojea
7c7d003e5c e2e test with hostNetwork pods can't run in parallel
the tests with pods using hostNetwork need to bind pods for the
test. Since they use hostNetwork the ports are limited, hence, if
more than one run in parallel, one is going to fail because will not
be able to get the port.
2021-04-07 20:07:18 +02:00
Sergey Kanzhelev
4b05fe6644 podUnknown is marked as Obsolete 2021-04-06 22:43:08 +00:00
RA489
67d30f32f6 kubeadm: Add RA489 as reviewer 2021-04-06 21:45:39 +05:30
Nicolas Mitchell
0e994e9481 return error with non-unique workload name in scheduler_perf_test 2021-04-06 10:24:04 -04:00
Mengxue Zhang
200ef16f1d list pod list once to avoid timeout 2021-04-06 13:44:11 +00:00
Andrew Keesler
c984a1c834
test/integration/client: ditch unused code
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-04-06 09:40:57 -04:00
Mauricio Poppe
1e1252ed8c use LinuxOnly annotation instead of e2eskipper to skip windows tests 2021-04-05 20:21:53 +00:00
jay vyas
cd58735777
add network-policy label automatically 2021-04-05 09:36:15 -07:00
Davanum Srinivas
766c6706c4
Fix file mode condition for host_path storage test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-05 09:25:45 -04:00
Nicolas Mitchell
338b06fb69 validate test/workload names in validateTestCases 2021-04-04 14:18:39 -04:00
James Sturtevant
d0683b8ce2 align some of the pod start up times 2021-04-02 11:29:38 -07:00
James Sturtevant
dab1325c29 increase timeout for pods to start 2021-04-01 12:28:50 -07:00
Claudiu Belu
665e2004f1 Windows tests: Adds [Feature:GPUDevicePlugin] tag to Device Plugin test
The test verifies a specific feature, in which GPUs are required, thus, cannot
be run in most testing environments. We should exclude this test from most test jobs.
We'll be doing this by adding the [Feature:GPUDevicePlugin] tag (which is also being
used by test/e2e/scheduling/nvidia-gpus.go), and then add it to the ginkgo skip regex.
2021-04-01 11:36:13 -07:00
Mauricio Poppe
55bed0bb66 skip default storageclass test with windows nodes 2021-03-31 17:21:57 +00:00
pacoxu
ce50018a76 part1 of e2e: master to apiserver/control-plane
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-31 15:50:18 +08:00
Davanum Srinivas
57ddfb7314
Switch to newer agnhost image
We have an update to the image in
f9aaf71ccb, we need to bump to use this
image.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-30 20:15:36 -04:00
Niekvdplas
fec272a7b2 Fixed several spelling mistakes 2021-03-30 23:02:09 +02:00
Mauricio Poppe
7b0b47c132 remove sleep 1 and check later if the test is flaky 2021-03-30 20:04:10 +00:00
Andrey Smirnov
f9aaf71ccb test/e2e: fix the OIDC discovery test with ECDSA service account key
By default oidc library enables only `RS256` signature validation
method.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-03-30 22:58:50 +03:00
Wei Huang
e7f67b1a63
Surface kube config in scheduler framework handle 2021-03-30 11:54:59 -07:00
Casey Callendrello
1efd456bcf test/e2e: handle ipv6 addresses in netpol tests
The tests, as written, don't correctly join ip and port for v6
addresses.

use net.JoinHostPort to handle this case.
2021-03-30 16:41:06 +02:00
Kubernetes Prow Robot
770d3f181c
Merge pull request #99734 from wgahnagl/sysctls-conformance
Promote sysctls e2e test to Conformance
2021-03-26 18:26:43 -07:00
Kubernetes Prow Robot
931516a87b
Merge pull request #100191 from jingxu97/mar/deployment
Fix deployment lifecycle test issue
2021-03-25 17:13:49 -07:00
Kubernetes Prow Robot
4333e5caa7
Merge pull request #100553 from adtac/suspend-intfail
job controller: don't mutate shared cache object
2021-03-25 10:31:29 -07:00
David Eads
cbd762814f use a non-deprecated API to check kube-proxy 2021-03-25 12:41:50 -04:00
drfish
aa0b284ca1 Make integration tests not depend on e2e tests 2021-03-25 23:02:52 +08:00
Skyler Clark
c6b99025a6
adds sysctls conformance tests 2021-03-25 09:28:25 -04:00
Kubernetes Prow Robot
2eb6911e83
Merge pull request #94334 from RaunakShah/volume_provision_perf
Add e2e test to validate performance metrics of volume lifecycle operations
2021-03-24 23:47:29 -07:00
Adhityaa Chandrasekar
4118dff509 suspend integration tests: run all subtests in pre-submit
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2021-03-25 06:36:00 +00:00
Kubernetes Prow Robot
533931cfe5
Merge pull request #100549 from RaunakShah/fix_snapshot_cleanup
Fix check before deleting PV in Snapshot e2e test
2021-03-24 21:41:29 -07:00
Kubernetes Prow Robot
e34046c81d
Merge pull request #100537 from pohly/storage-capacity-e2e-test
storage e2e: verify CSIStorageCapacity publishing
2021-03-24 20:01:41 -07:00
shahra
6a97ff529d Fix check before deleting PV in Snapshot e2e test 2021-03-24 18:34:44 -07:00
Jing Xu
787559581f Fix deployment lifecycle and ReplicaSet test issue
The pause image should not run sleep commands. This will cause pod fail
to start correctly.

See details in issue #100047. We discovered some behavior about
development in certain cases like new pod fail to start correctly, but will be further investigated.

Change-Id: I9761bbefa694f6fe51a6f1e7561fa7e566ce4d8f
2021-03-24 18:22:13 -07:00
Kubernetes Prow Robot
bcab4c35d2
Merge pull request #100540 from mauriciopoppe/remove-selinuxoptions
Remove SELinuxOptions double setup in pod spec
2021-03-24 18:01:28 -07:00
Mauricio Poppe
7455b1ae94 update ephemeral volume tests with windows 2021-03-25 00:13:52 +00:00
Kubernetes Prow Robot
68c021261c
Merge pull request #100519 from tanjing2020/validateOOMScoreAdjSettingIsInRange
Fix the wrong judgment of oom_score_adj
2021-03-24 16:23:28 -07:00
Patrick Ohly
d7a086ddd8 storage e2e: simplify CSIStorageCapacity test
We can support topology detection for all drivers with a single
topology key by allowing different nodes to have the same topology
value. This makes the test a bit more generic and its configuration
simpler.
2021-03-24 22:31:43 +01:00
shahra
34e4a5f22c Add e2e test to validate performance metrics of volume lifecycle operations.
This test currently validates latency and throughput of volume
provisioning against a high baseline.
2021-03-24 13:50:32 -07:00
Kubernetes Prow Robot
d8193c9503
Merge pull request #100464 from listx/remove-listx-from-owners
test/utils/image: remove listx from OWNERS
2021-03-24 13:49:42 -07:00
Kubernetes Prow Robot
e57223876d
Merge pull request #100295 from adtac/suspend-int
add integration test for suspended jobs
2021-03-24 13:49:30 -07:00
Mauricio Poppe
d9c4d8bff8 remove selinuxoptions because it's configured before 2021-03-24 18:58:54 +00:00
Patrick Ohly
b9b5d13b6d storage e2e: verify CSIStorageCapacity publishing
Drivers need to opt into the new test. Depending on how the driver
describes its behavior, the check can be more specific. Currently it
distinguishes between getting any kind of information about the
storage class (i.e. assuming that capacity is not exhausted) and
getting one object per node (for local storage). Discovering nodes
only works for CSI drivers.

The immediate usage of this new test is for csi-driver-host-path with
the deployment for distributed provisioning and storage capacity
tracking. Periodic kubernetes-csi Prow and pre-merge jobs can run this
test.

The alternative would have been to write a test that manages the
deployment of the csi-driver-host-path driver itself, i.e. use the E2E
manifests. But that would have implied duplicating the
deployments (in-tree and in csi-driver-host-path) and then changing
kubernetes-csi Prow jobs to somehow run for in-tree driver definition
with newer components, something that currently isn't done. The test
then also wouldn't be applicable to out-of-tree driver deployments.

Yet another alternative would be to create a separate E2E test suite
either in csi-driver-host-path or external-provisioner. The advantage
of such an approach is that the test can be written exactly for the
expected behavior of a deployment and thus be more precise than the
generic version of the test in k/k. But this again wouldn't be
reusable for other drivers and also a lot of work to set up as no such
E2E test suite currently exists.
2021-03-24 18:18:27 +01:00
Seth Jennings
0eb40b3ded e2e: reduce pods used in shared local pv test 2021-03-24 10:07:45 -05:00
tanjing2020
d0882e69e2 Fix the wrong judgment of oom_score_adj 2021-03-24 16:13:20 +08:00
drfish
244d7a5d67 Remove suffixes for VolumeSnapshotClasses in E2E tests 2021-03-23 21:24:28 +08:00
Kubernetes Prow Robot
375c9abfa2
Merge pull request #99873 from liggitt/etcd-compatibility
Add Etcd compatibility test
2021-03-23 05:27:36 -07:00
caiweidong
850759ec87 Preempting: do not delete the victim if it just exits in WaitingPods 2021-03-23 14:37:36 +08:00
Kubernetes Prow Robot
1822523afb
Merge pull request #100345 from ravisantoshgudimetla/fix-ds-test
Tighten DS rollout catching function
2021-03-22 18:51:35 -07:00
Linus Arver
8f6ca1c649 test/utils/image: remove listx from OWNERS
Removing myself from OWNERS as I haven't had the bandwidth to go over
these reviews for a long time.

This should have been part of #99718, which has already been merged.
2021-03-22 14:22:51 -07:00
Kubernetes Prow Robot
1a983bb958
Merge pull request #100418 from swetharepakula/eps-conformance
Promote EndpointSlice API test to Conformance
2021-03-22 13:27:35 -07:00
卢振兴10069964
4d595b9129 log format optimization 2021-03-22 11:15:25 +08:00
drfish
0558ca1918 Unify some methods in e2e common 2021-03-21 21:51:56 +08:00
Ikko Ashimine
7baa7dbdbe
test: fix typo in chaosmonkey.go
defered -> deferred
2021-03-21 12:20:00 +09:00
Swetha Repakula
9c1f9c3962 Promote EndpointSlice API test to Conformance 2021-03-19 23:28:35 +00:00
ravisantoshgudimetla
f339061816 Tighten DS rollout catching function 2021-03-19 16:02:41 -04:00
Ernest Wong
42011ecfe4
test image: bump agnhost version to 2.30
Signed-off-by: Ernest Wong <chuwon@microsoft.com>
2021-03-19 11:12:45 -07:00
Kubernetes Prow Robot
ac5f05b374
Merge pull request #100359 from chewong/increase-dns-timeout
agnhost: increase dns timeout from 5 seconds to 20 seconds
2021-03-19 08:04:33 -07:00
Kubernetes Prow Robot
0fecc01567
Merge pull request #100300 from DangerOnTheRanger/reboot-flake-fix
Fix E2E node reboot test flake
2021-03-18 16:30:36 -07:00
Kubernetes Prow Robot
7f8ef6fbce
Merge pull request #100189 from aramase/update-dualstack-test
update dual-stack test description to remove alpha
2021-03-18 15:26:36 -07:00
Kubernetes Prow Robot
b57a8bacad
Merge pull request #100383 from jsturtevant/update-to-latest-promoted-busybox
Update busybox that includes windows nltest
2021-03-18 14:12:35 -07:00
Kubernetes Prow Robot
f28cb4659d
Merge pull request #99698 from spiffxp/verify-e2e-test-ownership
add verify-e2e-test-ownership.sh
2021-03-18 12:19:07 -07:00
James Sturtevant
a8eff25ff3 update busybox that includes windows nltest 2021-03-18 12:03:56 -07:00
Wei Huang
9d1ef9f4c5
unregister Service events if a plugin doesn't implement EventsToRegister() 2021-03-18 11:04:06 -07:00
Maru Newby
253df78f1b Tag Multi-AZ scheduling tests as serial
As per mdame, we can't ensure that the cluster is actually balanced
if other tests are adding or deleting pods in parallel.
2021-03-18 10:31:03 -07:00
Mauricio Poppe
2ac6d4d133 fix Pod Disks schedule pods each with a PD test in windows 2021-03-18 17:19:09 +00:00
Francesco Romani
fc0955c26a e2e: topomgr: use deletePodSync for faster delete
Previously the code used to delete pods serially.
In this patch we factor out code to do that in parallel,
using goroutines.

This shaves some time in the e2e tm test run with no intended
changes in behaviour.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-18 13:28:16 +01:00
Adhityaa Chandrasekar
1341e35a96 add integration test for suspended jobs
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2021-03-18 12:22:14 +00:00
Kubernetes Prow Robot
0c6d922812
Merge pull request #100057 from mauriciopoppe/pd-csi-volumesnapshot-flaky
Snapshot e2e test: wait for the node to stop using a volume before taking a snapshot
2021-03-18 01:15:19 -07:00
Kermit Alexander
81040d386f Return last pod error when apierrors.IsNotFound returns true in WaitForPodCondition. 2021-03-18 00:53:26 +00:00
Kermit Alexander
3213e36430 Always check passed podCondition in WaitForPodCondition. 2021-03-17 23:14:29 +00:00
Ernest Wong
0a368288ac
agnhost: increase dns timeout from 5 seconds to 20 seconds
Signed-off-by: Ernest Wong <chuwon@microsoft.com>
2021-03-17 16:07:35 -07:00
Aaron Crickenberger
e12e5be329 test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
Claudiu Belu
327093093d
test images: Fixes Windows busybox image
The image "e2eteam/powershell-helper:6.2.7-linux-cache" is a Linux image. Because we're running "docker buildx build --platform windows/amd64", docker buildx will consider it as a Windows image unless we explicitly specify otherwise. If the image's platform is not correctly identified, we can run into problems when trying to build the image.

We are already doing something similar with the windows-servercore-cache image.
2021-03-17 16:51:06 +02:00
Kubernetes Prow Robot
3d1d8731bd
Merge pull request #99866 from claudiubelu/test-images/powershell-helper-linux-cache
test images: powershell-helper linux cache
2021-03-16 17:02:56 -07:00
Kubernetes Prow Robot
da341b5cfc
Merge pull request #100290 from ii/promote-service-status-test
Promote ServiceStatus lifecycle e2e test to Conformance  +4 endpoint coverage
2021-03-16 15:57:16 -07:00
Katrina Verey
8bae3b449a Fix kubectl drain integration tests
These tests were not performing evictions because:
- Test pods were not on the test node (fixed with spec.nodeName)
- The test pods are unmanaged and require the --force flag to be evicted
  (added the flag)
- The test node does not run pods, which prevents pod deletion from
  finalizing (worked around with --skip-wait-for-delete-timeout)
2021-03-16 15:52:00 -07:00
Kubernetes Prow Robot
d4f1102690
Merge pull request #100260 from liggitt/pdb-crud
Replicate update/patch operations from eviction test in conformance CRUD test
2021-03-16 14:50:40 -07:00
Kubernetes Prow Robot
72cc3f2112
Merge pull request #99860 from chewong/fix-99470
agnhost: resolve service account issuer URL before invoking oidc.NewProvider
2021-03-16 14:49:30 -07:00
Kubernetes Prow Robot
c78b5497ae
Merge pull request #99638 from chendave/perf_config
Enable scheduler_perf to support scheduler config file
2021-03-16 14:49:03 -07:00
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
Chaitanya Bandi
93be90da9a use Patch API to add namespace annotations
While adding annotations to 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-15 15:13:36 -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
Francesco Romani
04f091790e e2e: TM: wait for SRIOV devices in pod scope tests
The Topology Manager e2e tests wants to run on real multi-NUMA system
and want to consume real devices supported by device plugins; SRIOV
devices happen to be the most commonly available of such devices.

The tests need to wait for resource availability before to actually
run the tests, or they will fail with a false negative, also relatively
hard to debug.

An optimization was added in commit 56106439cf to minimize the restarts,
speed up the execution and make a nasty, yet not fully understood, flake
with SRIOV device plugin much less likely.

Unfortunately the pod-scope tests were mistakenly left over.
This Patch fixes that.
CI lanes did NOT fail (and will not fail) because the CI machines aren't
multi NUMA nor expose SRIOV devices, so the relevant portion of the test
will just skip, avoiding the issue.

However, this resurfaces when running the testsuite on bare metal; this
is how we noticed.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-03-12 11:01:56 +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
Jan Chaloupka
34c2672115 Skip PodTopologySpread tests in a single node cluster scenario 2021-03-11 12:32:09 +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
Varsha Teratipally
82434ec818 bump npd version to latest v0.8.7 2021-03-09 22:48:27 +00: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
wojtekt
6d4a601b72 Compute upgradeContext once in upgrade tests 2021-03-09 08:14:30 +01:00
Kubernetes Prow Robot
40a411a61a
Merge pull request #99912 from dims/capture-logs-from-containerd-installation-service
Capture logs from containerd-installation service
2021-03-08 22:53:38 -08:00
Kubernetes Prow Robot
faa3a5fbd4
Merge pull request #99916 from swetharepakula/eps-ga-e2e
Promote Endpoint Slice E2E Tests to Conformance
2021-03-08 20:47:45 -08:00
Kubernetes Prow Robot
841cb4adc4
Merge pull request #99844 from minbaev/scheduler-test-perf-optimization
add if check for number of scheduled pods to be greater than 0
2021-03-08 20:47:37 -08:00
Kubernetes Prow Robot
7eb99191a1
Merge pull request #98116 from aojea/mirror_dual
slice mirroring controller should mirror annotations (but endpoints.kubernetes.io/last-change-trigger-time annotation) and labels
2021-03-08 20:47:12 -08:00
jay vyas
c94ce8c507
Add default namespace labels to all namespaces for selectors (#96968)
* namespace by name default labelling

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
Co-authored-by: Abhishek Raut <rauta@vmware.com>

* Make some logic improvement into default namespace label

* Fix unit tests

* minor change to trigger the CI

* Correct some tests and validation behaviors

* Add Canonicalize normalization and improve validation

* Remove label validation that should be dealt by strategy

* Update defaults_test.go
add fuzzer
ns spec

* remove the finalizer thingy

* Fix integration test

* Add namespace canonicalize unit test

* Improve validation code and code comments

* move validation of labels to validateupdate

* spacex will save us all

* add comment to testget

* readablility of canonicalize

* Added namespace finalize and status update validation

* comment about ungenerated names

* correcting a missing line on storage_test

* Update the namespace validation unit test

* Add more missing unit test changes

* Let's just blast the value. Also documenting the workflow here

* Remove unnecessary validations

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
Co-authored-by: Abhishek Raut <rauta@vmware.com>
Co-authored-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2021-03-08 20:46:59 -08:00
Kubernetes Prow Robot
c7e2439173
Merge pull request #99954 from deads2k/storage-beta
switch most e2e tests to storage/v1 over v1beta1
2021-03-08 19:24:26 -08:00
Kubernetes Prow Robot
761cdf33a2
Merge pull request #99952 from ii/Promote-ReplicaSet-Test
Promote ReplicaSet Replace and Patch Test +2 Endpoints
2021-03-08 19:24:18 -08:00
Kubernetes Prow Robot
8d394cda11
Merge pull request #99857 from wojtek-t/cleanup_describe_18
Stop using SIGDescribe for upgrade tests to reflect reality
2021-03-08 19:23:54 -08:00
Kubernetes Prow Robot
b85313b6dd
Merge pull request #99853 from wojtek-t/cleanup_describe_17
Cleanup the remaining multi-owned sig-node tests
2021-03-08 19:23:44 -08:00
Kubernetes Prow Robot
eacb4bc8f0
Merge pull request #99852 from wojtek-t/cleanup_describe_16
Cleanup test/e2e/upgrades directory
2021-03-08 19:23:36 -08:00
Kubernetes Prow Robot
5f0b88b043
Merge pull request #98791 from pacoxu/kubetest/external-ips
skip checking nodeport on external addrs in conformance tests
2021-03-08 19:22:59 -08:00
lala123912
127b675a15 Remove unused/dead code 2021-03-09 09:34:37 +08:00
Kubernetes Prow Robot
0df8c69731
Merge pull request #99960 from knabben/fix-runtime-config
Enabling runtime config on E2E node tests
2021-03-08 16:28:00 -08:00
Kubernetes Prow Robot
5c8c72cf2f
Merge pull request #99941 from dims/adding-dims-as-approver-for-test
Adding dims as approver for test/
2021-03-08 16:27:52 -08:00
Kubernetes Prow Robot
a0341d7471
Merge pull request #98727 from adtac/suspend
batch API: add suspended job
2021-03-08 16:26:59 -08:00
Kubernetes Prow Robot
14c25eed8d
Merge pull request #99641 from pohly/storage-capacity-beta
CSIStorageCapacity beta API
2021-03-08 15:04:59 -08:00
Antonio Ojea
c421e22e2c slice mirroring controller mirror annotations
Add support to the endpoint slice mirroring controller to mirror
annotations, in addition to labels, but don´t mirror endpoint
triggertime annotation.

Also, fix a bug in the endpointslice mirroring controller, that
wasn't updating the mirrored slice with the new labels, in case
that only the endpoint labels were modified.
2021-03-08 23:20:08 +01:00
Kubernetes Prow Robot
1c06a72c97
Merge pull request #98067 from verb/1.21-test-ec-disabled
Add integration test for disabled ephemeral containers
2021-03-08 13:39:00 -08:00
David Eads
80ff06fe84 Enable, rate limit, and test APF controller fights
Using real time.
2021-03-08 16:24:39 -05:00
Riaan Kleinhans
c3fb2c002a Promote ReplicaSet e2e test to Conformance 2021-03-09 09:54:04 +13:00
James Sturtevant
c9eff4e906 Get filesystem stats for files on Windows 2021-03-08 12:50:23 -08:00
Amim Knabben
0341e4c2f3 Enabling runtime config on E2E node tests 2021-03-08 15:45:06 -05:00
Yu Yi
77950ba79b metrics: promote apiserver_storage_object_counts to stable
- rename etcd_object_counts to apiserver_storage_object_counts

CONTEXT https://github.com/kubernetes/kubernetes/issues/98270
FIXES https://github.com/kubernetes/kubernetes/issues/98270
2021-03-08 20:28:55 +00:00
Adhityaa Chandrasekar
a0844da8f7 batch: add suspended job
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2021-03-08 20:08:21 +00:00
Kubernetes Prow Robot
eb4dafb7f1
Merge pull request #99651 from umohnani8/cri
Move CRIContainerLogRotation to GA
2021-03-08 12:07:20 -08:00
Patrick Ohly
4c7e4c6316 CSIStorageCapacity: enable E2E tests by default
With the feature now in beta, tests should run in the normal jobs.
2021-03-08 20:59:52 +01:00
Patrick Ohly
5ca0814165 CSIStorageCapacity: use beta API 2021-03-08 20:52:50 +01:00
Patrick Ohly
504f105a9e CSIStorageCapacity: prepare tests for enabling the feature by default
Defaults and validation are such that the field has to be set when
the feature is enabled, just as for the other boolean fields. This
was missing in some tests, which was okay as long as they ran
with the feature disabled. Once it gets enabled, validation will
flag the missing field as error.

Other tests didn't run at all.
2021-03-08 20:52:50 +01:00
Kubernetes Prow Robot
72d92159bc
Merge pull request #99925 from logicalhan/stable-latencies
promote apiserver_request_duration_seconds to STABLE
2021-03-08 11:04:46 -08:00
Kubernetes Prow Robot
8e6c7b5825
Merge pull request #99204 from pohly/podlog-after-termination
test: err more towards ignoring logs from terminated pods
2021-03-08 11:04:38 -08:00
David Eads
b8194cf77c switch most e2e tests to storage/v1 over v1beta1 2021-03-08 13:04:24 -05:00
Swetha Repakula
17beeaf47a Promote EndpointSlice E2E Tests to Conformance 2021-03-08 09:44:47 -08:00
Swetha Repakula
3ef94fbe3e Update e2e tests to use EndpointSlice v1 API 2021-03-08 09:44:47 -08:00
Kubernetes Prow Robot
71764b1309
Merge pull request #99939 from aojea/agnhost2.29
update agnhost readme
2021-03-08 09:31:54 -08:00
Kubernetes Prow Robot
4fccba9e06
Merge pull request #99800 from deads2k/beta-more
remove more CRD v1beta1 client dependencies from test integration
2021-03-08 07:51:54 -08:00
Artyom Lukianov
cff9ecd317 e2e: fix memory manager tests
Restart the kubelet and wait for hugepages resources to appear
under the node.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-03-08 15:03:28 +02:00
Davanum Srinivas
1a374db38e
Adding dims as approver for test/
In 16fb6733a1, i signed up as a reviewer
for test/ (8 months ago).

Here's what i have to show for it:
https://github.com/kubernetes/kubernetes/pulls?q=is%3Apr+is%3Amerged+label%3Aarea%2Ftest+commenter%3Adims

Especially see the most recent conformance related reviews. Hoping this
is enough of a track record!

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-08 07:26:13 -05:00
Antonio Ojea
97fba66df6 update agnhost readme 2021-03-08 11:55:12 +01:00
chenyw1990
57a3b0abd6 reduce configmap and secret watch of kubelet 2021-03-08 16:55:39 +08:00
pacoxu
520ce44c55 skip test on External IP of NodePort in conformance test 2021-03-08 16:55:34 +08:00
Han Kang
69e3d89a38 promote apiserver_request_duration_seconds to STABLE
Change-Id: I1b050b812738719aedd7ac6f4794ec742812e12d
2021-03-07 17:14:36 -08:00
Benjamin Elder
1a7cf6c91a remove bazel logic from test/integration/framework 2021-03-07 15:27:44 -08:00
Benjamin Elder
bf33ee380a remove bazel from start-kubemark.sh 2021-03-07 13:09:01 -08:00
Davanum Srinivas
ce35b2f2e7
capture additional logs related to containerd
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-07 13:48:07 -05:00
Kubernetes Prow Robot
90851a0fb5
Merge pull request #99905 from BenTheElder/shellchecked
update verify-shellcheck to v0.7.1, fix nits, multi-arch digest pinning, fix new lint errors
2021-03-06 22:17:53 -08:00
Kubernetes Prow Robot
e688f22da0
Merge pull request #99214 from jpbetz/apply-client-go-builders2-typedclient
Add Apply to client-go's typed client
2021-03-06 22:17:41 -08:00
Kubernetes Prow Robot
4cf8823fba
Merge pull request #98074 from kwiesmueller/admission-reset-managedFields
Reset managedFields corrupted by admission controllers
2021-03-06 21:15:42 -08:00
Kubernetes Prow Robot
d6a9061cb4
Merge pull request #99870 from swetharepakula/eps-ga-controller
Graduate EndpointSlice Controllers to GA
2021-03-06 19:57:45 -08:00
Joe Betz
0b42cae157 Add integration test 2021-03-06 20:50:52 -05:00
Kubernetes Prow Robot
a44db4f9ef
Merge pull request #99889 from aojea/imageutil
image util unbound variable
2021-03-06 16:45:41 -08:00
Swetha Repakula
108fd44f7c Graduate EndpointSlice feature gate to GA 2021-03-06 15:58:47 -08:00
Swetha Repakula
1925d94b18 Graduate EndpointSlice Controllers to GA
- EndpointSlice controller will stop writing to Topology field
 - EndpointSlice controller will only provide NodeName and Zone on
 EndpointSlices
2021-03-06 15:58:47 -08:00
Kubernetes Prow Robot
f8151b121f
Merge pull request #99732 from soltysh/clean_run_flags
Drop deprecated run flags and deprecate unused ones
2021-03-06 15:24:01 -08:00
Kubernetes Prow Robot
36244f31ef
Merge pull request #99662 from swetharepakula/eps-ga-api-changes
Graduate EndpointSlice API to GA
2021-03-06 15:23:54 -08:00
Kubernetes Prow Robot
c88d9bed17
Merge pull request #99851 from soltysh/cronjob_conformance
Promote cronjob e2es to conformance
2021-03-06 14:21:49 -08:00
Benjamin Elder
a0cd54a7f1 fix trivial shell quoting issues surfaced by shellcheck v0.7.1 2021-03-06 13:19:17 -08:00
Kubernetes Prow Robot
92c3349cef
Merge pull request #99898 from liggitt/token-flake
Update flaky volume toleration regex to include projected volumes
2021-03-06 12:50:52 -08:00
Kubernetes Prow Robot
1485c6b76f
Merge pull request #99822 from dekkagaijin/addon
Update kube-addon-manager to v9.1.4
2021-03-06 12:50:37 -08:00
Kubernetes Prow Robot
ffa4e3414e
Merge pull request #99788 from logicalhan/stable-m
promote apiserver_request_total to STABLE status
2021-03-06 12:50:13 -08:00
Kubernetes Prow Robot
ce1a720bed
Merge pull request #99733 from soltysh/drop_generators
Clean unused generators
2021-03-06 12:49:56 -08:00
Kubernetes Prow Robot
1289c883a2
Merge pull request #99718 from listx/remove-listx-owners
remove listx from OWNERS
2021-03-06 12:49:41 -08:00
Kubernetes Prow Robot
c193c1b234
Merge pull request #98376 from matthyx/mega
Make all health checks probing consistent
2021-03-06 11:45:41 -08:00
Kubernetes Prow Robot
a954818194
Merge pull request #99612 from derekwaynecarr/e2e-downward-api-hugepages
e2e testing for hugepages downward api
2021-03-06 10:47:42 -08:00
Maciej Szulik
f38ef2fbc6
Drop deprecated run flags and deprecate unused ones 2021-03-06 19:09:06 +01:00
Maciej Szulik
3c9bbe427b
Promote cronjob e2es to conformance 2021-03-06 19:01:02 +01:00
Kubernetes Prow Robot
bf448a1eaa
Merge pull request #99212 from damemi/alculquicondor-log-timestamp
Logarithmic timestamp comparison for downscaling
2021-03-06 09:47:41 -08:00
hasheddan
b85fbfc2b9
Update dependencies in local node test runner
Updates comment on building dependencies step in the local node test
runner to reflect the binaries that are actually produced.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-03-06 10:41:18 -06:00
Jordan Liggitt
8bbb6704c1 Update flaky volume toleration regex to include projected volumes 2021-03-06 11:39:36 -05:00
Kubernetes Prow Robot
377ed3c2a6
Merge pull request #96441 from smarterclayton/daemonset_surge_impl
DaemonSet controller respects MaxSurge during update
2021-03-06 08:23:42 -08:00
Kubernetes Prow Robot
4770211dad
Merge pull request #99197 from soltysh/cronjob_e2e
Switch to batch/v1 in cronjob's e2es
2021-03-06 06:59:41 -08:00
Matthias Bertschy
b203fb0565 Deflake e2e test for startupProbe 2021-03-06 14:43:45 +01:00
Antonio Ojea
88fbd7c509 image util unbound variable 2021-03-06 12:10:06 +01:00
Kubernetes Prow Robot
55a5d4faf3
Merge pull request #98883 from fedepaol/netexecmultilisten
Agnhost: make it possible to pass the addresses to listen on for udp
2021-03-05 23:31:41 -08:00
Kubernetes Prow Robot
ed6b9addbf
Merge pull request #96347 from cofyc/kep1845
Prioritizing nodes based on volume capacity
2021-03-05 14:45:43 -08:00
James Sturtevant
94a5efcd12 make sure the output doesn't have failures 2021-03-05 13:36:14 -08:00
Aldo Culquicondor
a8d105ab72 Logarithmic timestamp comparison for ReplicSet downscaling
Change-Id: I0657ea0ce41b98fdee1a5307b5826a10deaff98c
2021-03-05 15:58:26 -05:00
Swetha Repakula
a9891b4b9b Graduate EndpointSlice API to GA
* Removes discovery v1alpha1 API
  * Replaces per Endpoint Topology with a read only DeprecatedTopology
  in GA API
  * Adds per Endpoint Zone field in GA API
2021-03-05 12:02:41 -08:00
wojtekt
ae8baefeff Cleanup the remaining multi-owned sig-node tests 2021-03-05 20:27:31 +01:00
wojtekt
fa5f303a09 Stop using SIGDescribe for upgrade tests to reflect reality 2021-03-05 20:25:56 +01:00
Maciej Szulik
0603a14be1
Switch to batch/v1 in cronjob's e2es 2021-03-05 19:08:27 +01:00
Kubernetes Prow Robot
42c1ccb38e
Merge pull request #99701 from wojtek-t/cleanup_describe_13
Tag storage windows tests with [Feature:Windows] instead of [sig-windows]
2021-03-05 10:00:47 -08:00
Lee Verberne
334cf82cb3 Add test for disabled EphemeralContainers feature
This adds an integration test to validate expected behavior when the
EphemeralContainers feature gate is disabled.
2021-03-05 18:38:32 +01:00
wojtekt
93ff0e5c68 Cleanup test/e2e/upgrades directory 2021-03-05 18:19:46 +01:00
Derek Carr
6215b12c84 e2e testing for hugepages downward api 2021-03-05 11:11:27 -05:00
Yecheng Fu
8f3782226f Prioritizing nodes based on volume capacity: integration tests 2021-03-05 23:59:25 +08:00
wojtekt
3a8e84c2da Move ownership of core events test to sig-instrumentation 2021-03-05 16:47:16 +01:00
Alexander Minbaev
359116f525 add if check for number of scheduled pods to be greater than 0 2021-03-05 09:05:42 -06:00
David Eads
c14ff1a674 remove more CRD v1beta1 client dependencies 2021-03-05 08:10:47 -05:00
Maciej Szulik
9364d0fc81
Promote CronJobs to batch/v1 2021-03-05 12:44:23 +01:00
Maciej Szulik
f8b2cf653c
Drop batch/v2alpha1 leftovers 2021-03-05 12:44:21 +01:00
jornshen
cd2af69ef9 refector netpol/policies.go 2021-03-05 19:21:36 +08:00
Federico Paolinelli
f6451c93b1 Bump up agnhost version to 2.29
This is to consume the changes for binding the udp listeners of netexec
to specific addresses.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-03-05 10:49:09 +01:00
Federico Paolinelli
5125f1fc31 Agnhost: make it possible to pass the addresses to listen on for udp
The current udp implementation listens on any for tcp, udp and tcp. There
are some cases where it makes sense to listen on specific addresses
(especially udp, see https://github.com/kubernetes/kubernetes/issues/95565).
This is because UDP is connectionless, and in order to conntrack to
work, the application must ensure that the src of the reply is the same
as the dest of the request. The easiest way to do that is to bind
explicitly on an ip.
Here we pass an optional parameter that contains a comma separated list
of addresses.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2021-03-05 10:49:08 +01:00
Jake Sanders
fb40ab2cde Update kube-addon-manager to v9.1.4 2021-03-04 22:39:46 -08:00
Matthias Bertschy
431e6a7044 Move readinessManager updates handling to kubelet 2021-03-05 07:02:25 +01:00
Matthias Bertschy
4870e64ac1 Improve update time of readiness state 2021-03-05 07:02:24 +01:00
Kubernetes Prow Robot
d8311ea0ad
Merge pull request #99703 from claudiubelu/tests/new-httpd-nginx
tests: Uses newly promoted httpd and nginx images
2021-03-04 20:32:21 -08:00
Kubernetes Prow Robot
292bdbf8a6
Merge pull request #99797 from voutcn/patch-1
Fix the image path of resource-consumer in README.
2021-03-04 18:34:56 -08:00
Kubernetes Prow Robot
48f1b8fb28
Merge pull request #99293 from chymy/e2e-kubectl
Remove unused field in test/e2e/kubectl/kubectl.go
2021-03-04 18:34:41 -08:00
Kubernetes Prow Robot
4293a6329b
Merge pull request #99805 from bobbypage/shutdown-test
Fixes to node shutdown e2e test
2021-03-04 16:06:35 -08:00
Kubernetes Prow Robot
2975ef7c55
Merge pull request #99737 from alculquicondor/indexed-job-e2e
Integration and e2e tests for Indexed job
2021-03-04 14:41:21 -08:00
Kubernetes Prow Robot
ae4f2ac43d
Merge pull request #98018 from ii/service-status-life-cycle-test
Write Service Status Life Cycle test - +4 endpoint coverage
2021-03-04 14:40:22 -08:00
Kubernetes Prow Robot
2d9cb74bc7
Merge pull request #99798 from freehan/test-fix
Mark ingress neg test as flaky
2021-03-04 13:40:14 -08:00
Kubernetes Prow Robot
a8476e5570
Merge pull request #99792 from logicalhan/owners
add myself to owners for etcd metrics
2021-03-04 13:39:31 -08:00
David Porter
bd2e557b25 Fixes to node shutdown e2e test
- Test was failing due to using `sleep infinity` inside the busybox
  container which was going into a crash loop. `sleep infinity` isn't
  supported by the sleep version in busybox, so replace it with a `while
  true; sleep loop`.

- Replace usage of dbus message emitting from gdbus to dbus-send. The
  test was failing on ubuntu which doesn't have gdbus installed.
  dbus-send is installed on COS and Ubuntu, so use it instead.

- Replace check of pod phase with the test util function `PodRunningReady`
  which checks both phase as well as pod ready condition.

- Add some more verbose logging to ease future debugging.
2021-03-04 12:16:47 -08:00
Han Kang
cfd00de686 bump apiserver_request_total to STABLE status
We've dropped the content-type field since it is effectively unbounded
(we had a sec-vuln about this before actually). We retain all other
fields, despite their unboundedness due to the fact that we can now
explicitly set bounds on label values.

Change-Id: Icc483fc6a17ea6382928f4448643cda6f3e21adb
2021-03-04 11:39:15 -08:00
Kubernetes Prow Robot
3cab9f5d74
Merge pull request #99584 from cynepco3hahue/e2e_fix_hugepages_tests
e2e node: fix hugepages test flakiness
2021-03-04 11:00:48 -08:00
Kubernetes Prow Robot
0d4924e371
Merge pull request #99439 from minbaev/fix-typos
Fix typo in util.go
2021-03-04 11:00:22 -08:00
Dinghua Li
88dbe814dc Fix the image path of resource-consumer in README. 2021-03-04 10:50:03 -08:00
Aldo Culquicondor
85448df364 Add E2E test for indexed job 2021-03-04 18:31:35 +00:00
Aldo Culquicondor
18e35a86ed Add integration test for Indexed Job 2021-03-04 18:31:35 +00:00