Commit Graph

733 Commits

Author SHA1 Message Date
tanjunchen
33dda68788 fix staticcheck in test/e2e/common directory 2019-10-12 11:30:47 +08:00
Timothy St. Clair
97055841b1 Audit of test/* OWNERS files 2019-10-10 15:52:51 -05:00
Kevin Taylor
cb8a7c1a4c Promote VolumeSubpathEnvExpansion feature gate to GA 2019-10-10 09:34:40 +01:00
Claudiu Belu
3c8822133a tests: Simplifies image pulling tests
Melds the "pull image from gcr.io" and "pull image from docker hub" tests
into a single test that pulls the agnhost image from the configured
e2eRegistry.

This also removes the need to maintain and update the image
"gcr.io/kubernetes-e2e-test-images/windows-nanoserver:v1". It should have been
a manifest list that also includes future Windows releases, like Windows Server 1903.
Additionally, the image has ~300 MB, meaning that with this change, it won't have to
wait as much to spawn a pod.

Removes "should not be able to pull non-existing image from gcr.io", since
the test "should not be able to pull image from invalid registry" test already
exists, and both of them test the same effect: cannot spawn a pod with an
image that does not exist.
2019-10-06 04:41:38 -07:00
Jefftree
40976754b5 Move privilege e2e test to common 2019-10-04 09:54:52 -07:00
Jefftree
20ac24929b move hostPID tests to common 2019-10-02 13:36:08 -07:00
Kubernetes Prow Robot
bc2971277d
Merge pull request #83148 from YuikoTakada/81427_e2e_common
use log functions of core framework
2019-09-30 20:17:31 -07:00
Kubernetes Prow Robot
c0ad143f64
Merge pull request #82632 from wojtek-t/node_lease_conformance
Promote lease API test to Conformance
2019-09-26 13:02:49 -07:00
YuikoTakada
9ed2f632cc use log functions of core framework 2019-09-26 02:45:07 +00:00
Kubernetes Prow Robot
df271a1799
Merge pull request #82291 from danwinship/getnodes
migrate from framework.GetReadySchedulableNodesOrDie to e2enode.GetReadySchedulableNodes
2019-09-25 11:04:43 -07:00
Kubernetes Prow Robot
c37c0b9dff
Merge pull request #82037 from ii/update-configmap-test
Update ConfigMap test
2019-09-25 11:04:01 -07:00
Dan Winship
ec4c1a1c05 Add e2enode.GetRandomReadySchedulableNode, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want a single ready, schedulable node
2019-09-24 13:03:40 -04:00
zouyee
51653480c9 fix Security Context should run with an image specified user ID
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-24 20:26:34 +08:00
zouyee
4931a7eba8 uses the API instead to fixemptyDir volumes pod should support shared volumes between containers
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-18 13:58:44 +08:00
wojtekt
4ec66c842e Promote lease API test to Conformance 2019-09-12 19:58:04 +02:00
Ryan Phillips
6b18285cd2 kubelet e2e: defer the close to after the error check
fixes a potential crash
2019-09-04 10:01:52 -05:00
draveness
702646df24 test(runtimeclass): add e2e tests for runtimeclass scheduling 2019-09-01 16:41:48 +08:00
Kubernetes Prow Robot
7a7b8a7305
Merge pull request #82094 from tallclair/runtime-class-admission
Enable the RuntimeClass admission controller on GCE & CI
2019-08-30 08:00:12 -07:00
Matthias Bertschy
1a08ea5984 startupProbe: Test changes 2019-08-30 00:40:26 +02:00
Tim Allclair
2c01dc0ebf Update RuntimeClass E2E expectations 2019-08-29 10:56:48 -07:00
Caleb Woodbine
4041b538b8 Update ConfigMap test 2019-08-28 08:41:39 +12:00
alejandrox1
7c161d6a5f Refactoring pod related functions from pv_util to pod pkg
Moving pod related functions from e2e/framework/pv_util.go to
e2e/framework/pod in order to allow refactoring of pv_util.go into its
own package.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-08-27 12:27:45 -04:00
Kubernetes Prow Robot
8dc4b1b585
Merge pull request #80213 from bclau/tests/skips-windows-unrelated-tests
tests: Skips Windows-unrelated tests on Windows
2019-08-23 20:56:25 -07:00
Kubernetes Prow Robot
f14e88ad6e
Merge pull request #81414 from wojtek-t/lease_e2e_test
Add e2e test for Lease API
2019-08-22 15:09:59 -07:00
wojtekt
4be5ebd4dc Add e2e test for Lease API 2019-08-22 12:19:43 +02:00
Claudiu Belu
8812720148 tests: Skips Windows-unrelated tests on Windows
Skips IPv6 tests on Windows.
Skips sysctl tests on Windows.
Skips network policy tests on Windows.
Skips RunAsUser / FSGroup / file permissions related tests, as those are
not supported on Windows.
Skips the test "should preserve source pod IP for traffic thru service cluster IP"
on Windows, as it creates a Pod with HostNetwork=true, which is unsupported.

What works and what doesn't work on Windows has been documented here:
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md#windows--linux-considerations
2019-08-20 14:19:14 -07:00
Masaki Kimura
04300826fd Rename WaitTimeoutForPodEvent to WaitTimeoutForEvent and move it to common/events.go 2019-08-19 16:11:30 +00:00
Kenichi Omichi
9e17433ccf Remove runDeployment() from e2e test
As https://github.com/kubernetes/kubernetes/pull/81231/files#r312670943
this removes runDeployment() by just moving some code into the test.
2019-08-10 00:10:09 +00:00
Kenichi Omichi
bf221a09b5 Remove core dependency from deployment e2e fw
RunDeployment() of the deployment e2e framework was used in
autoscaling_utils only. In addition, the deployment e2e framework
imported the core of e2e framework only for the function.
So this moves the function into autoscaling_utils then we can remove
dependency of core framework from the deployment e2e framework.
2019-08-09 19:31:14 +00:00
Kubernetes Prow Robot
072528e5f6
Merge pull request #80787 from ii/wip-configmap-contents-patch
Add validation to ConfigMap patch test
2019-08-08 10:04:11 -07:00
Caleb Woodbine
7218182f11 Update configMap data checking 2019-08-07 03:35:36 +00:00
Caleb Woodbine
b10743236e Update function for data inequality verification 2019-08-06 01:53:08 +00:00
Kubernetes Prow Robot
cce048123d
Merge pull request #80610 from aojea/ipv6kubectl
Add ipv6 support to the e2e kubectl tests
2019-08-05 13:36:02 -07:00
Caleb Woodbine
b845fee7f7 Add ConfigMap patch e2e test with validation step
Test originally written by draveness for this PR:
https://github.com/kubernetes/kubernetes/pull/78924

This commit adds a validation step to the test.
2019-08-01 13:00:59 -07:00
Kubernetes Prow Robot
e694959038
Merge pull request #80708 from WanLinghao/util_pods_refacotr
Move pod related functions in file test/e2e/framework/util.go to its sub directory
2019-07-31 20:08:38 -07:00
WanLinghao
e43572f02b Move pod related functions file in test/e2e/framework/util.go to its sub direcotry 2019-07-31 13:53:41 +08:00
Kubernetes Prow Robot
269183a7a8
Merge pull request #80666 from oomichi/cleanup-ResourceEventHandlerFuncs
Remove duplicated check in ObserveEventAfterAction
2019-07-30 10:09:43 -07:00
Kubernetes Prow Robot
e116b6f09d
Merge pull request #80615 from jeefy/e2e-test-fixes
Support passing `Args` for `newrc` function within `test/e2e`
2019-07-30 08:53:17 -07:00
Kubernetes Prow Robot
a23fc83fcd
Merge pull request #79751 from aojea/e2eDownwardAPI
Add e2e test for downward API with host network
2019-07-30 03:35:44 -07:00
Kubernetes Prow Robot
614aab80f5
Merge pull request #78740 from oomichi/extend-check
Make the check strict to use ExpectNoError()
2019-07-30 01:59:04 -07:00
Antonio Ojea
d20698a7a8
Debug values when test fail 2019-07-30 00:42:34 +02:00
Jeffrey Sica
ea2f6c80d7 support args for newrc funcs 2019-07-28 11:45:43 -04:00
Kenichi Omichi
18e3807cd7 Remove duplicated check in ObserveEventAfterAction
In ObserveEventAfterAction(), observedMatchingEvent is set if ok is
true. Now the ok is already checked with framework.ExpectEqual().
So this removes duplicated check for code cleanup.
2019-07-27 01:03:10 +00:00
Antonio Ojea
8988965df1
Add ipv6 support to the e2e kubectl tests 2019-07-26 00:40:46 +02:00
draveness
c38ae01f8e feat: move service_util to separated package 2019-07-19 08:32:39 +08:00
Kubernetes Prow Robot
9ac3fadbad
Merge pull request #80126 from aojea/redis
Use docker official redis images
2019-07-15 21:51:24 -07:00
Antonio Ojea
33e1b1d8a5
Use docker official redis images 2019-07-13 17:01:25 +02:00
Antonio Ojea
9c75f4a40a
Add e2e test for downward API with host network
Co-authored-by: BenTheElder <bentheelder@google.com>
2019-07-08 21:50:16 +02:00
draveness
0ec95afb76 feat: use framework.ExpectEqual instead of should 2019-07-07 21:07:48 +08:00
ClarkLee
867c88471f Use ExpectEqual in e2e/common 2019-07-04 13:50:19 +08:00
Kubernetes Prow Robot
d1d111496a
Merge pull request #79238 from bclau/tests/reduce-to-agnhost-part-3
tests: Replaces images used with agnhost (part 3)
2019-06-28 12:43:19 -07:00
wojtekt
e8ca50c43c Use coordination v1 API 2019-06-27 18:08:40 +02:00
Claudiu Belu
c752ea8134 tests: Replaces images used with agnhost (part 3)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- audit-proxy
- crd-conversion-webhook
- entrypoint-tester
- inclusterclient
- iperf
- porter
- serve-hostname
2019-06-26 13:33:55 -07:00
Kubernetes Prow Robot
dc8b928136
Merge pull request #79162 from SataQiu/fix-test-20190619
Refactor: replace framework.Failf with e2elog.Failf
2019-06-21 12:17:04 -07:00
Kubernetes Prow Robot
0c2830c560
Merge pull request #79084 from k-toyoda-pi/common_sysctlgo_remove_duplicate_comment
remove duplicate comment in e2e/common/sysctl.go
2019-06-21 12:16:39 -07:00
Kubernetes Prow Robot
ee0c2e31e8
Merge pull request #78780 from spiffxp/name-test-e2e-api-imports
rename test/e2e{,_node} api imports to groupversion
2019-06-20 17:14:35 -07:00
Kubernetes Prow Robot
c898ab2043
Merge pull request #78378 from k-toyoda-pi/golint_test_e2e_common_s-v
Fix golint failure in e2e/common/util.go
2019-06-20 12:58:35 -07:00
Aaron Crickenberger
b8d0ce4019 add import-alias for k8s.io/api/core/v1 2019-06-20 11:40:15 -07:00
Aaron Crickenberger
f3fd3cff8e add import-alias for k8s.io/api/coordination/v1beta1 2019-06-20 11:40:12 -07:00
Kubernetes Prow Robot
ef03129821
Merge pull request #78396 from bclau/tests/reduce-to-agnhost-part-2
tests: Replaces images used with agnhost (part 2)
2019-06-19 21:10:48 -07:00
SataQiu
332be4b1e3 refactor: replace framework.Failf with e2elog.Failf 2019-06-19 17:52:35 +08:00
Kenichi Omichi
d5bc1ae8aa Make the check strict to use ExpectNoError()
As https://github.com/kubernetes/kubernetes/pull/78478 we can use
ExpectNoError() instead of Expect(err).ToNot(HaveOccurred()) also.
This makes the test code check strict to cover the above case and
replaces the remaining in test/e2e/common/expansion.go
2019-06-18 16:55:16 +00:00
Jiatong Wang
b1c346c295 Move node related methods to framework/node package
- Add a package "node" under e2e/framework and alias e2enode;
- Rename some functions whose name have redundant string.

Signed-off-by: Jiatong Wang <wangjiatong@vmware.com>
2019-06-17 16:59:07 -07:00
Claudiu Belu
9e81f3b50b tests: Replaces images used with agnhost (part 2)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- net
- netexec
- nettest
- webhook
2019-06-17 06:04:18 -07:00
toyoda
c4a96d3215 fix golint failure in e2e/common/util.go 2019-06-17 10:10:36 +09:00
toyoda
12cc719e62 remove duplicate comment in e2e/common/sysctl.go 2019-06-17 09:20:51 +09:00
Kubernetes Prow Robot
c5087f25c0
Merge pull request #78916 from mkimuram/rem-dot-import
Remove . import from e2e test
2019-06-15 16:34:08 -07:00
Kubernetes Prow Robot
411d6789e1
Merge pull request #78394 from bclau/tests/reduce-to-agnhost-part-1
tests: Replaces images used with agnhost (part 1)
2019-06-14 16:50:22 -07:00
Masaki Kimura
701395c392 Remove dot import from e2e test and replace with framework.ExpectNoError 2019-06-14 20:46:11 +00:00
Kubernetes Prow Robot
e2c5243d77
Merge pull request #77840 from mgdevstack/master-registry-utils
Add references of registry and image from imageutils
2019-06-14 00:28:47 -07:00
Kubernetes Prow Robot
b8ba75bcd9
Merge pull request #77526 from alejandrox1/framework_util_pod_refactor
Refactored pod-related functions from framework/util.go
2019-06-13 23:06:19 -07:00
Kubernetes Prow Robot
69d2e4304a
Merge pull request #75128 from bclau/tests/hostpath-privileged-false
tests: creates HostPath pods as unprivileged
2019-06-13 20:36:21 -07:00
Kubernetes Prow Robot
62eae8d058
Merge pull request #70639 from mgdevstack/promote-security-context
Promote security context NodeConformance tests to Conformance suite
2019-06-13 17:48:20 -07:00
Claudiu Belu
e3774b85b2 tests: Combine Linux / Windows image pulling tests
Because Linux images cannot run on Windows and vice-versa, separate
tests were added for both OSes, only separated by a [LinuxOnly] tag
in their names.

Based on the given --node-os-distro, we can select which image to
use when spawning the pod.
2019-06-13 15:57:59 -07:00
Claudiu Belu
bd8cb8fae0 tests: Replaces images used with agnhost (part 1)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- fakegitserver
- hostexec
- liveness
- logs-generator
- no-snat-test
- no-snat-test-proxy
- port-forward-tester
2019-06-13 15:05:50 -07:00
Mayank Gaikwad
3377737af2 Add references of registry and image from imageutils 2019-05-31 14:27:07 +05:30
Jorge Alarcon Ochoa
4969a05327 Refactored pod-related functions from framework/util.go
This a refactoring of framework/utils.go into framework/pod.

Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
2019-05-30 09:30:26 -04:00
Kubernetes Prow Robot
eb2b5d37ff
Merge pull request #78283 from s-ito-ts/77706_e2e_common
Use framework.ExpectError() for e2e/common
2019-05-29 17:24:58 -07:00
Kubernetes Prow Robot
51336deb4a
Merge pull request #78264 from tallclair/runasnonroot
Add RunAsNonRoot test
2019-05-29 03:10:50 -07:00
s-ito-ts
3492c81e12 Use framework.ExpectError() for e2e/common 2019-05-29 05:46:16 +00:00
toyoda
028cd65db9 fix golint failure in e2e/common/[p-r]* 2019-05-27 08:57:02 +09:00
Kubernetes Prow Robot
16d33c4985
Merge pull request #78042 from oomichi/use-ExpectNoError-common2
Use framework.ExpectNoError() on e2e/common
2019-05-25 13:03:50 -07:00
Tim Allclair
19a588eeda Add a special-cased runtime handler for dockershim 2019-05-24 15:30:34 -07:00
Tim Allclair
c851c480d3 Move to debian-base non-root image 2019-05-24 11:57:43 -07:00
Tim Allclair
6e78c5bdde Add RunAsNonRoot test 2019-05-23 12:23:04 -07:00
Kenichi Omichi
b17384acbe Use framework.ExpectNoError() on e2e/common 2019-05-17 17:30:38 +00:00
Kubernetes Prow Robot
6fff760175
Merge pull request #70658 from spiffxp/tcp-probe
cleanup container probe tests and add tcp probe case
2019-05-16 06:05:43 -07:00
Aaron Crickenberger
0541be1787 Add a tcp probe e2e test 2019-05-15 15:23:35 -07:00
Aaron Crickenberger
944976d11f Extract pod specs and handlers into fixtures 2019-05-15 15:22:58 -07:00
Kenichi Omichi
b9fffd1571 Use framework.ExpectNoError() for e2e/common
The e2e test framework has ExpectNoError() for readable test code.
This replaces Expect(err).NotTo(HaveOccurred()) with it.
2019-05-15 01:58:01 +00:00
draveness
950f6e868c refactor: use framework.ExpectNoError instead 2019-05-12 10:44:03 +08:00
Kubernetes Prow Robot
a245408f38
Merge pull request #76734 from oomichi/conformance-req-01
Check conformance test should not call any Skip
2019-05-10 19:28:11 -07:00
John Schnake
afc66a5487 Move scalability, upgrade, and common packages to framework/log
This is part of the transition to using framework/log instead
of the Logf inside the framework package. This will help with
import size/cycles when importing the framework or subpackages.
2019-05-04 12:45:15 -05:00
Kubernetes Prow Robot
22cf3ca0a5
Merge pull request #75952 from bclau/tests/max-backoff-tests-flakiness
tests: Solve backoff tests flakiness
2019-05-03 22:18:04 -07:00
Kubernetes Prow Robot
f4ce6b6560
Merge pull request #77373 from alejandrox1/framework-deployment-refactor
Refactored framework deployment utils
2019-05-03 19:49:37 -07:00
Kubernetes Prow Robot
7287ae6b2e
Merge pull request #77054 from k-toyoda-pi/golint_test_e2e_common_pods
Fix golint failures of test/e2e/common/pods.go
2019-05-03 18:26:03 -07:00
Jorge Alarcon Ochoa
dc619067d9 Refeactored framework deployment utils
This is the continuation of the refactoring of framework/deployment_utils.go
into framework/deployment.

Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
2019-05-03 18:00:53 -04:00
Kenichi Omichi
52885a8ec3 Check conformance test should not call any Skip
Basically conformance test checks the target k8s cluster works all
features which are specified in each test and that should not depend
on any condition.
This adds checking that conformance test should not call any Skip
methods. And it detects the existing conformance test
"creating/deleting custom resource definition objects works"
calls framework.SkipUnlessServerVersionGTE(). So this removes the
Skip also.
2019-05-03 18:37:31 +00:00
Kubernetes Prow Robot
ed2ab71710
Merge pull request #75237 from aojea/ipv6_downward
Add IPv6 support to the Downward e2e API test
2019-04-25 13:36:42 -07:00
toyoda
bee9676d50 fix golint failure test/e2e/common/pods.go 2019-04-25 16:39:21 +09:00
Antonio Ojea
d528944a03
Add more strict IPv6 regex
Previous IPv6 regex was too loose, this patchs adds a better and
more strict regex for IPv6 addresses and makes the IPv4 and IPv6
regex availables as constants inside the framework pkg
2019-04-24 23:37:24 +02:00
Kubernetes Prow Robot
f3ec8f0d99
Merge pull request #76546 from HotelsDotCom/kep/VolumeSubpathEnvExpansion-Beta
Beta upgrade for feature gate VolumeSubpathEnvExpansion
2019-04-19 01:05:56 -07:00
Kubernetes Prow Robot
5f1a3a98d4
Merge pull request #75245 from aojea/e2e_ipv6_lifecyclehook
Add IPv6 support to the Container Lifecycle tests
2019-04-18 21:59:54 -07:00
Kubernetes Prow Robot
462d909f6d
Merge pull request #75244 from aojea/e2e_ipv6_health
Add ipv6 support to the e2e healthz test
2019-04-17 13:40:04 -07:00
Kevin Taylor
bb5b4ad0b2 Beta upgrade for feature date VolumeSubpathEnvExpansion 2019-04-17 07:41:00 +01:00
Mayank Gaikwad
82822f10e1 Promote container runtime e2e verifying termination message 2019-04-15 16:37:18 +05:30
Kubernetes Prow Robot
1b9206a17c
Merge pull request #76414 from SataQiu/refactor-e2e-volume-20190411
[e2e] test/e2e/framework/volume_util.go -> test/e2e/framework/volume/fixtures.go
2019-04-13 00:42:03 -07:00
SataQiu
252cabf155 [e2e] test/e2e/framework/volume_util.go -> test/e2e/framework/volume/fixtures.go 2019-04-13 16:58:37 +08:00
Kubernetes Prow Robot
df6ca6ab9f
Merge pull request #76156 from chardch/recreate-master-retry
Recreate nodes e2e test
2019-04-12 23:26:02 -07:00
Kubernetes Prow Robot
9aac5ced1f
Merge pull request #74702 from globervinodhn/secret_empty_promote
Promote empty secret key e2e test to conformance test
2019-04-12 21:38:02 -07:00
Jiaying Zhang
8175579a0c add recreate node e2e test
Move recreate_node test to gce provider tests.
2019-04-12 16:00:19 -07:00
Kubernetes Prow Robot
2d5f5a9da5
Merge pull request #75471 from pontiyaraja/sharedVolCNF
promote shared volumes between the container in a pod e2e to conformance
2019-04-12 15:56:04 -07:00
Kubernetes Prow Robot
cf76367f05
Merge pull request #75101 from mgdevstack/promote-runtime-2
Promote container runtime e2e having non default TerminationMessagePath set
2019-04-12 14:30:36 -07:00
Mayank Gaikwad
f7d8771dfe Promote security context NodeConformance tests to Conformance suite 2019-04-12 10:22:24 +05:30
draveness
dee97a4e5c refactor: cleanup e2e replicaset utils 2019-04-12 01:48:10 +08:00
Claudiu Belu
4d22a51414 tests: creates HostPath pods as unprivileged
The containers are mounted the /tmp folder as a HostPath volume
and they are supposed to create a new file in it.

The /tmp folder has 777 file permissions, so there shouldn't be any
problems creating a file, even if the container is unprivileged.
2019-04-11 04:31:05 -07:00
Mayank Gaikwad
295f43b1fa Promote container runtime e2e verifying non-default termination message path 2019-04-04 07:09:17 +05:30
Kubernetes Prow Robot
5d77a5217a
Merge pull request #75616 from andrewsykim/e2e-remove-internal-clientset
remove usages of internal clientset in e2e framework
2019-04-01 15:48:36 -07:00
Kubernetes Prow Robot
c8d6d7c0d0
Merge pull request #74757 from tallclair/runtimehandler-e2e
Add custom runtime handler e2e test
2019-04-01 13:18:47 -07:00
Kubernetes Prow Robot
b179862d96
Merge pull request #75613 from tallclair/owners
Copy node test owners to e2e/common
2019-03-29 23:53:08 -07:00
Kenichi Omichi
78a93f8ced Fix golint failures of e2e/framework/n*.go 2019-03-29 02:17:43 +00:00
Andrew Sy Kim
1470df7a05 remove usages of internal clientset in e2e framework
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-03-28 21:13:40 -04:00
Claudiu Belu
e44961e47d tests: Solve backoff tests flakiness
The container status is not constant, and can change over time in the
following order:

- Running: When kubelet reports the Pod as running. This state is missable if
  the container finishes its command faster than kubelet getting to report this
  state.
- Terminated: After the Container finished its command, it will enter the Terminated
  state, in which will remain for a short period of time, before kubelet will try
  to restart it.
- Waiting: When kubelet has to wait for the backoff period to expire before actually
  restarting the container.

Treating and handling each of these states when calculating the backoff period between
container restarts will make the tests more reliable.
2019-03-28 02:08:40 -07:00
globervinodhn
a5f3e24ab7 promote empty secret key test to conformance: Version updated to v1.15 2019-03-23 16:07:50 +05:30
Tim Allclair
59bfb1cb9a Copy node test owners to e2e/common 2019-03-22 12:02:05 -07:00
Kubernetes Prow Robot
775d298cb0
Merge pull request #75347 from kanwar-saad/secret_negative_test_fix
test/e2e: Fix double error in secret negative testcase
2019-03-21 17:32:30 -07:00
pontiyaraja
584e00aa20 promote shared volumes between the container in a pod e2e to conformance 2019-03-19 14:39:40 +05:30
Kubernetes Prow Robot
3512757882
Merge pull request #75416 from tallclair/local-redirects
Don't follow non-local redirects from HTTP probes
2019-03-16 09:14:57 -07:00
Tim Allclair
691a301368 e2e test for http probe redirects 2019-03-15 11:52:25 -07:00
Jordan Liggitt
8f9ed58d20 Deflake node lease test 2019-03-14 09:38:40 -07:00
kanwar saad bin liaqat
2f852a27cb Fix double error of secret negative testcase
E2E Test "Secret should fail to create secret in volume
due to empty secret key" tries to create a secret
with empty key and check whether it fails or not.
But the secret creation in this test fails with
double error due to invalid secret name. This will
make this test to pass even if the fuctionality
which needs to be tested is broken.

This commit fix the secret name error(name should not
have capital letters) so that the secret creation fails
only due to desired reason.

Signed-off-by: kanwar saad bin liaqat <kanwar.sbl@gmail.com>
2019-03-13 22:23:02 +02:00
Tim Allclair
d15718cb1c Add custom runtime handler e2e test 2019-03-12 14:47:56 -07:00
Kubernetes Prow Robot
c094f873a9
Merge pull request #75206 from liggitt/node-lease
deflake nodelease test
2019-03-11 20:24:36 -07:00
Antonio Ojea
527d2aa2bd
Add IPv6 support to the Container Lifecycle tests
Current e2e tests for the Container Lifecycle Hooks weren't
using brackets for the IPv6 URL addresses per RFC2732, thus those
tests were failing.

This patches add brackets to the target URL if it's an IPv6 address.

Reference: https://github.com/kubernetes/kubernetes/issues/70248
2019-03-10 17:24:09 +01:00
Antonio Ojea
d5d57baa36
Add ipv6 support to the e2e healthz test
The test [k8s.io] Probing container [It] should not be restarted with a
/healthz http liveness probe [NodeConformance] [Conformance]
fails because it's using a nginx image that's spawns a server that's
only listening on IPv4 by default.

Switching to an image like TestWebserver that's listening in IPv4 and IPv6 by default
allows the test to run on IPv4 and IPv6 environments.

Reference: https://github.com/kubernetes/kubernetes/issues/70248
2019-03-10 16:53:06 +01:00
aojeagarcia
ae4ccc91b2
Add IPv6 support to the Downward e2e API test
Current regex used in the Downward e2e API tests is matching only
IPv4 addresses, consequently those tests fails with IPv6 clusters.

This patch modifies the regex to match ipv4 and ipv6 addresses.

Ref: https://github.com/kubernetes/kubernetes/issues/70248
2019-03-09 20:10:31 +01:00
Jordan Liggitt
5b0099785e deflake nodelease test 2019-03-08 16:31:05 -05:00
Hemant Kumar
93c2a1af3f Fix emptydir e2e flake
Wait forver and reduce grace period deletion
2019-03-07 14:35:39 -05:00
Kubernetes Prow Robot
ab7a48d796
Merge pull request #70036 from pbarker/audit-etoe
dynamic audit e2e test
2019-03-06 17:58:58 -08:00
Kubernetes Prow Robot
e1c5e8394e
Merge pull request #71950 from bclau/fix-max-backoff-test-flake
tests: getRestartDelay waits for the next Terminated state
2019-03-06 03:26:04 -08:00
Kubernetes Prow Robot
7304c50ef5
Merge pull request #74655 from bclau/tests/windows-gcrio
tests: Adds gcr.io Windows image test case
2019-03-06 00:44:06 -08:00
Patrick Barker
45d715cdc6 adds dynamic audit e2e test 2019-03-05 14:38:58 -07:00
Claudiu Belu
d5f2ec4b6a tests: Adds TODO for Windows only test
It has been suggested to replace the "e2eteam/busybox:1.29" image
used in the test "should be able to pull image from docker hub [NodeConformance]"
with a nanoserver image manifest list.

Adds a TODO for it.
2019-03-03 21:11:24 -08:00
Claudiu Belu
5edc073122 tests: getRestartDelay waits for the next Terminated state
Kubelet might miss reporting the new Running state when restarting
a pod after its backoff period expired, and thus, the pod will
continue to remain in CrashLoopBackOff state, causing the
"should cap back-off at MaxContainerBackOff" and
"should have their auto-restart back-off timer reset on image update"
tests to fail, since they're waiting the Pods to enter a Running state.

Waiting for the next Terminated state instead of the next Running state
is more reliable.

Note that this adds 5 seconds to the restart delay due to the fact that
the Container runs for 5 seconds (it's command is "sleep 5"), but it is
within the test's expectations.
2019-03-03 08:35:51 -08:00
Kubernetes Prow Robot
6b2882738b
Merge pull request #74805 from HotelsDotCom/feature/remove-kubectl-binary
VolumeSubpathEnvExpansion alpha tests - change kubectl references to API calls
2019-03-02 03:41:15 -08:00
Kubernetes Prow Robot
646145f578
Merge pull request #74125 from tuanvcw/fixing_typo
Fix many typos in both code and comments
2019-03-01 14:08:45 -08:00
Kevin Taylor
8828ccfa6b Change kubectl references to API calls 2019-03-01 11:33:03 +00:00
Kubernetes Prow Robot
d761fe8491
Merge pull request #72774 from globervinodhn/conformance-emptyconfigmapkey-addition
Promote emptyconfigmap key e2e test to conformance test
2019-02-28 20:36:07 -08:00
Kubernetes Prow Robot
5d0e293b85
Merge pull request #70492 from mgdevstack/master-runtime-tabletest
Transition "e2e/common/runtime.go" table based tests to individual tests
2019-02-27 12:31:01 -08:00
Claudiu Belu
81ee747395 tests: Adds private gcr.io Windows image test case
Adds the test "should be able to pull from private registry with secret [NodeConformance]"
which will pull the image "gcr.io/authenticated-image-pulling/windows-nanoserver:v1".
The mentioned image is a manifest list, and it works for both
Windows Server 1803 and Windows Server 2019. The manifest list
will have to be amended when a new Windows Server is released.
2019-02-27 11:23:08 -08:00
Claudiu Belu
ab3ccc1bd7 Removes [WindowsOnly] tag
Removes the [WindowsOnly] tag from the test:

"should be able to pull image from docker hub [WindowsOnly] [NodeConformance]"
2019-02-27 11:23:08 -08:00
Claudiu Belu
0f12efa8d3 tests: Adds gcr.io Windows image test case
Adds the test "should be able to pull image from gcr.io [NodeConformance]",
which will pull the the image "gcr.io/kubernetes-e2e-test-images/windows-nanoserver:v1".
The mentioned image is a manifest list, and it works for both
Windows Server 1803 and Windows Server 2019. The manifest list
will have to be amended when a new Windows Server is released.

The command passed to the Windows Container has been changed to
"ping -t localhost", which will keep the container in the Running state,
which is required and checked by the test.
2019-02-27 11:22:53 -08:00
Kevin Taylor
833720669c Fix pod creation for node e2e tests 2019-02-27 15:38:17 +00:00
Vu Cong Tuan
c747b7f38d Fix many typos in both code and comments
Signed-off-by: Vu Cong Tuan <tuanvc@vn.fujitsu.com>
2019-02-27 14:41:02 +07:00
Mayank Gaikwad
5c96bb6be7 Refactor table based tests into individual tests 2019-02-27 12:45:04 +05:30
pontiyaraja
12943ce1ac removed flaky watch from pods test cases 2019-02-27 11:24:20 +05:30
Daniel (Shijun) Qian
d648ba856b Move pkg/api/v1/node to pkg/util/node (#73656)
* merge pkg/api/v1/node with pkg/util/node

* update test case for utilnode

* remove package pkg/api/v1/node

* move isNodeReady to internal func

* Split GetNodeCondition into e2e and controller pkg

* fix import errors
2019-02-26 11:05:32 -08:00
Kubernetes Prow Robot
aec0bfe611
Merge pull request #73922 from bclau/tests/adds-linuxonly-tag
tests: Adds [LinuxOnly] tag to conformance test
2019-02-21 10:42:56 -08:00
Kubernetes Prow Robot
5bfea15e7b
Merge pull request #71351 from HotelsDotCom/kep/VolumeSubpathEnvExpansion
kep/VolumeSubpathEnvExpansion
2019-02-20 14:05:20 -08:00
Kevin Taylor
a64b854137 Implementation of KEP Feature Gate VolumeSubpathEnvExpansion 2019-02-20 01:37:16 +00:00
Kubernetes Prow Robot
f7eb5769c2
Merge pull request #71468 from bclau/windows-tests
Windows networking tests
2019-02-18 06:24:24 -08:00
Kubernetes Prow Robot
d5b890ea46
Merge pull request #72777 from bclau/tests/hardcoded-docker-image
Adds test which pulls dockerhub Windows image
2019-02-15 16:45:42 -08:00
pontiyaraja
6d7a707320 Test case for shared volumes between the containers in pod 2019-02-12 12:26:43 +05:30
Claudiu Belu
434090349d tests: Adds [LinuxOnly] tag to conformance test
The test "should write entries to /etc/hosts" should have the [LinuxOnly] tag as
it cannot pass on Windows; individual files cannot be mounted in Windows Containers.

This test was missed in the original PR (https://github.com/kubernetes/kubernetes/pull/73204)
2019-02-11 02:44:09 -08:00
Claudiu Belu
609b5c3010 tests: Adds docker hub Windows image test case
Adds the test "should be able to pull image from docker hub [WindowsOnly]",
which will pull a Windows busybox image from dockerhub. Since it is busybox,
the same command will also work for this image.

The busybox image is currently used in other E2E tests, so the image should
already be prepulled on the nodes. Additionally, the image has a manifest list
for Windows Server 1803 and Windows Server 2019, and future versions will be
added to it.
2019-02-08 15:25:56 -08:00
Kubernetes Prow Robot
a7966022d7
Merge pull request #73714 from tallclair/debian-base
Bump debian-* base image versions to latest
2019-02-07 19:44:44 -08:00
Claudiu Belu
00e2582c67 Adds Windows-related Networking tests
Creating pods with HostNetwork is not currently supported on
Windows Kubelet, and thus, ones without HostNetwork are created instead.
2019-02-06 15:58:18 -08:00
Davanum Srinivas
b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>

Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
Tim Allclair
1b9d0c1094 Bump debian-* base image versions to latest 2019-02-04 11:58:51 -08:00
Kubernetes Prow Robot
1a0a841abe
Merge pull request #73204 from bclau/tests/adds-linuxonly-tag
Adds [LinuxOnly] tag to conformance tests that cannot be run on Windows
2019-02-04 09:36:09 -08:00
Claudiu Belu
5daa08878f Adds [LinuxOnly] tag to conformance tests that cannot be run on Windows
Some of the tests cannot pass using Windows nodes due to various reasons:

- seLinuxOptions are not supported on Windows.
- Running as an UID / GID is not supported on Windows.
- file permissions work differently on Windows, and they cannot be set in
  the same manner as on Linux.
- individual files cannot be mounted in Windows Containers.
- Cannot create container using Linux image (e.g.: alpine) on Windows.

Because of this, it has been decided to use the "[LinuxOnly]" tag for the
tests which cannot run on Windows because of the mentioned reasons. This way,
when running tests using Windows nodes, those tests can simply be skipped by
adding the "[LinuxOnly]" tag to the ginkgo.skip argument.
2019-02-01 11:42:42 -08:00
Kubernetes Prow Robot
f66805ef5e
Merge pull request #63600 from bclau/remove-hardcoded-yaml-images
tests: Removed hardcoded images from yaml files
2019-01-30 11:53:37 -08:00
globervinodhn
a2078bd4af Promote empty-key ConfigMap e2e to Conformance 2019-01-29 15:41:27 +05:30
Masaki Kimura
b767dbdeb5 Fix volumes e2e test to check fsType 2019-01-23 05:12:37 +00:00
wojtekt
291d02486f Enable NodeLease tests by default 2019-01-17 20:35:51 +01:00
Kubernetes Prow Robot
37f8ce087b
Merge pull request #70361 from qingsenLi/git181027
fix typo "amd"
2019-01-16 19:44:37 -08:00
Claudiu Belu
fd4f55375b tests: Removed hardcoded images from yaml files
Some tests use .yaml files to deploy pods, which have hardcoded
images. Those images cannot be used for Windows containers.

The image names can be injected by the tests themselves, based on
the configured registries.
2019-01-15 20:22:19 -08:00
Kubernetes Prow Robot
708c1ae161
Merge pull request #72793 from haiyanmeng/goroutine_inside_for_loop
Fix the broken for loop including goroutine
2019-01-15 10:35:21 -08:00
haiyanmeng
408b5dbf59 Fix the broken for loop including goroutine
Currently, all the funcs in the for loop are bound to the same
testCase.

Also remove extra newline from one expected message
2019-01-11 14:46:24 -08:00
zhuangqh
8b07d925a0 Add alphaFeature tag to TTLAfterFinished e2e test
Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
2019-01-11 12:07:33 +08:00
globervinodhn
b3217cc624 Remove SLOW tag from KUBEDESCRIBE and SIGDESCRIBE
Remove SLOW tag and update description for KUBEDESCRIBE(Probing container) and SIGDESCRIBE(EmptyDir Wrapper Volume)

Remove slow references for tests that execute below 5 minutes
2018-12-31 13:13:11 +05:30
Weibin Lin
842bd1e1ec update deployment, daemonset, replicaset, statefulset to apps/v1 2018-12-19 10:46:45 -05:00
Kubernetes Prow Robot
71cf45f35c
Merge pull request #70092 from bclau/remove-test-selinux-options
Removes unnecessary SELinuxOptions from test case
2018-12-06 22:49:59 -08:00
Kubernetes Prow Robot
4855b78c33
Merge pull request #71550 from pontiyaraja/privileged_disable
Removed privileged option for the test case [sig-storage] should give a volume the correct mode test case
2018-12-01 06:34:53 -08:00
k8s-ci-robot
409a5ecae2
Merge pull request #71036 from bclau/test-windows-permissions
tests: Checks for Windows permissions as well
2018-11-29 11:16:49 -08:00
pontiyaraja
6bdbb460fc Removed privileged option for [sig-storage] host path 2018-11-28 12:33:44 +05:30
Claudiu Belu
0df9c0adf6 tests: Checks for Windows permissions as well
Some mounttest related tests are checking the file permissions set on the
container files, but the default file permissions on Windows is 775 instead of
644, causing some tests to fail.

Keep in mind that file permissions work differently on Windows, and setting file
permissions via Kubernetes is not currently supported on Windows.
2018-11-21 23:02:48 -08:00
k8s-ci-robot
e4ee887121
Merge pull request #69303 from appian/host_aliases_on_same_line
Write HostAliases aliases on same line per host IP
2018-11-15 14:59:52 -08:00
pontiyaraja
6b9db24ed0 added non-optional and empty key test cases for secret and configMap 2018-11-13 13:08:02 +05:30
Bill Warshaw
ab507dfc1f Write HostAliases aliases on same line per host IP
* change HostAliases to put all aliases for an IP
  on the same line in /etc/hosts rather than writing
  one line per IP-alias pair
* having multiple entries in /etc/hosts for the same IP
  causes issues with DNS resolution for some software
* https://unix.stackexchange.com/questions/102660/hosts-file-is-it-incorrect-to-have-the-same-ip-address-on-multiple-lines
2018-11-11 20:54:52 -05:00
Davanum Srinivas
954996e231
Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
k8s-ci-robot
16d0992534
Merge pull request #69753 from wangzhen127/diff-node-status
Update kubelet node status report logic with node lease feature
2018-11-07 20:26:45 -08:00
Zhen Wang
98fc4a107a Update kubelet node status report logic with node lease feature
When node lease feature is enabled, kubelet reports node status to api server
only if there is some change or it didn't report over last report interval.
2018-11-07 11:59:42 -08:00
Haowei Cai
598d459bc6 Mark configmap and downwardapi tests with sig-node 2018-11-06 17:58:26 -08:00
k8s-ci-robot
a13599be7e
Merge pull request #70649 from jbartosik/e2e-logging
Add more logging to e2e HPA tests
2018-11-06 06:06:35 -08:00
Kenichi Omichi
01d0dc3697 Remove subPath tests from host_path.go
As discussing on #68905
some tests of test/e2e/common/host_path.go are covered with
test/e2e/storage/testsuites/subpath.go
So we don't need to keep them in test/e2e/common/host_path.go
anymore for the maintenance.
2018-11-05 21:35:17 +00:00
Joachim Bartosik
100e61a7d6 Add more logging to e2e HPA tests
To debug flakes if there will be any more. Log status of HPA when
waching for recommendations stability (place where most flakes seem to
happen).
2018-11-05 11:32:41 +01:00
k8s-ci-robot
33555943dc
Merge pull request #57099 from mfojtik/increase_downwardapi_volume_timeout
increase the podLogTimeout for downward volume test
2018-11-02 21:28:20 -07:00
Joachim Bartosik
cb6a8a2564 Deflake HPA tests
- Scale down based on custom metric was flaking. Increase target value
of the metric.
- Scale down based on CPU was flaking during stabilization. Increase
tolerance of stabilization (caused by resource consumer using more CPU
than requested).
2018-10-30 19:27:42 +01:00
qingsenLi
3e83f0f08a fix typo and instead of amd 2018-10-30 01:27:50 +08:00
Claudiu Belu
d76108c595 Removes unnecessary SELinuxOptions from test case
The test "should run with the expected status" passes with and without
the set SELinuxOptions, but removing it will ensure that the test will
be able to run and pass on Windows nodes as well.
2018-10-19 17:31:49 -07:00
Jeff Grafton
7a8696c331 Update to debian-base 0.4.0
Additionally, update the addon-manager to use kubectl v1.11.3.
2018-10-19 11:13:28 -07:00
k8s-ci-robot
79869afda5
Merge pull request #68910 from msau42/fix-names
Distinguish projected secret, configmap and downward api tests
2018-10-12 20:41:40 -07:00
k8s-ci-robot
a8c76d4d57
Merge pull request #69674 from mooncak/fix_e2e_issue
Fix typos in the test comments
2018-10-12 14:48:46 -07:00
k8s-ci-robot
b3033a7278
Merge pull request #67934 from tanshanshan/typo828
fix spelling mistakes
2018-10-11 18:26:24 -07:00
mooncake
91419e6782 Fix typos in the test comments
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-10-11 19:25:55 +08:00
Michelle Au
17c0e9f7ea Update build and conformance test list 2018-10-09 14:27:58 -07:00
Michelle Au
253e8d5b74 Update test suite names 2018-10-09 14:25:30 -07:00
Michelle Au
cb7cb9aa8e Keep related test cases and delete the rest 2018-10-09 14:25:29 -07:00
Michelle Au
f82ff5b16d Break up projected.go into projected_combined/configmap/secret/downwardapi 2018-10-09 14:25:29 -07:00
k8s-ci-robot
321313b19e
Merge pull request #69004 from mgdevstack/master-pods-websocket-conformance
Promote pod's websocket based NodeConformance tests to Conformance
2018-10-08 22:28:12 -07:00
k8s-ci-robot
bc135bd328
Merge pull request #69198 from mkumatag/fix-tests
Use proper manifest images
2018-10-05 20:25:23 -07:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11 2018-10-05 12:59:38 -07:00
k8s-ci-robot
766d860f86
Merge pull request #69021 from mgdevstack/master-kubelet-conformance
Promote kubelet NodeConformance tests to Conformance
2018-10-04 18:19:25 -07:00
k8s-ci-robot
10368ee68b
Merge pull request #68915 from oomichi/issue/68914
Add fall-back to get node IP on host_path tests
2018-10-03 13:01:54 -07:00
Mayank Gaikwad
78a15ed1c9 Promote pod's websocket based NodeConformance tests to Conformance 2018-09-30 21:57:49 +05:30
k8s-ci-robot
72dd54ec48
Merge pull request #69169 from mgdevstack/master-pods-fmt
Add slow test comment and format import statements in e2e/common/pods.go
2018-09-28 18:57:27 -07:00
Kenichi Omichi
dd9cffb18f Add fall-back to get node IP on host_path tests
As the same as the commit[1], this adds fall-back way to get a
node IP address on host_path e2e tests for environments which
don't support external IPs.

[1]: 4e7c2f638d (diff-5ee86aefbb33223865bc542107ea8560L81)
2018-09-28 23:01:18 +00:00
Manjunath A Kumatagi
55868655ff Use proper manifest images 2018-09-28 04:17:07 +00:00
Mayank Gaikwad
440816af3d Add slow test comment and format import statements 2018-09-28 00:47:11 +05:30
Manjunath A Kumatagi
7b9833ce56 Update authenticated-image-pulling with fat manifest image 2018-09-27 17:43:15 +05:30
k8s-ci-robot
3fe21e5433
Merge pull request #68922 from BenTheElder/version-staging
move pkg/util/version to staging
2018-09-26 22:59:42 -07:00
k8s-ci-robot
c00f45c533
Merge pull request #67612 from mgdevstack/master-commit-runtime-conforamnce
Promote non-table based container-runtime e2e test to Conformance
2018-09-25 01:27:12 -07:00
Mayank Gaikwad
696c9ea0b1 Promote kubelet NodeConformance tests to Conformance 2018-09-25 08:54:20 +05:30
k8s-ci-robot
7a58db1ec3
Merge pull request #67144 from mgdevstack/master-kubelet-to-conforamnce
Port kubelet e2e_node tests to e2e/common
2018-09-24 13:19:33 -07:00
Benjamin Elder
f828c6f662 hack/update-bazel.sh 2018-09-24 12:03:24 -07:00
Benjamin Elder
088cf3c37b find & replace version import 2018-09-24 12:03:24 -07:00
Janet Kuo
36c0dab4fc Enable TTLAfterFinished e2e test 2018-09-21 17:18:48 -07:00
Mayank Gaikwad
8b0a5950ab Promote non-table based container runtime test to conformance 2018-09-20 18:59:59 +05:30
Mayank Gaikwad
8f557da3c8 Port kubelet e2e_node tests to e2e 2018-09-17 11:33:30 +05:30
Kubernetes Submit Queue
c50a347124
Merge pull request #66840 from janetkuo/job-ttl
Automatic merge from submit-queue (batch tested with PRs 66840, 68159). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

TTL for cleaning up Jobs after they finish

**What this PR does / why we need it**: https://github.com/kubernetes/features/issues/592

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #64470 
For https://github.com/kubernetes/features/issues/592

**Special notes for your reviewer**: @kubernetes/sig-apps-pr-reviews 

**Release note**:

```release-note
Add a TTL machenism to clean up Jobs after they finish.
```
2018-09-04 20:49:35 -07:00
Janet Kuo
0a6389e872 Add e2e test for TTL after finished 2018-09-04 14:21:14 -07:00
Kubernetes Submit Queue
d8365a9ca7
Merge pull request #68123 from mgdevstack/master-securitycontext-67032
Automatic merge from submit-queue (batch tested with PRs 67736, 68123, 68138). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Port security context NodeConformance e2e_node tests to e2e

**What this PR does / why we need it**:
Port all [NodeConformance] SecurityContext e2e_node tests to e2e/common.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #67032 

**Special notes for your reviewer**:
- This PR is a continuing effort to close #67032.
- Removed ContainerRuntime constraint [as discussed](https://github.com/kubernetes/kubernetes/pull/67032#discussion_r214201870).
- Porting all [NodeConformance] tests to e2e/common which do not have node dependencies.
- Does it make sense to port [privileged test](https://github.com/kubernetes/kubernetes/blob/master/test/e2e_node/security_context_test.go#L558) to e2e/common and remove [NodeFeature:HostAccess] label from test name? 

**Release note**:

```release-note
NONE
```
/area conformance
@kubernetes/sig-node-pr-reviews
2018-09-04 12:51:35 -07:00
Kubernetes Submit Queue
8ba06eff79
Merge pull request #67571 from mgdevstack/master-commit-runtime
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Transitioning container-runtime e2e_node test to e2e

**What this PR does / why we need it**:
This is a continuation of an existing PR #67258 to transition [few runtime NodeConformance tests](https://github.com/kubernetes/kubernetes/issues/67103#issuecomment-411483640) from e2e_node to e2e (e2e/common).

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #67103

**Special notes for your reviewer**:
In order to make simple clear naming of test, they are updated to 
> "_Container Runtime blackbox test when starting a container that exits should run with the expected status [NodeConformance]_" 
>"~~_Container Runtime Conformance Test container runtime conformance blackbox test when starting a container that exits it should run with the expected status [NodeConformance]_~~"

which requires updation of test names in test/test_owners.csv and test_owners.json file. Do we have any automated script to update these test_owners file or do we need to update them manually in both files?

Please feel free to comment incase we don't want to change test name.

Newly updated codebase includes following changes accomplishing all previously [mentioned](https://github.com/kubernetes/kubernetes/pull/67258#pullrequestreview-147294021) requested changes(reviews)
- [Test name](https://github.com/kubernetes/kubernetes/pull/67258/files#diff-0dc16dc0a015699e53bda03495adc49eR36) change.
- Container's [image name](https://github.com/kubernetes/kubernetes/pull/67258/files#diff-0dc16dc0a015699e53bda03495adc49eR144)
- [By()](https://github.com/kubernetes/kubernetes/pull/67258/files#diff-0dc16dc0a015699e53bda03495adc49eR109) statement
- [Removed test](https://github.com/kubernetes/kubernetes/pull/67258/files#diff-178a0a673bda44ea7a86bd94070df78cR137) from conformance golden list

This would close existing PR #67258
 
**Release note**:

```release-note
NONE
```
/area conformance
@kubernetes/sig-node-pr-reviews
2018-08-31 20:37:27 -07:00
Mayank Gaikwad
c2683eafd2 Port security context NodeConformance e2e_node tests to e2e 2018-08-31 14:11:01 +05:30
Kubernetes Submit Queue
d46d67159f
Merge pull request #65222 from adelina-t/make-e2e-test-platform-agnostic
Automatic merge from submit-queue (batch tested with PRs 67739, 65222). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Tests: Make e2e test platform-agnostic

The test:
[k8s.io] Pods should support remote command execution over websockets [NodeConformance]

  uses cat on /etc/resolv.conf and checks if the output from the container is  "namespace",
which is incompatible with windows containers as there is no such file.

  Since the test just check if remote command execution works, the command is
irrelevant as long as the output checks out. Switched to using echo "remote execution test",
and checking that output as it works for both windows and linux.
2018-08-28 12:31:04 -07:00
tanshanshan
a83c4dbd19 fix spelling mistakes 2018-08-28 17:12:36 +08:00
Michael Taufen
1b7d06e025 Kubelet creates and manages node leases
This extends the Kubelet to create and periodically update leases in a
new kube-node-lease namespace. Based on [KEP-0009](https://github.com/kubernetes/community/blob/master/keps/sig-node/0009-node-heartbeat.md),
these leases can be used as a node health signal, and will allow us to
reduce the load caused by over-frequent node status reporting.

- add NodeLease feature gate
- add kube-node-lease system namespace for node leases
- add Kubelet option for lease duration
- add Kubelet-internal lease controller to create and update lease
- add e2e test for NodeLease feature
- modify node authorizer and node restriction admission controller
to allow Kubelets access to corresponding leases
2018-08-26 16:03:36 -07:00
Mayank Gaikwad
74bc8a3211 transitioning container-runtime from e2e_node to e2e/common 2018-08-24 07:54:19 +05:30
Minhan Xia
3951168c6f add NodeConformance test for PodReadinessGate 2018-08-21 11:34:53 -07:00
Kubernetes Submit Queue
99fab84c7a
Merge pull request #67100 from mkurylec/promotion-lifecycle-hook-to-conformance
Automatic merge from submit-queue (batch tested with PRs 67100, 67426). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

porting e2e_node lifecycle testcases into e2e folder under common

a) Shifted (and renamed) file existing in e2e_node to e2e/common.
b) Added these tests to the conformance suite:
- "should execute poststart exec hook properly"
-  "should execute prestop exec hook properly"
- "should execute poststart http hook properly"
- "should execute prestop http hook properly"

[reference issue](https://github.com/kubernetes/kubernetes/issues/67086) explaining the effort.
2018-08-16 11:57:28 -07:00
Kubernetes Submit Queue
af7755d283
Merge pull request #67364 from thdrnsdk/busybox
Automatic merge from submit-queue (batch tested with PRs 67347, 67307, 67358, 67364, 67385). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

delete the busyboxImage and mountTest var and change use imageutils

**What this PR does / why we need it**:
delete the ```busyboxImage```,```mountTest``` variable and change everything to use ```imageutils.GetE2EImage(imageutils.BusyBox)```, ```imageutils.GetE2EImage(imageutils.MountTest)```


**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #67237

**Special notes for your reviewer**:

/cc @mikedanese
/assign @mikedanese 

**Release note**:

```release-note
 NONE
```
2018-08-15 04:23:21 -07:00
Kubernetes Submit Queue
b6f0aed056
Merge pull request #66906 from tnozicka/rename-until
Automatic merge from submit-queue (batch tested with PRs 67071, 66906, 66722, 67276, 67039). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

#50102 Task 1: Move apimachinery/pkg/watch.Until into client-go/tools/watch.UntilWithoutRetry

**What this PR does / why we need it**:
This is a split off from https://github.com/kubernetes/kubernetes/pull/50102 to go in smaller pieces.

Moves `apimachinery/pkg/watch.Until` into `client-go/tools/watch.UntilWithoutRetry` and adds context so it is cancelable.

**Release note**:
```release-note
NONE
```

**Dev release note**:
```dev-release-note
`apimachinery/pkg/watch.Until` has been moved to `client-go/tools/watch.UntilWithoutRetry`.
While switching please consider using the new `client-go/tools/watch.UntilWithSync` or `client-go/tools/watch.Until`.
```

/cc @smarterclayton @kubernetes/sig-api-machinery-pr-reviews 
/milestone v1.12
/priority important-soon
/kind bug
(bug after the main PR which is this split from)
2018-08-14 22:43:19 -07:00
Kubernetes Submit Queue
f9d63000a3
Merge pull request #67071 from mgdevstack/master-secretvolume-nodeconformance
Automatic merge from submit-queue (batch tested with PRs 67071, 66906, 66722, 67276, 67039). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Promoting "[sig-storage] Secrets should be able to mount in a volume regardless of a different secret existing with same name in different namespace" to Conformance

**What this PR does / why we need it**:
An consolidated effort to resolve the issue https://github.com/kubernetes/kubernetes/issues/66875
> _[sig-storage] Secrets   should be able to mount in a volume regardless of a different secret existing with same name in different namespace_

Promoting mentioned e2e test for Conformance as it -
- Validates that secret with same name can be created in different namespaces but secrets which reside in same namespace as that of pod can be only be accessed from volume mounted in the container.
- Improves api coverage including prioritized Pod API lists. https://github.com/cncf/k8s-conformance/issues/220#issuecomment-393344061

> GET /api/v1/namespaces/{namespace}/pods/{name}/log
GET /api/v1/namespaces/{namespace}/pods
GET /api/v1/namespaces/{namespace}/pods/{name}
POST /api/v1/namespaces/{namespace}/pods
PUT /api/v1/namespaces/{namespace}/pods/{name}/status
DELETE /api/v1/namespaces/{namespace}/pods
DELETE /api/v1/namespaces/{namespace}/pods/{name}

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:
No Flakes Found.
```
• [SLOW TEST:16.326 seconds]
[sig-storage] Secrets
/home/vagrant/go-workspace/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/common/secrets_volume.go:33
  should be able to mount in a volume regardless of a different secret existing with same name in different namespace [NodeConformance]
  /home/vagrant/go-workspace/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/common/secrets_volume.go:86
------------------------------
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Aug  7 07:12:44.133: INFO: Running AfterSuite actions on all node
Aug  7 07:12:44.134: INFO: Running AfterSuite actions on node 1

Ran 1 of 1020 Specs in 16.441 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 1019 Skipped PASS

All tests passed...
Will keep running them until they fail.
This was attempt #40
No, seriously... you can probably stop now.
```

**Release note**:

```release-note
NONE
```
/area conformance
@kubernetes/sig-node-pr-reviews
2018-08-14 22:43:15 -07:00
Kubernetes Submit Queue
6cc7b1cd3a
Merge pull request #66969 from mgdevstack/master-configmap-bindata-nodeconformance
Automatic merge from submit-queue (batch tested with PRs 61212, 66369, 66446, 66895, 66969). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Promoting configmap binarydata support [NodeConformance] test to conformance

**What this PR does / why we need it**:

**e2e:** _[sig-storage] ConfigMap binary data should be reflected in volume [NodeConformance]_
Promotes mentioned e2e to conformance as it -
1. Validates ConfigMap's binarydata support effectively
2. Improves API Coverage for prioritized api lists. (https://github.com/cncf/k8s-conformance/issues/220#issuecomment-393344061)

> GET /api/v1/namespaces/{namespace}/pods
GET /api/v1/namespaces/{namespace}/pods/{name}
GET /api/v1/namespaces/{namespace}/pods/{name}/log
POST /api/v1/namespaces/{namespace}/pods
PUT /api/v1/namespaces/{namespace}/pods/{name}/status
DELETE /api/v1/namespaces/{namespace}/pods
DELETE /api/v1/namespaces/{namespace}/pods/{name}

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:
No Flakes found.

**Release note**:

```release-note
NONE
```
/area conformance
@kubernetes/sig-node-pr-reviews
2018-08-14 21:18:19 -07:00
thdrnsdk
2cd42c3600 delete the busyboxImage and mountTest var and change use imageutils 2018-08-14 22:37:40 +09:00
Tomas Nozicka
4d7747a5a3 Update Bazel 2018-08-10 09:55:41 +02:00
Tomas Nozicka
3d4a02abb5 Rename Until to UntilWithoutRetry and move to using context so it's
cancelable
2018-08-10 09:55:41 +02:00
Yang Guo
7a0c1ab322 Allow running various storage e2e tests on custom images 2018-08-09 17:02:02 -07:00
Maria Alejandra Kurylec
95a6dc4f33 a) fixing rebase 2018-08-08 11:06:07 -03:00