Commit Graph

21802 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
77c37da7fc
Merge pull request #109764 from saikat-royc/fix-delete-timeout
honor the framework delete timeout for pv
2022-05-05 01:43:29 -07:00
Kubernetes Prow Robot
f40f078590
Merge pull request #109759 from wojtek-t/cleanup_integration_tests
Minor cleanup to use t.Run() in test/integration
2022-05-05 01:43:22 -07:00
Kubernetes Prow Robot
e514c5d79c
Merge pull request #109755 from p0lyn0mial/harden-test-service-account
hardens integration serviceaccount tests
2022-05-05 01:43:14 -07:00
Tim Allclair
07c34eb400
[E2E] Refactor pod polling functions (WaitForX) (#109704)
* Clean up WaitFor Pod functions

* Handle retryable errors when polling

* Log more context on timeout

* #squash Address PR feedback
2022-05-05 01:42:32 -07:00
Kubernetes Prow Robot
6445efb341
Merge pull request #109344 from stbenjam/host-port-fixes
Replace use of Sprintf with net.JoinHostPort
2022-05-04 15:28:19 -07:00
Kubernetes Prow Robot
6b988c516e
Merge pull request #109268 from liggitt/pruning-metadata
ServerSideFieldValidation: Fix bug treating metadata fields as unknown fields
2022-05-04 14:14:19 -07:00
Claudiu Belu
0570f611a2 tests: Enables a few Conformance tests for Windows
Some of these tests could not be run previously, especially on Windows
Docker containers. But now, by using Windows Containerd, we can finally
run them:

- HostNetwork=true tests: This can now be enabled on Windows Privileged Containers.
- /etc/hosts related tests: These were not supported because it required single
  file mappings, which is possible in Containerd.
- termination message as non-root user: Requires RunAsUsername, and single file
  mappings.
2022-05-04 13:07:24 -07:00
Kubernetes Prow Robot
4dacd5113d
Merge pull request #109231 from pbeschetnov/rc-logs
Only log requests for configured consumptions in ResourceConsumer
2022-05-04 13:02:19 -07:00
Jordan Liggitt
fba69f7eb9 Change test/cmd to test deprecations using a CRD 2022-05-04 16:00:57 -04:00
Jordan Liggitt
410ac59c0d Remove PodSecurityPolicy admission plugin 2022-05-04 16:00:56 -04:00
Claudiu Belu
8d98e53b78 tests: Include the Windows node name in the exception
There are a few tests that fail because the hostnames apparently do not
match. Logging the name would help finding the problem.
2022-05-04 12:50:57 -07:00
xin.li
ba654e0dad modify link
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-05-05 00:19:02 +08:00
Francesco Romani
19ae360af9 e2e: node: inline getSampleDevicePluginPod
Starting golangci-lint >= 1.45, the tool is complaining
about the function being unused:
```bash
test/e2e_node/device_plugin_test.go:82:6: func `getSampleDevicePluginPod` is unused (unused)
func getSampleDevicePluginPod() *v1.Pod {
     ^

Please review the above warnings. You can test via "./hack/verify-golangci-lint.sh"
If the above warnings do not make sense, you can exempt this warning with a comment
 (if your reviewer is okay with it).
In general please prefer to fix the error, we have already disabled specific lints
 that the project chooses to ignore.
See: https://golangci-lint.run/usage/false-positives/}
```

thing is the code is not changed lately, and manual inspection trivially
confirms it is used.
Older versions of golangci-lint (tested with
```
golangci-lint has version 1.41.1 built from a2074809 on 2021-06-19T16:01:50Z
```)
indeed do NOT complain about the function, so this seems a golangci-lint
bug.

To move forward, we can disable the warning, but this leaves a sour
taste.
Instead, since the function is pretty trivias, was used just once and the caller
was undoing some of the work done by the function, we just inline it,
which solves the linter warning and makes the code a bit better.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-04 17:05:00 +02:00
Wojciech Tyczyński
61d681387f Close events recording sink in integration tests 2022-05-04 13:59:47 +02:00
Kubernetes Prow Robot
094a33ad80
Merge pull request #109342 from bertinatto/custom-timeout-storage-e2e-cleanup
test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine
2022-05-04 03:45:52 -07:00
Stephen Benjamin
b351745c1c Replace use of Sprintf with net.JoinHostPort
On IPv6 clusters, one of the most frequent problems I encounter is
assumptions that one can build a URL with a host and port simply by
using Sprintf, like this:

```go
fmt.Sprintf("http://%s:%d/foo", host, port)
```

When `host` is an IPv6 address, this produces an invalid URL as it must
be bracketed, like this:

```
http://[2001:4860:4860::8888]:9443
```

This change fixes the occurences of joining a host and port with the
purpose built `net.JoinHostPort` function.

I encounter this problem often enough that I started to [write a linter
for it](https://github.com/stbenjam/go-sprintf-host-port).  I don't
think the linter is quite ready for wide use yet, but I did run it
against the Kube codebase and found these.  While the host portion in
some of these changes may always be an FQDN or IPv4 IP today, it's an
easy thing that can break later on.
2022-05-04 06:37:50 -04:00
Kubernetes Prow Robot
3bef1692ef
Merge pull request #109696 from Huang-Wei/rm-sched-perf-legacy
Cleanup legacy scheduler perf tests
2022-05-04 02:35:43 -07:00
Kubernetes Prow Robot
c1ad54dfe3
Merge pull request #109649 from pohly/e2e-feature-gates
e2e: move feature gate support from test/e2e to test/e2e_node
2022-05-04 02:35:18 -07:00
Kubernetes Prow Robot
3739175e1f
Merge pull request #109580 from dobsonj/offline-expansion-test-flag
e2e: add storage capability for offline volume expansion
2022-05-04 02:34:29 -07:00
Kubernetes Prow Robot
2a0d2331a8
Merge pull request #109574 from endocrimes/dani/e2e_node-approver
sig-node: endocrimes as e2e_node approver
2022-05-04 02:34:11 -07:00
Kubernetes Prow Robot
1347e560ec
Merge pull request #109572 from endocrimes/dani/remote-docker
e2e_node: remote runner: Require containerd/crio
2022-05-04 02:34:03 -07:00
Kubernetes Prow Robot
a637604399
Merge pull request #109571 from endocrimes/dani/cleanup-e2e-node
e2e_node: Cleanup old unused jenkins scripts/config
2022-05-04 02:33:56 -07:00
Kubernetes Prow Robot
fa69786fa6
Merge pull request #109551 from SergeyKanzhelev/fixTensorflow
fix the image for node performance tests - model expected tensorflow…
2022-05-04 01:29:30 -07:00
Kubernetes Prow Robot
629706e0fe
Merge pull request #109546 from sanposhiho/replace-metrics
Replace scheduler_e2e_scheduling_duration_seconds with scheduler_scheduling_attempt_duration_seconds in scheduler_perf
2022-05-04 01:29:22 -07:00
Kubernetes Prow Robot
a3c0729c4d
Merge pull request #109509 from leiyiz/imagevsc
fixed incorrect tag on volume cloning test case
2022-05-04 01:28:40 -07:00
Kubernetes Prow Robot
63a618a815
Merge pull request #109486 from alculquicondor/job-backofflimit
Fix job tracking leaving pods with finalizers
2022-05-04 01:28:14 -07:00
Kubernetes Prow Robot
e8ef77514b
Merge pull request #109443 from kevindelgado/dynamic-apply
Add Apply and ApplyStatus methods to dynamic ResourceInterface
2022-05-04 01:27:53 -07:00
Kubernetes Prow Robot
35de9f5027
Merge pull request #109410 from dims/set-default-flake-attempt-to-one
Set default flake attempt to 1 (not 2)
2022-05-04 01:27:30 -07:00
sanposhiho
1c2c20e6bd Change test cases for Preemption to create fewer Pods 2022-05-04 07:47:46 +00:00
Kubernetes Prow Robot
edac6fce2a
Merge pull request #109338 from kerthcet/cleanup/forget-to-close-when-error
test/integration/framework: call closeFn() in startAPIServerOrDie() on error
2022-05-03 19:31:22 -07:00
Kubernetes Prow Robot
e5115587b3
Merge pull request #109322 from hoskeri/conformance-test-healthz
conformance-test: use kubelet healthz port.
2022-05-03 19:31:06 -07:00
Kubernetes Prow Robot
cc2807c521
Merge pull request #109303 from wojtek-t/clean_storage_shutdown
Cleanup rest storage resources on shutdown
2022-05-03 19:30:57 -07:00
Kubernetes Prow Robot
108222ef72
Merge pull request #109279 from pohly/fstype-csi-ephemeral
storage e2e: set fstype for CSI ephemeral inline volumes
2022-05-03 19:30:39 -07:00
Kubernetes Prow Robot
b1cdb660b4
Merge pull request #109270 from liggitt/cleanup-test-cmd-exit
test-cmd: Reorder process shutdown and exit immediately in cleanup
2022-05-03 19:30:23 -07:00
Kubernetes Prow Robot
05e3919b45
Merge pull request #109016 from klueska/refactor-devicemanager
Refactor all device-plugin logic into separate 'plugin' package under the devicemanager
2022-05-03 18:24:12 -07:00
Kubernetes Prow Robot
a19f8776ce
Merge pull request #108789 from kidlj/fix_pkg_name_mismatches
e2e/cleanup: fix package name and dir name mismatches
2022-05-03 18:23:55 -07:00
Kubernetes Prow Robot
9ebaeaa929
Merge pull request #108503 from ehashman/stable-metrics-label
Update OWNERS file for stable metrics
2022-05-03 18:23:39 -07:00
Kubernetes Prow Robot
7d3fd15200
Merge pull request #108409 from 249043822/br-e2e-ciro
Add pod status info log for e2e creating pods failure
2022-05-03 18:23:19 -07:00
Kubernetes Prow Robot
743238e951
Merge pull request #108048 from aojea/custom_etcd_integration
integration: custom etcd gracefully termination
2022-05-03 17:18:48 -07:00
Kubernetes Prow Robot
6ffd13f460
Merge pull request #107819 from matthyx/107505
Replace dbus-send for fake PrepareForShutdown message
2022-05-03 17:18:39 -07:00
Kubernetes Prow Robot
70ca1dbb81
Merge pull request #107444 from sayaoailun/master
fix comment of e2e test case garbage_collector
2022-05-03 17:18:23 -07:00
Kubernetes Prow Robot
f0cd3725d3
Merge pull request #101835 from sanposhiho/scheduler_perf/feature/op-sleep
scheduler_perf: create sleep operation
2022-05-03 17:17:11 -07:00
Kubernetes Prow Robot
ea7c57b2ee
Merge pull request #99685 from yangjunmyfm192085/run-test24
Fix misspelling of success.
2022-05-03 17:16:47 -07:00
Saikat Roychowdhury
c208a7b753 honor the framework delete timeout for pv 2022-05-03 17:20:10 +00:00
Francesco Romani
017998e889 e2e: node: explicit skip for device plugin tests
The device plugin e2e tests where failing lately and to unblock the
release a skip was added in the prow job configuration:
71cf119c84/config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml (L401)

The problem here is not only the broken test which need to be
fixed, but also the fact that this is the only skip (for a specific
test) we do this way, which is surprising (xref:
https://github.com/kubernetes/kubernetes/issues/106635#issuecomment-1105627265)

As next step towards improvement, we add an explicit skip in the tests
proper. This makes at least more obvious these tests need more work,
and allow us to remove the edge case in the prow configuration.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-03 18:44:11 +02:00
Wojciech Tyczyński
04b77f02ee Minor cleanup to use t.Run() in test/integration 2022-05-02 21:13:32 +02:00
Lukasz Szaszkiewicz
8dea7ea27e hardens integration serviceaccount tests
the serviceAccountController controller used by the tests must wait for the caches to sync
since the tests don't check /readyz there is no way
the tests can tell it is safe to call the server and requests won't be rejected
2022-05-02 17:33:50 +02:00
Kevin Klues
f6eaa25b71 Move DevicePluginStub implementation into new plugin package
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-04-29 10:52:37 +00:00
Stanislav Laznicka
914a2a325a
auth e2e: node_authn test: don't expect a SA secret
The test was expecting an SA token in a secret but pods are getting
their SA tokens via projected volumes by default. Also, the SA token
controller function is getting reduced so the original check is likely
to fail.
2022-04-29 11:16:16 +02:00
Sergey Kanzhelev
4eb2c570f7 check for the test duraiton to make NodeProblemDetector test reliable in long running environments 2022-04-28 22:05:55 +00:00
Wei Huang
846ebf7814
Cleanup legacy scheduler perf tests 2022-04-27 09:57:17 -07:00
sanposhiho
b7b94b6b39 scheduler_perf: create sleep operation 2022-04-25 23:02:09 +00:00
Patrick Ohly
2664740043 e2e: move feature gate support from test/e2e to test/e2e_node
The test/e2e suite has never supported feature gates:
- it cannot discover at runtime how the cluster is configured
- its --feature-gates parameter had no effect

Despite that, tests were written that used
e2eskipper.SkipUnlessFeatureGateEnabled even though that function then only
checked the default feature gate state.  To catch such mistakes, e2e tests
suites now must explicitly enable feature gate checking via
e2eskipper.InitFeatureGates. They also must register their own command line
flag. When that is not done, then using SkipUnlessFeatureGateEnabled or
SkipIfFeatureGateEnabled leads to a test failure.

test/e2e_node does both and therefore continues to work as before.
2022-04-25 15:41:41 +02:00
Patrick Ohly
12990dec40 e2e: remove useless SkipUnlessFeatureGateEnabled
These SkipUnlessFeatureGateEnabled are useless because:
- the tests run in test/e2e where feature gates always
  have their default state
- CSIMigration, SizeMemoryBackedVolumes and ExecProbeTimeout are
  all enabled by default (beta resp. GA)
2022-04-25 15:41:25 +02:00
Abhijit Hoskeri
49dc59873b e2e_node/{service,util}: use kubelet healthz port.
The readonly port could be disabled.

Since we are only using the /healthz endpoint,
we can use the healthz port for this.

Change-Id: Ie0e05a5ab4ec6f51e4d3c63226aa23c1b3a69956
2022-04-22 16:14:31 -07:00
Jonathan Dobson
f369b1234a e2e: add storage capability for offline volume expansion 2022-04-21 14:49:18 -06:00
Philip Ottesen
ff8801d12b tests: adding integration test for rollout status 2022-04-21 11:21:13 -04:00
Aldo Culquicondor
12568860cb Test Foreground deletion in job integration
Change-Id: Ia6e86da5e66422fdb653c1ee60864a1c79233ea6
2022-04-20 16:39:10 -04:00
Aldo Culquicondor
f2c8030845 Integration test for backoff limit and finalizers
Change-Id: Ic231ce9a5504d3aae4191901d7eb5fe69bf017ac
2022-04-20 16:39:09 -04:00
Danielle Lancashire
d6c184084c sig-node: endocrimes as e2e_node approver 2022-04-20 17:12:09 +00:00
Danielle Lancashire
0e0e3113e2 e2e_node: remote runner: Require containerd/crio 2022-04-20 16:49:29 +00:00
Danielle Lancashire
7151ff8d5c e2e_node: remove jenkins docker_validation 2022-04-20 16:16:57 +00:00
Danielle Lancashire
3e0041b5b9 e2e_node: remove copy-e2e-image.sh
This script is unused, and the project that was formerly used for e2e
node images is in the process of being removed.
2022-04-20 16:15:25 +00:00
Danielle Lancashire
d90ba453ce e2e_node: remove unused jenkins runner script 2022-04-20 16:15:15 +00:00
Danielle Lancashire
8333bcc6ab e2e_node: remove unused jenkins/coreos-init.json 2022-04-20 16:11:36 +00:00
Sergey Kanzhelev
462e1ae7f9 fix the image for node performance tests - model expected tensorflow version <1.9
Change-Id: I116cc38eac20f7cdafb975c88ee9a0e7ec667861
2022-04-20 00:14:21 +00:00
sanposhiho
6e0da69632 Replace scheduler_e2e_scheduling_duration_seconds with scheduler_scheduling_attempt_duration_seconds in scheduler_perf 2022-04-20 00:48:12 +09:00
Wojciech Tyczyński
73da6d15f9 Fix TestPriorityLevelIsolation concurrency issue 2022-04-19 15:59:14 +02:00
Wojciech Tyczyński
e95f8f2e42 Clean apiserver shutdown in integration tests 2022-04-19 15:59:13 +02:00
Wojciech Tyczyński
0527a0dd45 Cleanup rest storage resources on shutdown 2022-04-19 15:59:13 +02:00
Davanum Srinivas
a48aac46f8
Disable Intree GCE PD tests by default
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-04-19 09:22:51 -04:00
Stephen Heywood
18d33db623 Promote e2e job lifecycle test to Conformance 2022-04-19 09:35:27 +12:00
Antonio Ojea
1756fe60d4 integration: custom etcd gracefully termination
when running integration tests without an external etcd, the framework
spawns an etcd instance executing it in its own process and killing
it once the test stops.

Instead of killing it directly, allow etcd to exit gracefully or kill
it after 5 seconds.
2022-04-18 19:09:38 +02:00
Léiyì Zhang
4a314b9d56 fixed incorrect tag on volume cloning test case 2022-04-15 21:20:12 +00:00
Kubernetes Prow Robot
a750d8054a
Merge pull request #109487 from alculquicondor/disable-job-tracking
Disable JobTrackingWithFinalizers due to unresolved bug
2022-04-15 06:43:09 -07:00
Zhecheng Li
b4a3750912 [e2e][azure] Make internalStaticIP flexible
Now, internalStaticIP is hard-coded to "10.240.11.11". Such IP works
for aks-engine cluster but not for CAPZ ones (node-subnet 10.1.0.0/16)

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
2022-04-15 10:08:36 +08:00
Aldo Culquicondor
3b18613be8 Disable JobTrackingWithFinalizers due to unresolved bug
Change-Id: Ieeeab689ae51dfe0dc06bdca88519d0ecf66d636
2022-04-14 15:08:14 -04:00
Kubernetes Prow Robot
8dfdbd406b
Merge pull request #109473 from ii/fix-job-lifecycle-test
Fix crash in E2E Job lifecycle test when the job doesn't have annotations
2022-04-14 11:17:35 -07:00
Stephen Augustus
3f85937b11
etcd: Update to v3.5.3
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 19:04:00 -04:00
Stephen Augustus
cddd83c997
Update Debian base images
- debian-base:bullseye-v1.2.0
- debian-iptables:bullseye-v1.3.0
- setcap:bullseye-v1.2.0

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 16:23:54 -04:00
cpanato
2e9d10e8c6
Update Go to 1.18.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-04-13 16:44:21 +02:00
Kubernetes Prow Robot
4cdeab4696
Merge pull request #109436 from JamesLaverack/revert-108290
Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
2022-04-13 07:02:46 -07:00
James Laverack
7d57d5c70d Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
This reverts commit b9792a9dae.
2022-04-13 13:58:19 +01:00
Stephen Heywood
931ad8944d Fix e2e test, assignment to entry in nil map 2022-04-13 15:24:47 +12:00
Abdullah Gharaibeh
6d499ee9ea Correct event registration for multiple scheduler plugins. 2022-04-12 18:32:24 -04:00
Kevin Delgado
581ac7f446 Add Apply and ApplyStatus methods to dynamic ResourceInterface 2022-04-12 21:55:40 +00:00
Abhijit Hoskeri
ea6e653db1 conformance-test: use kubelet healthz port.
The readonly port could be disabled.

Since we are only using the /healthz endpoint,
we can use the healthz port.

Change-Id: If004f2888ca5847b9e2d8c02d5615bed52d94b24
2022-04-11 16:57:29 -07:00
Davanum Srinivas
984037d4f7
Set default flake attempt to 1 (not 2)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-04-10 20:24:17 -04:00
Elana Hashman
eb540aaa4a
Update OWNERS file for stable metrics 2022-04-07 13:22:39 -07:00
Aldo Culquicondor
77d9243623 Retry Job update on conflict
Once JobReadyPods is enabled, the Job status might be updated at a later stage after the pods are running.

Change-Id: I4c13c9e55ab7e11b1f9428d6cf0a560a41be1c6a
2022-04-07 09:38:20 -04:00
Fabio Bertinatto
5ccef5c25e test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine 2022-04-06 14:25:40 -03:00
Jordan Liggitt
e570744ca9 Revert "add test to dry-run for unwanted generated values"
This reverts commit 48994c1518.
2022-04-06 12:34:49 -04:00
Jordan Liggitt
adb7621919 Revert "remove unwanted values returned from dry-run"
This reverts commit 60c1d58d02.
2022-04-06 12:34:42 -04:00
kerthcet
fbf07e989c fix: forget to call close() in error
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-04-06 22:21:23 +08:00
James Sturtevant
3d09201dbd Disable node->pod tests for Windows 2022-04-05 16:17:13 -07:00
Kubernetes Prow Robot
8cd689e40d
Merge pull request #109283 from s-urbaniak/ratchet-e2e
test/e2e/framework: use restricted policy by default, default existing tests to privileged
2022-04-05 14:37:25 -07:00
Kubernetes Prow Robot
25fa92cd7d
Merge pull request #109314 from SergeyKanzhelev/properRetryInSSH
fix the retry logic in ssh in test framework
2022-04-05 13:34:01 -07:00
Kubernetes Prow Robot
66369f47ec
Merge pull request #109294 from Riaankl/NetworkPolicyStatus_endpoints
Add NetworkPolicyStatus to ineligible_endpoints.yaml
2022-04-05 13:33:49 -07:00
Kubernetes Prow Robot
a1a9dc066c
Merge pull request #109256 from chendave/nullpointer
Fix the nil pointer dereference for comformance spec validation
2022-04-05 13:33:37 -07:00
Kubernetes Prow Robot
5163909f64
Merge pull request #108867 from pohly/storage-capacity-conformance
storage capacity conformance
2022-04-05 13:33:24 -07:00
Sergey Kanzhelev
ee80dd19db fix the retry logic in ssh in test framework 2022-04-05 17:14:58 +00:00
Kubernetes Prow Robot
c13d3369d5
Merge pull request #109267 from ii/promote-job-status-test
Promote Read, Replace, Patch BatchV1NamespacedJobStatus test - +3 endpoints
2022-04-05 08:23:49 -07:00
xin.li
e0496cee62 Modify function parameters
Signed-off-by: xin.li <xin.li@daocloud.io>
2022-04-05 22:05:39 +08:00
Sergiusz Urbaniak
1495c9f2cd
test/e2e/*: default existing tests to privileged pod security policy
This is to ensure that all existing tests don't break when defaulting
the pod security policy to restricted in the e2e test framework.
2022-04-05 08:41:12 +02:00
Kubernetes Prow Robot
71cf2ea2da
Merge pull request #108664 from mkimuram/e2e-anyvolumedatasource
Add initial E2E tests for `AnyVolumeDatasource` feature
2022-04-04 14:35:36 -07:00
Riaan Kleinhans
a4a6d70168
Add NetworkPolicyStatus to ineligible list 2022-04-05 07:36:38 +12:00
Jordan Liggitt
7de6100dae Expand cmd tests of modifying schema-declaring custom resources 2022-04-04 13:51:15 -04:00
Jordan Liggitt
f12d001b20 Revert "Adjust testing for server-side validation as default"
This reverts commit f234cb142a.
2022-04-04 12:26:51 -04:00
Masaki Kimura
cd634b59ac Implement initial E2E test for AnyVolumeDataSource 2022-04-04 16:10:39 +00:00
Kubernetes Prow Robot
a315ec3388
Merge pull request #108590 from claudiubelu/tests/enable-windows-tests
tests: Enables a few Conformance tests for Windows (part 1)
2022-04-04 08:56:11 -07:00
Sergiusz Urbaniak
f578b9a40d
test/e2e/framework: use restricted policy by default 2022-04-04 13:58:59 +02:00
Pavel Beschetnov
7da800f822 Only log requests for configured consumptions in ResourceConsumer 2022-04-04 11:28:01 +00:00
Patrick Ohly
c681ff2320 storage e2e: set fstype for CSI ephemeral inline volumes
This doesn't affect in-tree testing, but some out-of-tree usage of the
pre-defined test patterns with non-default fstype.
2022-04-04 10:09:43 +02:00
Patrick Ohly
556794d469 storage capacity: promote CRUD test to conformance 2022-04-04 07:53:05 +02:00
Jordan Liggitt
2a30f1c31b Reorder process shutdown in test-cmd and exit immediately 2022-04-03 22:40:30 -04:00
Stephen Heywood
c709baa9a0 Promote e2e job status test to Conformance 2022-04-04 13:22:57 +12:00
Dave Chen
1b5d8b0b9b Fix the nil pointer dereference for comformance spec validation
`verify-conformance-yaml.sh` is used to verify the test spec of
conformance e2e test are valid.

Bascically, it calls `e2e.test` binary to dump the test spec and
then walk the source to generate the `conformance.yaml`.

If the `e2e.test` binary is outdated, it's possible that `testInfo`
is nil.

Access the field from nil will result to `nil pointer dereference`

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-04-02 16:53:39 +08:00
Kubernetes Prow Robot
8e0ac5b6a1
Merge pull request #109222 from pacoxu/flake-nfs
use privileged enforce level for nfs test
2022-04-01 21:22:22 -07:00
Paco Xu
fc186d5616 use privileged enforce level for nfs test 2022-04-01 15:22:34 +08:00
Maciej Wyrzuc
1108bed763 Revert "Field status.hostIPs added for Pod (#101566)"
This reverts commit 61b3c028ba.
2022-03-31 12:39:45 +00:00
Sarvesh Rangnekar
b9792a9dae
Introduce APIs to support multiple ClusterCIDRs (#108290)
* Introduce networking/v1alpha1 api, ClusterCIDRConfig type

Introduce networking/v1alpha1 api group.

Add `ClusterCIDRConfig` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.

* Change ClusterCIDRConfig.NodeSelector type in api

* Fix review comments for API

* Update ClusterCIDRConfig API Spec

Introduce PerNodeHostBits field, remove PerNodeMaskSize
2022-03-30 19:39:00 -07:00
Kubernetes Prow Robot
8b158fa730
Merge pull request #108953 from nckturner/remove-insecure-serving
Remove the deprecated insecure serving from the cloud controller manager
2022-03-30 18:03:00 -07:00
Kubernetes Prow Robot
e4690b0fbc
Merge pull request #109123 from dims/switch-to-pause-3.7
Switch to pause 3.7 for Kubernetes 1.24
2022-03-29 20:37:39 -07:00
Kubernetes Prow Robot
9e65ee3908
Merge pull request #109097 from pacoxu/fix-sig-node-failures
remove baseline pod security in host pid sharing testing
2022-03-29 20:36:37 -07:00
Kubernetes Prow Robot
904c30562a
Merge pull request #109031 from Jefftree/openapiv3beta
OpenAPI V3 Enable Beta
2022-03-29 20:36:25 -07:00
Kubernetes Prow Robot
0c5574c2a3
Merge pull request #108745 from aramase/aes-gcm
feat: prepare KMS data encryption for migration to AES-GCM
2022-03-29 19:28:25 -07:00
Jefftree
67d3dbfaae Separate OpenAPI V2 and V3 Config 2022-03-29 17:49:56 -07:00
Anish Ramasekar
90b42f91fd
feat: prepare KMS data encryption for migration to AES-GCM
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
Co-authored-by: Monis Khan <mok@vmware.com>
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2022-03-30 00:37:42 +00:00
Kubernetes Prow Robot
5b8dbfbbcf
Merge pull request #108995 from pohly/log-contextual
contextual logging
2022-03-29 17:35:59 -07:00
Kubernetes Prow Robot
4b3ddcf793
Merge pull request #108909 from saschagrunert/wip-crio
Inject SSH public key into CRI-O serial prow jobs
2022-03-29 17:35:42 -07:00
Kubernetes Prow Robot
b0254c8a0b
Merge pull request #108758 from fengzixu/improvement-volume-health
re-push "add volume kubelet_volume_stats_health_abnormal to kubelet #105585"
2022-03-29 17:35:34 -07:00
Kubernetes Prow Robot
9fe98d8bab
Merge pull request #108736 from NetApp/any-volume-data-source-beta
Update AnyVolumeDataSource feature gate to beta
2022-03-29 17:35:25 -07:00
Kubernetes Prow Robot
57a739bdf2
Merge pull request #108691 from andrewsykim/proxy-terminating-endpoints
Apply ProxyTerminatingEndpoints to all traffic policies
2022-03-29 17:34:57 -07:00
Kubernetes Prow Robot
dd1e43332a
Merge pull request #107476 from alculquicondor/job-ready
Graduate JobReadyPods to beta
2022-03-29 16:08:06 -07:00
Davanum Srinivas
f7ad09c447
Switch to pause 3.7
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-29 15:36:38 -04:00
Shiming Zhang
61b3c028ba
Field status.hostIPs added for Pod (#101566)
* Add FeatureGate PodHostIPs

* Add HostIPs field and update PodIPs field

* Types conversion

* Add dropDisabledStatusFields

* Add HostIPs for kubelet

* Add fuzzer for PodStatus

* Add status.hostIPs in ConvertDownwardAPIFieldLabel

* Add status.hostIPs in validEnvDownwardAPIFieldPathExpressions

* Downward API support for status.hostIPs

* Add DownwardAPI validation for status.hostIPs

* Add e2e to check that hostIPs works

* Add e2e to check that Downward API works

* Regenerate
2022-03-29 11:46:07 -07:00
Ben Swartzlander
08948ca779 Update AnyVolumeDataSource feature gate to beta
Default to enabled
Fix validation of null-updates/patches when the "old" PVC was persisted by
an older version. Add upgrade integration tests written by liggitt.
2022-03-29 13:39:48 -04:00
Andrew Sy Kim
50d93f7cec test/utils/image: use agnhost image agnhost:2.36 to include --delay-shutdown flag
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-29 11:37:43 -04:00
Andrew Sy Kim
01c178c9de test/e2e/network: add e2e tests for ProxyTerminatingEndpoints
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-29 11:37:43 -04:00
Aldo Culquicondor
8c00f510ef Graduate JobReadyPods to beta
Set podUpdateBatchPeriod to 1s

Change-Id: I8a10fd8f8559adad9df179b664b8c82851607855
2022-03-29 10:07:41 -04:00
Patrick Ohly
b390d018c7 logs: pass verbosity to loggers
When a Logger gets called directly via contextual logging, it has to do its own
verbosity check and therefore needs to know what the intended verbosity level
is.

This used to work previously because all verbosity checks were done in klog
before invoking the Logger.
2022-03-29 12:06:40 +02:00
Ricardo Katz
42a1201082
Implementation on Network Policy Status (#107963)
* Implement status subresource in NetworkPolicy

* add NetworkPolicyStatus generated files

* Fix comments in netpol status review
2022-03-29 01:52:48 -07:00
Paco Xu
4e96009c15 use privileged enforce level in host pid sharing testing 2022-03-29 15:51:33 +08:00
Kubernetes Prow Robot
fe8a663860
Merge pull request #109029 from ehashman/runc-1.1.0
Dep bump to runc 1.1.0, cadvisor 0.44.0
2022-03-28 22:45:10 -07:00
Kubernetes Prow Robot
874d4bff43
Merge pull request #108990 from jpbetz/per-crd
CRD CEL Validation: per-CRD estimated cost limit enforcement
2022-03-28 16:53:11 -07:00
Kir Kolyshkin
37761a329e
pkg/kubelet: changes to update runc to 1.1.0
The changes (mostly in pkg/kubelet/cm) are there to adopt changed
runc 1.1 API, and simplify things a bit. In particular:

1. simplify cgroup manager instantiation, using a new, easier way of
   libcontainers/cgroups/manager.New;

2. replace libcontainerAdapter with a boolean variable (all it did
   was passing on whether systemd manager should be used);

3. trivial change due to removed cgroupfs.HugePageSizes and added
    cgroups.HugePageSizes();

4. do not calculate cgroup paths in update / destroy, since libcontainer
   cgroup managers now calculate the paths upon creation (previously,
   they were doing that only in Apply, so using e.g. Set or Destroy right
   after creation was impossible without specifying paths).

We currently still calculate cgroup paths in Exists -- this is to be
addressed separately.

Co-Authored-By: Elana Hashman <ehashman@redhat.com>
2022-03-28 16:23:20 -07:00
Kubernetes Prow Robot
ef45c99506
Merge pull request #109025 from alculquicondor/smaller-job-integration-load
Reduce number of pods in Job+GC tests
2022-03-28 15:23:56 -07:00
Joe Betz
ff3d67d76a Enfoce per-CRD estimated cost limit 2022-03-28 17:33:16 -04:00
Kubernetes Prow Robot
ea0dc6ed41
Merge pull request #108889 from kevindelgado/validation-beta-flag
ServerSideFieldValidation Beta Graduation
2022-03-28 14:20:12 -07:00
Kubernetes Prow Robot
e41350790f
Merge pull request #108612 from DangerOnTheRanger/cel-crd-maxlength
Calculate CEL cost totals
2022-03-28 14:20:03 -07:00
Kubernetes Prow Robot
b053c91fb6
Merge pull request #106454 from s-urbaniak/psa-e2e
test/e2e: let e2e tests configure namespace labels
2022-03-28 14:19:43 -07:00
Kermit Alexander
7e66bd2057 Add per-CRD cost evaluation. 2022-03-28 16:08:13 +00:00
Kubernetes Prow Robot
36142cc0b7
Merge pull request #106678 from bertinatto/azure-file-e2e
Add storage tests for Azure File in-tree storage plugin
2022-03-28 06:43:34 -07:00
Sergiusz Urbaniak
373c08e0c7
test/e2e/framework: configure pod security admission level for e2e tests 2022-03-28 15:42:10 +02:00
Sergiusz Urbaniak
e06e6771ef
test/e2e/framework: add pod security admission configuration 2022-03-28 15:42:04 +02:00
Kevin Delgado
f234cb142a Adjust testing for server-side validation as default 2022-03-28 04:11:27 +00:00
Nick Turner
18ce801bea Remove the deprecated insecure serving from the cloud controller manager 2022-03-27 00:15:24 +00:00
Kubernetes Prow Robot
922faa5646
Merge pull request #109053 from liggitt/pod-conformance
Improve debug output in pod conformance test failures
2022-03-26 13:43:27 -07:00
Kubernetes Prow Robot
58c975a083
Merge pull request #109048 from aojea/integration_subtests
Integration subtests
2022-03-26 13:43:20 -07:00
Kubernetes Prow Robot
5281d51c44
Merge pull request #108642 from ii/create-job-lifecycle-test
Write Batchv1JobLifecycleTest + 4 Endpoints
2022-03-26 10:37:28 -07:00
Jordan Liggitt
f9db31dbcc Improve debug output in pod conformance test failures 2022-03-26 13:00:31 -04:00
Kubernetes Prow Robot
9568dca969
Merge pull request #109039 from mkimuram/issue/109037
Use WaitForPodRunningInNamespace for proxy e2e tests
2022-03-26 04:35:21 -07:00
Antonio Ojea
d2ca66651d refactor apiserver tests 2022-03-26 10:20:27 +01:00
Antonio Ojea
ddadc9a0bb reorganize controlplane integration tests 2022-03-26 09:19:55 +01:00
Antonio Ojea
d9bac2efb9 reduce parallelism on daemonset tests 2022-03-26 09:14:53 +01:00
Kevin Delgado
b0f3b5a796 Adjust validation checks to pass for both client-side and server-side validation 2022-03-26 03:45:13 +00:00
Kevin Delgado
0bb1a32411 Expand newly created cmd-test
Modify newly created cmd-test to work for both
client-side and server-side validation
2022-03-26 03:45:13 +00:00
Kevin Delgado
fe3772890f add server-side validation support to kubectl 2022-03-26 03:45:13 +00:00
Kubernetes Prow Robot
6c73b674d7
Merge pull request #109030 from liggitt/revert-apf-ssa
Revert "Revert "Merge pull request #107797 from tkashem/revert-107456""
2022-03-25 19:17:58 -07:00
Kubernetes Prow Robot
6efd6582df
Merge pull request #109006 from andrewsykim/kubelet-cred-provider-e2e-beta
test/e2e_node: update kubelet credential provider tests to use new v1beta1 APIs
2022-03-25 18:08:24 -07:00
Kubernetes Prow Robot
c239b406f0
Merge pull request #108929 from gnufied/move-expansion-feature-gate-ga
Move all volume expansion feature gates to GA
2022-03-25 18:08:16 -07:00
Kubernetes Prow Robot
0a63090445
Merge pull request #108859 from cici37/placeholder
Return a placeholder error for blocking failures and skip CEL validation.
2022-03-25 18:07:58 -07:00
Kubernetes Prow Robot
91d3afc948
Merge pull request #108899 from jsturtevant/windows-gmsa-deployment
Windows gmsa e2e: Don't assume bash is avaliable for webhook deployment
2022-03-25 15:34:45 -07:00
Masaki Kimura
52afdc6259 Use WaitForPodRunningInNamespace for proxy e2e tests 2022-03-25 21:24:59 +00:00
Jordan Liggitt
363a8beaab Revert "Revert "Merge pull request 107797 from tkashem/revert-107456""
This reverts commit b0b460921b.
2022-03-25 14:36:10 -04:00
Stephen Heywood
a1f6b7b7ec Create job lifecycle e2e test
The test validates the following endpoints
- deleteBatchV1CollectionNamespacedJob
- listBatchV1JobForAllNamespaces
- patchBatchV1NamespacedJob
- replaceBatchV1NamespacedJob
2022-03-26 06:58:38 +13:00
Aldo Culquicondor
cd9fd12960 Reduce number of pods in Job+GC tests
To reduce the load of the integration tests. This change reduces the runtime of each test in half.

Change-Id: I71bcaadf3809643c63bb0f6b73c28778d37d8967
2022-03-25 13:01:50 -04:00
Hemant Kumar
5e49fb067f Fix flexvolume online resizing tests 2022-03-25 12:52:49 -04:00
Fabio Bertinatto
9e4fa29982 Fix max file size in Azure File tests 2022-03-25 08:56:56 -03:00
Fabio Bertinatto
dafa0e178d Fix volume creation and deletion of Azure File tests 2022-03-25 08:56:56 -03:00
Fabio Bertinatto
b5cff9219d Add storage tests for Azure File in-tree storage plugin 2022-03-25 08:56:56 -03:00
Kubernetes Prow Robot
4348c8ecaf
Merge pull request #108752 from alculquicondor/job-orphan-pods
Fix: Clean job tracking finalizer from orphan pods
2022-03-25 03:21:51 -07:00
cici37
460121fa1e Return a placeholder error for blocking failure before CEL validation. 2022-03-25 01:19:31 -07:00
Sascha Grunert
57a3ce1a3e
Inject SSH public key into CRI-O serial prow jobs
This allows using the `GCE_SSH_PUBLIC_KEY_FILE_CONTENT` placeholder to
inject the public SSH key for running the tests.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-03-25 08:23:57 +01:00
Kubernetes Prow Robot
d58f42961c
Merge pull request #99556 from nikhita/kubectl-subresources-01
kubectl: support --subresource flag
2022-03-24 23:43:50 -07:00
Kubernetes Prow Robot
cee5e9f406
Merge pull request #108892 from mkimuram/issue/108891
e2e: deflake "should run through the lifecycle of Pods and PodStatus"
2022-03-24 22:08:01 -07:00
Kubernetes Prow Robot
ef404e989d
Merge pull request #108073 from benluddy/cel-transition-rule-oldself-plumbing
Support CEL CRD validation expressions that reference existing object state.
2022-03-24 22:07:50 -07:00
Andrew Sy Kim
45e6498fc5 test/e2e_node/plugins/gcp-credential-provider: update Test_getCredentials to validate against v1beta1 kubelet APIs
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-24 23:29:13 -04:00
Andrew Sy Kim
3600a7a355 test/e2e_node: update test plugin to use v1beta1 kubelet APIs
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-24 23:29:06 -04:00
Andrew Sy Kim
ef3c4fb3cd test/e2e_node: update credential provider config to use v1beta1 kubelet
APIs

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-24 23:28:37 -04:00
Kubernetes Prow Robot
bfe649dbc0
Merge pull request #108965 from adisky/add-crdential-flag-to-ubuntu
[node e2e] prepend credential provider flags on ubuntu os also
2022-03-24 20:06:05 -07:00
Joe Betz
f71c4d4cf4 Add validation rule tests for transition rules 2022-03-24 21:19:50 -04:00
Ben Luddy
fe38a414f8 Allow and enforce CEL CRD validation rules that reference oldSelf.
Co-authored-by: Joe Betz <jpbetz@google.com>
2022-03-24 18:20:51 -04:00
Alex Zielenski
11b3a18cca
Update kube-openapi (#108895)
* upgrade k8s.io/kube-openapi

* fix open-api v3 blank aggregator output

* use keys as API group

in ./hack/update-openapi-spec.sh

* fix import grouping

* update openapiv3 integration tests
2022-03-24 14:01:01 -07:00
Kubernetes Prow Robot
bd1e7dc3cb
Merge pull request #108817 from KnVerey/kustomize_version
Expose the version of Kustomize that Kubectl embeds
2022-03-24 14:00:53 -07:00
James Sturtevant
61af67ef10 Don't assume bash is avaliable for webhook deployment 2022-03-24 13:06:49 -07:00
Kubernetes Prow Robot
2161071d0b
Merge pull request #108919 from denkensk/rename-usQ
Rename unschedulableQ to unschedulablePods
2022-03-24 12:18:53 -07:00
Hemant Kumar
ac6ef262df remove ExpandCSIVolume feature gate 2022-03-24 14:53:00 -04:00
Katrina Verey
44e63e8ff8
kubectl version should include bundled kustomize version 2022-03-24 13:31:57 -04:00
Aldo Culquicondor
1d9e3766d2 Add test for Background delete propagation
Change-Id: I033e6fb04933c64cfe6490d1019333745d58c423
2022-03-24 11:57:51 -04:00
Aldo Culquicondor
f72173e4b4 Add integration test for orphan pods when there is GC
Change-Id: I04cd70725fd1830be8daf2dca53f67bc10a379b7
2022-03-24 11:57:49 -04:00
Hemant Kumar
cdfb841a52 remove ExpandInUsePersistentVolume feature gate 2022-03-24 11:19:42 -04:00
Hemant Kumar
9343cce20b remove ExpandPersistentVolume feature gate 2022-03-24 10:02:47 -04:00
Kubernetes Prow Robot
190f974dd8
Merge pull request #108902 from kolyshkin/bump-golangci-lint
Fix verify:* after go 1.18 upgrade
2022-03-24 02:59:06 -07:00
Alex Wang
8a5df1302a rename unschedulableQ to unschedulablePods
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
2022-03-24 17:38:49 +08:00
Aditi Sharma
51cd36cf80 prepend credential provider flags on ubuntu also 2022-03-24 14:08:41 +05:30
Kubernetes Prow Robot
96aa41513e
Merge pull request #107859 from ravisantoshgudimetla/promote-PodOS-beta
Promote PodOS field to beta
2022-03-24 00:14:41 -07:00
Kubernetes Prow Robot
99e36a93b2
Merge pull request #108781 from SergeyKanzhelev/conformanceruntimeClass
RuntimeClass and PodOverhead tests promotion to Conformance
2022-03-23 22:31:41 -07:00
Kubernetes Prow Robot
bb67b5e9e8
Merge pull request #108717 from lavalamp/remove-clustername
Remove ClusterName
2022-03-23 22:31:33 -07:00
Kubernetes Prow Robot
8168c68bb6
Merge pull request #108522 from SergeyKanzhelev/grpcToBeta
promote grpcProbes to beta
2022-03-23 22:31:05 -07:00
Kubernetes Prow Robot
7ae9615760
Merge pull request #108114 from ii/test-job-status
Write Read, Replace, Patch BatchV1NamespacedJobStatus test - +3 endpoint coverage
2022-03-23 22:30:41 -07:00
Yuvaraj Kakaraparthi
a5aa858d44 kubectl: add --support to get, patch, edit and replace commands
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
2022-03-24 09:49:12 +05:30
Kubernetes Prow Robot
f97825e1ce
Merge pull request #107395 from alculquicondor/indexed-job
Graduate IndexedJob to stable
2022-03-23 17:44:41 -07:00
Kubernetes Prow Robot
2249708b5d
Merge pull request #108862 from mmiranda96/fix/stats_summary_ubuntu
Increase timeout for stats/summary check
2022-03-23 13:22:43 -07:00
Kubernetes Prow Robot
da88853f9d
Merge pull request #108651 from andrewsykim/node-e2e-cred-provider
test/e2e_node: add kubelet credential provider tests
2022-03-23 13:22:18 -07:00
Kubernetes Prow Robot
7dde0b4bb5
Merge pull request #108342 from tkashem/rate-limit-error
client-go: chain the error returned by rate limiter
2022-03-23 13:21:43 -07:00
Kubernetes Prow Robot
9fbe66a486
Merge pull request #103516 from ykakarap/kubectl-subresources-apiserver
kubectl: apiserver changes to add --subresource support
2022-03-23 13:21:32 -07:00
Kubernetes Prow Robot
2d46f1bc30
Merge pull request #103062 from ikeeip/component_helper_storage
Move volume helpers to "k8s.io/component-helpers/storage/volume".
2022-03-23 13:21:20 -07:00
Kubernetes Prow Robot
14e8db067e
Merge pull request #108191 from ravisantoshgudimetla/wire-cert-contexts
Wire cert contexts
2022-03-23 11:20:17 -07:00
Masaki Kimura
41570eb02d e2e: deflake "should run through the lifecycle of Pods and PodStatus" 2022-03-23 17:47:15 +00:00
Kir Kolyshkin
d8fdb00b34 Fix verify: generated-stable-metrics wrt go 1.18
This should fix the following error when running
./hack/update-generated-stable-metrics.sh:

	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

Using `go get` to download gopkg.in/yaml.v2 package into
KUBE_EXTRA_GOPATH directory no longer works. Interestingly, main repo
already has gopkg.in/yaml.v2@v2.4.0, same version that was installed by
that go get.

I guess that GOPATH with multiple elements no longer works either,
and since this code was the only user of KUBE_EXTRA_GOPATH, let's remove
it as well.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:59 -07:00
Kir Kolyshkin
4513de06a8 Regen mocks using go 1.18
Generated by ./hack/update-mocks.sh using go 1.18

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:38 -07:00
Kir Kolyshkin
8820f4d381 TestWatchRestartsIfTimeoutNotReached: fix
This fixes the following error:

> test/integration/apimachinery/watch_restart_test.go:232:5: call to (*T).Fatalf from a non-test goroutine

Update: the previous fix (commit 1ce55e3afe that uses panic)
looks way too severe; it seems it is enough to call t.Errorf and return
from goroutine. The test will time out and fail anyway.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:38 -07:00
Daniel Smith
2831f9a343 remove unneeded references 2022-03-23 15:26:38 +00:00
Kubernetes Prow Robot
24a71990e0
Merge pull request #108445 from pohly/storage-capacity-ga
storage capacity GA
2022-03-23 08:06:21 -07:00
Kubernetes Prow Robot
a6e65a246c
Merge pull request #107986 from wzshiming/promote/shutdown-based-on-pod-priority
Promote graceful shutdown based on pod priority to beta
2022-03-23 08:06:09 -07:00
Andrew Sy Kim
a4b79590eb move cluster/gce/gci/credential-provider to test/e2e_node/plugins/gcp-credential-provider
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-23 10:30:02 -04:00
Andrew Sy Kim
ddeb1e1352 cluster/gce/gci/credential-provider: add barebones GCP credential provider for testing only
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Co-authored-by: Aditi Sharma <adi.sky17@gmail.com>
2022-03-23 10:30:01 -04:00
Andrew Sy Kim
758d78a662 test/e2e_node: add a test pulling a private GCR image
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Co-authored-by: Aditi Sharma <adi.sky17@gmail.com>
2022-03-23 10:30:01 -04:00
Andrew Sy Kim
f440a69c70 test/e2e_node: install and configure kubelet credential provider
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Co-authored-by: Aditi Sharma <adi.sky17@gmail.com>
2022-03-23 10:30:01 -04:00
Abu Kashem
6acbe7e645
client-go: chain the error returned by rate limiter 2022-03-23 08:29:28 -04:00
Davanum Srinivas
3470453e01
Fix for verify: generated-stable-metrics problem
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:53 -04:00
Davanum Srinivas
1ce55e3afe
fix govet on golang 1.18
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:53 -04:00
Yuvaraj Kakaraparthi
801c39b478 kubectl: API changes to support --subresource in kubectl
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Co-authored-by: Yuvaraj Kakaraparthi <kakaraparthy@vmware.com>
2022-03-23 11:19:58 +05:30
ravisantoshgudimetla
82f701aae2 pod admission test 2022-03-22 14:58:27 -04:00
Kubernetes Prow Robot
41501c4fcf
Merge pull request #108704 from MartinForReal/feat/add_bootid_for_windows
Add bootid support for windows node.
2022-03-22 10:36:11 -07:00
Davanum Srinivas
d8f1da5ecb
golang: Update to 1.18 from 1.18rc1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 09:47:35 -04:00
Kubernetes Prow Robot
0b8a665d50
Merge pull request #108613 from Huang-Wei/fix-v1beta3-order
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config
2022-03-22 01:01:44 -07:00
Patrick Ohly
f5340fdd02 storage capacity: CRUD conformance test
This is needed for GA APIs. This one is based on
test/e2e/common/node/runtimeclass.go.
2022-03-22 08:12:56 +01:00
Kubernetes Prow Robot
9a8defda15
Merge pull request #108383 from tkashem/revert
Revert the revert of #107456 - "apf: change controller to use SSA for patches"
2022-03-21 22:09:43 -07:00
Kubernetes Prow Robot
0053a0e0fd
Merge pull request #108782 from cfryanr/expirationseconds_conformance
Promote CertificateSigningRequest's Spec.ExpirationSeconds field to GA
2022-03-21 20:19:55 -07:00
Kubernetes Prow Robot
7cf5c02980
Merge pull request #107979 from XudongLiuHarold/promote-loadbalancerclass-to-ga
Promote load balancer class to GA
2022-03-21 17:54:13 -07:00
Xudong Liu
c8a6c7f338 promote load balancer class to GA
Signed-off-by: Xudong Liu <xudongliuharold@gmail.com>
2022-03-21 16:16:13 -07:00
Mike Miranda
44e3280799 Increase timeout for stats check 2022-03-21 22:20:57 +00:00
Stephen Heywood
b5edb55bbc Create e2e job status test
e2e test validates the following 3 extra endpoints
- patchBatchV1NamespacedJobStatus
- readBatchV1NamespacedJobStatus
- replaceBatchV1NamespacedJobStatus
2022-03-22 10:26:44 +13:00
Wei Huang
d330f4dcb4
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config 2022-03-21 10:46:26 -07:00
Ryan Richard
e29ac0f8be Promote CertificateSigningRequest's Spec.ExpirationSeconds field to GA
Remove the comment "As of v1.22, this field is beta and is controlled
via the CSRDuration feature gate" from the expirationSeconds field's
godoc.

Mark the "CSRDuration" feature gate as GA in 1.24, lock its value to
"true", and remove the various logic which handled when the gate was
"false".

Update conformance test to check that the CertificateSigningRequest's
Spec.ExpirationSeconds field is stored, but do not check if the field
is honored since this functionality is optional.
2022-03-18 14:41:43 -07:00
David Porter
7ac2896a14 test: increase timeout in pod collection deletion
Increase the current timeout of 1 minute for waiting for all pods to be
deleted to avoid flakiness. To avoiding hardcoding a timeout, use the
built in framework's `PodDelete` timeout which defaults to 5 minutes.

While we are in here, also change `framework.PodStartTimeout` to use
`f.Timeouts.PodStart` since `framework.PodStartTimeouts` are marked as
deprecated.

Signed-off-by: David Porter <david@porter.me>
2022-03-18 13:40:29 -07:00
Kubernetes Prow Robot
cd6af9e64b
Merge pull request #106155 from enj/enj/i/webhook_rest_config
webhook: use rest.Config instead of kubeconfig file as input
2022-03-18 12:23:56 -07:00
Kubernetes Prow Robot
0ade4678a7
Merge pull request #108771 from andrewsykim/bump-agnhost
Bump agnhost@v2.36 to include changes for --delay-shutdown flag
2022-03-18 00:15:17 -07:00
Kubernetes Prow Robot
ad751e8520
Merge pull request #108710 from kevindelgado/ssfv-testing-improvement
Exact Matching for Field Validation Integration Tests
2022-03-17 21:21:16 -07:00
Jian Li
c55658cd9f e2e/cleanup: fix package name and dir name mismatches 2022-03-18 11:41:27 +08:00
MartinForReal
d529b7e10b add bootid support for windows node.
Signed-off-by: MartinForReal <fanshangxiang@gmail.com>
2022-03-18 02:17:52 +00:00
Monis Khan
fef7d0ef1e
webhook: use rest.Config instead of kubeconfig file as input
This change updates the generic webhook logic to use a rest.Config
as its input instead of a kubeconfig file.  This exposes all of the
rest.Config knobs to the caller instead of the more limited set
available through the kubeconfig format.  This is useful when this
code is being used as a library outside of core Kubernetes. For
example, a downstream consumer may want to override the webhook's
internals such as its TLS configuration.

Signed-off-by: Monis Khan <mok@vmware.com>
2022-03-17 20:47:42 -04:00
Kevin Delgado
7983932800 Exact Matching for Field Validation Tests 2022-03-17 22:08:49 +00:00
Sergey Kanzhelev
29e8bef315 RuntimeClass and PodOverhead promotion to GA 2022-03-17 21:49:32 +00:00
Andrew Sy Kim
07ac998e3b test/images: clarify documentation around bumping test image versions
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-17 14:28:41 -04:00
Andrew Sy Kim
9b5b77ac81 test/images/agnhost: bump agnhost to v2.36
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-17 11:47:04 -04:00
Kubernetes Prow Robot
9e50a332d8
Merge pull request #108366 from smarterclayton/terminating_not_terminated
Delay writing a terminal phase until the pod is terminated
2022-03-17 08:29:21 -07:00
Kubernetes Prow Robot
48ee98fabf
Merge pull request #108757 from liggitt/service-account-conformance
Exercise Get of serviceaccount in e2e
2022-03-17 00:41:30 -07:00
Kubernetes Prow Robot
6340b19dda
Merge pull request #108750 from andrewsykim/agnhost-netexec-termination
agnhost: support --delay-shutdown flag for the net and netexec subcommands
2022-03-16 18:35:26 -07:00
Kubernetes Prow Robot
a7740c83f2
Merge pull request #108714 from SergeyKanzhelev/podOverheadConformance
pod overhead test to be made a Conformance
2022-03-16 18:35:19 -07:00
Kubernetes Prow Robot
5cb6fab8f6 Merge pull request #105585 from fengzixu/improvement-volume-health
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-17 01:32:38 +00:00
Jordan Liggitt
654dc8686b Exercise Get of serviceaccount in e2e 2022-03-16 20:24:50 -04:00
Kubernetes Prow Robot
b195a64d45
Merge pull request #108644 from Jefftree/googleapis-gnostic
googleapis/gnostic -> google/gnostic and update kube-openapi
2022-03-16 15:14:10 -07:00
Sergey Kanzhelev
6b3758bb95 pod overhead test to be made a Conformance 2022-03-16 21:35:02 +00:00
Kubernetes Prow Robot
52ab081283
Merge pull request #108593 from claudiubelu/tests/update-pod-collection-test
tests: Updates the should delete a collection of pods test
2022-03-16 13:50:23 -07:00
Andrew Sy Kim
ff997ae5a0 agnhost/net: support --delay-shutdown flag
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-16 16:46:43 -04:00
Andrew Sy Kim
d981aa118f agnhost/netexec: support --delay-shutdown flag
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-03-16 16:46:43 -04:00
Kubernetes Prow Robot
0b3629ae7d
Merge pull request #108432 from iXinqi/add-write-file-test
Add gMSA Reading and Writing Files Test Case
2022-03-16 12:36:10 -07:00
David Porter
d6cd51e5c0
test: Verify that nodes do not transition to Failed while ready
Signed-off-by: David Porter <david@porter.me>
2022-03-16 13:15:03 -04:00
David Porter
c70f1955c4
test: Add E2E for job completions with cpu reservation
Create an E2E test that creates a job that spawns a pod that should
succeed. The job reserves a fixed amount of CPU and has a large number
of completions and parallelism. Use to repro github.com/kubernetes/kubernetes/issues/106884

Signed-off-by: David Porter <david@porter.me>
2022-03-16 13:15:03 -04:00
Clayton Coleman
ca98714ec0
test: Add E2E for init container pod deletion
Exploring termination revealed we have race conditions in certain
parts of pod initialization and termination. To better catch these
issues refactor the existing test so it can be reused, and then test
a number of alternate scenarios.
2022-03-16 13:15:03 -04:00
Maciej Borsz
aa95513982
Revert "add volume kubelet_volume_stats_health_abnormal to kubelet" 2022-03-16 13:44:09 +01:00
Konstantin Misyutin
1d7cefe9c4 Move volume helpers to "k8s.io/component-helpers/storage/volume".
This patch aims to simplify decoupling "pkg/scheduler/framework/plugins"
from internal "k8s.io/kubernetes" packages. More described in
issue #89930 and PR #102953.

Some helpers from "k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
package moved to "k8s.io/component-helpers/storage/volume" package:

- IsDelayBindingMode
- GetBindVolumeToClaim
- IsVolumeBoundToClaim
- FindMatchingVolume
- CheckVolumeModeMismatches
- CheckAccessModes
- GetVolumeNodeAffinity

Also "CheckNodeAffinity" from "k8s.io/kubernetes/pkg/volume/util"
package moved to "k8s.io/component-helpers/storage/volume" package
to prevent diamond dependency conflict.

Signed-off-by: Konstantin Misyutin <konstantin.misyutin@huawei.com>
2022-03-16 15:43:09 +08:00
Xinqi Li
65a4d1cbe7 add gMSA remote storage test 2022-03-15 22:51:55 -07:00
Jefftree
8a1d5947ad googleapis/gnostic -> google/gnostic 2022-03-15 20:44:03 -07:00
Kubernetes Prow Robot
7dcd697ddf
Merge pull request #108702 from pbetkier/test-e2e-autoscaling-owners
Add sig-autoscaling as owners of test/e2e/framework/autoscaling
2022-03-15 18:09:48 -07:00
Aldo Culquicondor
2c5d0a273c Graduate IndexedJob to stable
- Lock feature gate to true and schedule for deletion in 1.26
- Remove checks on feature gate
- Graduate E2E test to Conformance

Change-Id: I6814819d318edaed5c86dae4055f4b050a4d39fd
2022-03-15 13:41:06 -04:00
Kubernetes Prow Robot
2b1b849d6a
Merge pull request #108362 from sanposhiho/implement-mindomains
Implement MinDomains on Pod Topology Spread
2022-03-15 10:34:11 -07:00
Kubernetes Prow Robot
1a5abe5d1f
Merge pull request #105585 from fengzixu/improvement-volume-health
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-15 05:58:11 -07:00
Piotr Betkier
3df96cbf01 Add sig-autoscaling as owners of test/e2e/framework/autoscaling 2022-03-15 11:22:49 +01:00
Kubernetes Prow Robot
02b1ec5b0b
Merge pull request #108485 from BigDarkClown/master
Make daemon.NodeShouldRunDaemonPod function public
2022-03-15 00:30:21 -07:00
Kubernetes Prow Robot
7cc4fcd802
Merge pull request #108253 from pohly/kubelet-root
test: support storage tests with non-standard kubelet root directory
2022-03-15 00:30:10 -07:00
Kubernetes Prow Robot
8bf64e4128
Merge pull request #108652 from 249043822/probe-restart
Fix test:Probing container should have monotonically increasing restart
2022-03-14 22:08:11 -07:00
Kubernetes Prow Robot
41dbd290d1
Merge pull request #108694 from mikedanese/metadata-conceal
remove metadata-concealment related testing
2022-03-14 18:50:43 -07:00
Kubernetes Prow Robot
d7bd0d4f52
Merge pull request #108648 from ahg-g/ahg-ds
Update PreFilter interface to return a PreFilterResult
2022-03-14 18:50:20 -07:00
ZhangKe10140699
d7d7e0d508 Fix test:Probing container should have monotonically increasing restart count 2022-03-15 09:15:33 +08:00
Kubernetes Prow Robot
f9be590b25
Merge pull request #108431 from ii/promote-replace-podtemplate
Promote replaceCoreV1NamespacedPodTemplate test - +1 endpoint coverage
2022-03-14 16:24:58 -07:00
Sergey Kanzhelev
792a37e2f1 promote grpcProbes to beta 2022-03-14 22:49:38 +00:00
Matthew Wong
7f638b45b7 Set zone label selector for preprovisioned AWS in-tree tests 2022-03-14 15:38:10 -07:00
Kubernetes Prow Robot
2acc22a9a0
Merge pull request #108690 from klueska/add-owners
Add klueska to test/e2e/node/OWNERS file
2022-03-14 14:23:19 -07:00
Kubernetes Prow Robot
5c98eb5625
Merge pull request #108264 from pbetkier/hpa-behavior-e2e-tests-downscale
Add e2e test for HPA behavior: decreased downscale stabilization
2022-03-14 14:23:00 -07:00
Kubernetes Prow Robot
c6c4915dd7
Merge pull request #108495 from stevekuznetsov/skuznets/better-rv-math
test/integration: improve TestTransform
2022-03-14 13:03:11 -07:00
Mike Danese
b32e043898 remove metadata-concealment related testing
We agreed to remove these tests in SIG Auth because they aren't testing
any OSS functionality.
2022-03-14 12:44:48 -07:00
Abdullah Gharaibeh
5b20b68bc9 Updated the scheduler framework's PreFilter interface to return a PreFilterResult 2022-03-14 15:36:52 -04:00
Patrick Ohly
f84f4fa291 storage capacity: use V1 API 2022-03-14 20:05:45 +01:00
Patrick Ohly
921edae2b4 storage capacity: v1 API 2022-03-14 20:05:45 +01:00
Patrick Ohly
3a7deaa141 storage capacity: GA, always enabled, remove feature check
The code and tests for scenarios where the feature is disabled are no longer
needed because the feature is graduating to GA.
2022-03-14 20:05:45 +01:00
sanposhiho
6141aa53f9 Implement MinDomains 2022-03-15 01:38:44 +09:00
Kevin Klues
b815122f17 Add klueska to test/e2e/node/OWNERS file
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-03-14 17:02:25 +01:00
Riaan Kleinhans
454571b1bc
add log endpoint to ineligible_endpoints.yaml 2022-03-14 09:59:21 +13:00
Kubernetes Prow Robot
d2ce895e07
Merge pull request #107055 from jsturtevant/remove-unsupported-sac
Remove unsupported Windows SAC  test images
2022-03-11 16:32:23 -08:00
Kubernetes Prow Robot
633313616f
Merge pull request #107132 from NikhilSharmaWe/netTest
made independent test cases ginkgo.It for checking connectivity
2022-03-11 13:26:22 -08:00
Kubernetes Prow Robot
86ad8fc586
Merge pull request #107477 from NikhilSharmaWe/memlim
Updated Sig-windows Memory Limits tests to not assume all nodes are the same
2022-03-11 11:52:22 -08:00
Shiming Zhang
1322dbba46 Add e2e 2022-03-11 17:31:25 +08:00
Nikhil Sharma
cf48674dbf Updated Sig-windows Memory Limits tests to not assume all nodes are the same 2022-03-11 10:48:36 +05:30
Kubernetes Prow Robot
897f2f78a5
Merge pull request #108458 from pohly/csi-test-image-mirroring
e2e: support CSI images in -list-images
2022-03-10 21:17:06 -08:00
Nikhil Sharma
edfd8cba54 made independent test cases ginkgo.It for checking connectivity 2022-03-11 09:02:17 +05:30
Kubernetes Prow Robot
c5f7ceb26c
Merge pull request #108581 from pacoxu/image-docker-hub-fix
migrate nginx to k8s.gcr.io image
2022-03-10 16:19:07 -08:00
Steve Kuznetsov
ff8fbc2d37
test/integration: use a context with a deadline for streaming
Without such a context, this test would hang without data for 10
minutes, then panic.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:55 -08:00
Steve Kuznetsov
a843239ec3
test/integration: use a known previous resourceVersion
ResourceVersion values are opaque and math should not be done on them.
The intent of this test was to watch from a resourceVersion before the
moment where the objects were created, and we can find such a version by
listing from the API server before the tests begin.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:36 -08:00
Kubernetes Prow Robot
425ff1c8e2
Merge pull request #108500 from SergeyKanzhelev/grpcsupportInAgnHost
add the grpc-health-checking to agnhost
2022-03-10 13:05:07 -08:00
Steve Kuznetsov
305652a432
conformance: do not parse resourceVersion
This test wishes to observe a watch event. In order to do this in the
past, the test chose a well-known `Service` object, fetched it, and did
arithmetic on the returned `resourceVersion` in order to start a watch
that was guaranteed to see an event. It is not valid to parse the
`resourceVersion` as an integer or to do arithmetic on it, so in order
to make the test conformant to an appropriate use of the API it now:

 - creates a namespace
 - fetches the current `resourceVersion`
 - creates an object
 - watches from the previous `resourceVersion` that was read

This ensures that an event is seen by the watch, but uses the publically
supported API.

`ConfigMap`s are used instead of `Service`s as they do not require a
valid `spec` for creation and make the test terser.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 09:46:04 -08:00
Claudiu Belu
720ffb826a tests: Updates the should delete a collection of pods test
We should wait for all 3 pods after we've spawned them, instead of
spawning and waiting for them sequentially.
2022-03-10 08:32:50 -08:00
Kubernetes Prow Robot
9e5efebb4c
Merge pull request #108563 from ipochi/imran/update-e2e-lock-contention-test-to-remove-restart-kubelet
Remove the restart kubelet check from the test.
2022-03-09 21:49:35 -08:00
Kubernetes Prow Robot
b90bddfd9f
Merge pull request #108204 from kevindelgado/field-validation-crd-unit-tests
Field validation CRD benchmarks and decoder unit tests
2022-03-09 20:01:35 -08:00
Paco Xu
f2930ec98b revert change in imports: ide auto-change to make import-boss verify green 2022-03-10 10:20:59 +08:00
Kubernetes Prow Robot
4763d75290
Merge pull request #108598 from chendave/remove_testcases
Remove the legacy Nginx testcases
2022-03-09 13:56:12 -08:00
Dave Chen
09e47291c7 Rename variable error to err
`error` is the keywork in golang

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:39:34 +08:00
Dave Chen
85dfca3e16 Remove the legacy Nginx testcases
Those testcases does't work anymore after nginx-ingress controller
has been upgraded to v1.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:38:07 +08:00
Paco Xu
b03e27af1b migrate dockerhub image to k8s.gcr.io e2e test image 2022-03-09 09:54:11 +08:00
Kubernetes Prow Robot
19935de5a9
Merge pull request #107410 from margocrawf/master
Ensure static certs in kubeconfig override exec plugin
2022-03-08 11:34:21 -08:00
Bartłomiej Wróblewski
b2e2fb8d89 Make daemon.NodeShouldRunDaemonPod function public 2022-03-08 11:32:17 +00:00
carlory
fcc282f9f2 remove audit.k8s.io/v1[alpha|beta]1 versions 2022-03-08 14:37:26 +08:00
Margo Crawford
f015fd66ce Check whether static cert is already configured in UpdateTransportConfig
- Also update test-cmd.sh to pass a signing ca to the kube controller
  manager, so CSRs work properly in integration tests.

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2022-03-07 13:54:32 -08:00
Kubernetes Prow Robot
f93be6584e
Merge pull request #108426 from deads2k/e2e-check
add resource enablement check for e2e tests of beta APIs
2022-03-07 11:34:26 -08:00
David Eads
8ab8d05cc4 add resource enablement check for e2e tests of beta APIs 2022-03-07 13:31:37 -05:00
Ravi Gudimetla
72a62f47f7 Wire context for cert controllers
All the controllers should use context for signalling termination of communication with API server. Once kcm cancels context all the cert controllers which are started via kcm should cancel the APIServer request in flight instead of hanging around.
2022-03-07 10:19:45 -05:00
Patrick Ohly
df1d1cc263 e2e: support CSI images in -list-images
It was possible to patch images in the YAML files via KUBE_TEST_REPO, but it
was not possible to know in advance which images might be needed. Now
-list-images also includes all images referenced by the
test-manifest/storage-csi YAML files.
2022-03-07 15:03:16 +01:00
Imran Pochi
5ef0be2f58 Remove the restart kubelet check from the test.
Upon reconsidering as to the purpose of the test i.e to test the lock
contention flags (--lock-file-contention and --lock-file), it makes
sense that we test only the actual functionality which is the kubelet
should stop once there is a lock contention.

In no way it is the responsiblity of the kubelet to restart, which would
be the responsiblity of a higher system such as systemd.

Hence the removal of the check for releasing the lock and checking for
whether the kubelet is healthy again or not seem out of scope from
kubelet's responsiblities.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2022-03-07 18:51:07 +05:30
Kubernetes Prow Robot
ad46b4f921
Merge pull request #108457 from ialidzhikov/cleanup/target-ram-mb
apiserver: Remove the deprecated `--target-ram-mb` flag
2022-03-07 02:38:53 -08:00
Claudiu Belu
87123c49a0 tests: Enables a few Conformance tests for Windows
Some of these tests could not be run previously, especially on Windows
Docker containers. But now, by using Windows Containerd, we can finally
run them:

- HostNetwork=true tests: This can now be enabled on Windows Privileged Containers.
- /etc/hosts related tests: These were not supported because it required single
  file mappings, which is possible in Containerd.
- termination message as non-root user: Requires RunAsUsername, and single file
  mappings.
2022-03-06 09:36:39 -08:00
Kubernetes Prow Robot
3775ac6d19
Merge pull request #108535 from Abirdcfly/master
fix some typo
2022-03-05 22:46:52 -08:00
Abirdcfly
2005110090 fix some typo
Change-Id: I211f572555e964581214a5d726ac552676c9833a
2022-03-05 23:25:52 +08:00
Kubernetes Prow Robot
546e4fa1ef
Merge pull request #107771 from sanposhiho/fix-tiny
make scheduler_perf stable
2022-03-04 17:22:52 -08:00
Kubernetes Prow Robot
422b867d45
Merge pull request #108514 from dims/avoid-dockerhub-for-nginx-pull-kubernetes-e2e-gce
Avoid dockerhub for nginx (fix for only pull-kubernetes-e2e-gce)
2022-03-04 15:35:30 -08:00
Sergey Kanzhelev
2012358e39 add the grpc-health-checking to agnhost 2022-03-04 21:29:55 +00:00
Davanum Srinivas
2fd5d18570
Avoid dockerhub for nginx (fix for only pull-kubernetes-e2e-gce)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-04 14:03:18 -05:00
Kubernetes Prow Robot
0a3470a68d
Merge pull request #107135 from ruquanzhao/removegenericScheduler
Scheduler: Remove genericScheduler and SchedulerAlgorithm.
2022-03-04 08:20:52 -08:00
Ruquan Zhao
f1a5b6ca06 Remove genericScheduler and SchedulerAlgorithm.
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2022-03-04 13:26:46 +08:00
Jordan Liggitt
7895fbd45d Restore wait loop to integration test 2022-03-03 21:33:01 -05:00
Patrick Ohly
ff5558edc3 test: support storage tests with non-standard kubelet root directory
Some storage tests deploy DaemonSets which hard-code /var/lib/kubelet as root
directory for kubelet registration and pod directory. There was already a
parameter which allowed specifying the root directory, just with a very
confusing name ("--volume-dir") and matching field name. A --kubelet-root-dir
parameters gets added because this may make it easier to find the parameter,
with the old name preserved as an alias for the same field for backwards
compatibility.
2022-03-03 12:34:18 +01:00
Antonio Ojea
b0600c630d integration: run tests in eachs own process 2022-03-03 08:19:14 +01:00
ialidzhikov
bdbc750129 apiserver: Remove the deprecated --target-ram-mb flag
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2022-03-02 18:52:46 +02:00
Kubernetes Prow Robot
4737127b57
Merge pull request #108429 from dims/allow-env-var-to-be-remote-url
Allow KUBE_TEST_REPO_LIST to be a remote url as well
2022-03-02 08:07:16 -08:00
Kubernetes Prow Robot
88f9728339
Merge pull request #108309 from zshihang/token
no auto-generation of secret-based service account token
2022-03-02 06:19:15 -08:00
Stephen Heywood
5597b0c4fb Promote replace podtemplate e2e test to Conformance 2022-03-02 10:33:02 +13:00
Davanum Srinivas
6f3765b731
Allow KUBE_TEST_REPO_LIST to be a remote url as well
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-01 13:44:51 -05:00
Antonio Ojea
2660ac8a6d integration framework: log number of leaked goroutines 2022-03-01 15:31:13 +01:00
ZhangKe10140699
34c90a4014 Add pod status info log for e2e creating pods 2022-03-01 18:20:47 +08:00
Piotr Betkier
13c3f091a7 Small review fixes 2022-03-01 09:24:26 +01:00
Piotr Betkier
50200dc54f Add e2e test for HPA behavior: decreased downscale stabilization 2022-03-01 09:24:26 +01:00
Kubernetes Prow Robot
77f6476d34
Merge pull request #108327 from SergeyKanzhelev/unused_jenkins_files
two files not being used any longer
2022-02-28 19:43:46 -08:00
Kubernetes Prow Robot
1cc8edb838
Merge pull request #108286 from ii/replace-pod-template
Write replaceCoreV1NamespacedPodTemplate test - +1 endpoint coverage
2022-02-28 17:11:46 -08:00
Kubernetes Prow Robot
2c91952fcf
Merge pull request #106486 from Ahmed-Aghadi/codeEnhanceNode
test/e2e/node + test/e2e/scheduling: improve checks
2022-02-28 11:17:46 -08:00
AHMED AGHADI
ff0a3009db Improve checks for test/e2e/node and test/e2e/scheduling 2022-02-28 23:44:21 +05:30
Abu Kashem
b0b460921b
Revert "Merge pull request #107797 from tkashem/revert-107456"
This reverts commit 83ca745412, reversing
changes made to 1c216c6ec8.
2022-02-27 13:40:28 -05:00
Stephen Heywood
522b9b3de2 Create e2e replace pod template test
The test validates the following endpoint
- replaceCoreV1NamespacedPodTemplate
2022-02-25 15:28:15 +13:00
Kubernetes Prow Robot
3213a92802
Merge pull request #108341 from zshihang/gce
bump kube-addon-manager image version to 9.1.6
2022-02-24 16:19:55 -08:00
Kubernetes Prow Robot
d3ece70f0b
Merge pull request #108269 from kerthcet/refactor/rename-schedulercache-to-cache
refactor: rename SchedulerCache to Cache in Scheduler
2022-02-24 14:46:13 -08:00
Shihang Zhang
5ee418b4c7 bump kube-addon-manager image version to 9.1.6 2022-02-24 14:13:01 -08:00
sanposhiho
4c3a1000c7 fix by gofmt 2022-02-25 00:23:01 +09:00
Kubernetes Prow Robot
7588a82bdb
Merge pull request #108293 from chendave/upstream_gopath
e2e: Embed DNS related maninfests into codebase
2022-02-24 01:19:33 -08:00
Sergey Kanzhelev
3f9df1423f two files not being used any longer 2022-02-24 08:03:31 +00:00
kerthcet
eafbaad9f7 refactor: rename SchedulerCache to Cache in Scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 09:47:21 +08:00
Kubernetes Prow Robot
2fcdbd098c
Merge pull request #107993 from deads2k/simplify
prevent enabling beta by default for new api groups
2022-02-23 16:03:35 -08:00
Kubernetes Prow Robot
77eb1a03df
Merge pull request #94637 from liggitt/namespace-before-admission
set/validate object namespace before admission
2022-02-23 14:35:58 -08:00
Shihang Zhang
fb6c727fde no auto-generation of secret-based service account token 2022-02-23 14:17:30 -08:00
Kubernetes Prow Robot
6d1c9a98ef
Merge pull request #108104 from pbetkier/autoscaling-e2e-resource-consumer-fix
e2e: Fix ResourceConsumer unstable request interval
2022-02-23 11:45:57 -08:00
David Eads
1afcc31b1b add integration test to prevent new beta APIs from being enabled by default 2022-02-23 13:51:43 -05:00
sanposhiho
1080c2d717 Make scheduler_perf stable 2022-02-24 01:29:38 +09:00
Jordan Liggitt
92422a7305 set/validate object namespace before admission 2022-02-23 11:12:27 -05:00
Dave Chen
cee132b197 Remove couple of variables to simplify the code
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-02-23 17:17:27 +08:00
Dave Chen
d5775aef5e e2e: Embed dns related maninfests into codebase
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-02-23 17:16:50 +08:00
Kubernetes Prow Robot
5211a4b214
Merge pull request #103061 from SergeyKanzhelev/removeAlphaRuntimeClass
Remove RuntimeClass feature gate and stop serving older versions of RuntimeClass
2022-02-22 19:08:18 -08:00
Kubernetes Prow Robot
44241bacca
Merge pull request #108239 from Abirdcfly/master
delete redundant characters in comment
2022-02-22 13:25:16 -08:00
Kubernetes Prow Robot
86945d7e74
Merge pull request #107431 from justaugustus/rel-mgr
OWNERS(releng): Reconcile existing Release Managers
2022-02-22 11:39:16 -08:00
Sergey Kanzhelev
06ee2969ef do not serve node.k8s.io, version v1alpha1 2022-02-22 18:30:24 +00:00
Kubernetes Prow Robot
bda996e6a7
Merge pull request #107105 from justaugustus/go118
golang: Update to go1.18rc1
2022-02-21 07:46:15 -08:00
Stephen Augustus
946cc66220
test/{images,utils/image}/OWNERS: Alpha-sort reviewers/approvers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-21 08:37:29 -05:00
Wojciech Tyczyński
f3d56369f7 Unify merge GetToList and List storage methods to single GetList 2022-02-21 12:52:05 +01:00
Abirdcfly
5da98dedb4 delete redundant characters in comment
Change-Id: Id49d6266f76d2e242880f25cfa2b591bcef1b5ff
2022-02-21 13:51:53 +08:00
Stephen Augustus
93295000af
golang: Update to go1.18rc1
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-20 21:16:26 -05:00
Abdullah Gharaibeh
8a1c70b48c Graduate PodAffinityNamespaceSelector to GA 2022-02-18 12:07:29 -05:00
Kubernetes Prow Robot
2078864d08
Merge pull request #106671 from wzshiming/test/e2e-graceful-node-shutdown-based-on-pod-priority
Fix flaky test - when gracefully shutting down with Pod priority should be able to gracefully shutdown pods with various grace periods
2022-02-17 22:32:26 -08:00
Kubernetes Prow Robot
8a6439d2b1
Merge pull request #108129 from ahg-g/ahg-suspend
Graduate SuspendJob to GA
2022-02-17 19:36:23 -08:00
Shiming Zhang
102a669ca1 Fix flaky test 2022-02-18 09:39:46 +08:00
Kubernetes Prow Robot
23ccbafdf1
Merge pull request #104334 from ipochi/imran/re-revert-lock-contention-tests
Revert #104308 to bring back LockContention tests
2022-02-17 17:20:25 -08:00
Kevin Delgado
a72f24d33c start CRD integration benchmarks 2022-02-18 01:04:51 +00:00
Kubernetes Prow Robot
3d4f59416e
Merge pull request #108192 from SergeyKanzhelev/no-docker-install-needed
remove docker installation from startup scripts
2022-02-17 15:01:33 -08:00
Kubernetes Prow Robot
3e60727f75
Merge pull request #108174 from stevekuznetsov/skuznets/transformer-context
storage: transformers: pass a context.Context
2022-02-17 09:45:37 -08:00
Steve Kuznetsov
27312feb99
storage: transformers: pass a context.Context
When an envelope transformer calls out to KMS (for instance), it will be
very helpful to pass a `context.Context` to allow for cancellation. This
patch does that, while passing the previously-expected additional data
via a context value.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-02-17 08:31:31 -08:00
Sergey Kanzhelev
19a01fa8c6 remove docker installation from everywhere 2022-02-17 08:02:13 +00:00
Kevin Delgado
df2768123d
FieldValidation tests for endpoints apiserver and benchmarks for integration tests (#107848)
* wip, working post-strict-yaml

* wip, merge-patch and json-patch tests added

* added SMP tests

* cleanup

* add benchmarks

* more detailed test failure message

* start adding field validation integration benchmarks

* use valid input for benchmarking

* fix remaining integration benchmarks

* benchmarking feedback

* fix endpoints benchmarking

* remove unused vars
2022-02-16 21:19:49 -08:00
Ciprian Hacman
3834761187 Remove unused --dockershim-checkpoint-dir e2e.test flag
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-16 15:34:28 +02:00
Kubernetes Prow Robot
a06e272124
Merge pull request #108127 from neolit123/1.24-fix-e2e-kubeadm-unversioned-kubelet-cm-defaults
test/e2e_kubeadm: fix matching UnversionedKubeletConfigMap defaults
2022-02-16 00:43:38 -08:00
Kubernetes Prow Robot
1fa888529e
Merge pull request #107533 from neolit123/1.24-update-master-label-taint
kubeadm: apply "master" label/taint migration for 1.24
2022-02-15 21:44:36 -08:00
Kubernetes Prow Robot
a37b6fc8b4
Merge pull request #108138 from liggitt/v1beta1-selector
Revert v1beta1 PodDisruptionBudget selector patchStrategy to pre-1.21 behavior
2022-02-15 16:25:18 -08:00
Jordan Liggitt
33fc0b9651 Add PDB selector patch integration test 2022-02-15 14:45:22 -05:00
Lubomir I. Ivanov
2fba7c8ade test/e2e_kubeadm: fix matching UnversionedKubeletConfigMap defaults
The kubeadm defaults in features.go differ between versions.
e2e_kubeadm tests cannot import the kubeadm features.go,
or easily detect the versioned of the kubeadm binary used
to create the cluster.

Check for the existence of both versioned and unversioned
objects independent of the value of the FG. Once the FG
goes GA only the unversioned objects should be checked.

Without this change kubeadm e2e skew tests will fail where kubeadm
is at 1.24 (has the FG defaulted to true), the FG is not
explicitly set by the user and the k8s version is at 1.23.
2022-02-15 18:38:44 +02:00
Abdullah Gharaibeh
b2d2ec9e76 Graduate SuspendJob to GA 2022-02-15 10:46:13 -05:00
Kubernetes Prow Robot
d12787bc2c
Merge pull request #104698 from weiwenli97/windows_node_reboot
Add Windows node reboot
2022-02-15 02:34:02 -08:00
Kubernetes Prow Robot
d899c39ca3
Merge pull request #108111 from yselkowitz/nfs-provisioner-v3
test: bump nfs-provisioner to 3.0.1
2022-02-14 23:32:02 -08:00
Kubernetes Prow Robot
e42e2e877f
Merge pull request #107527 from wojtek-t/remove_selflink_ga
Graduate RemoveSelfLink to Stable
2022-02-14 19:46:02 -08:00
Kubernetes Prow Robot
64e83a7e43
Merge pull request #107945 from saschagrunert/cri-verbose
Add support for CRI `verbose` fields
2022-02-14 17:58:12 -08:00
Kubernetes Prow Robot
4e30fe40df
Merge pull request #108093 from hakman/remove_e2e_flag_container-runtime
Remove unused `--container-runtime` e2e.test flag
2022-02-14 14:04:31 -08:00
Kubernetes Prow Robot
1ae7da0b68
Merge pull request #108109 from eddiezane/ez/update-sig-cli-owners
Update sig-cli OWNERS
2022-02-14 12:06:30 -08:00
Yaakov Selkowitz
f44fdaca07 test: bump nfs-provisioner to 3.0.1
This is the first version built for multiple architectures.
2022-02-14 14:02:38 -05:00
Kubernetes Prow Robot
d374c954de
Merge pull request #108027 from neolit123/1.24-update-unversioned-kubelet-cm-fg
kubeadm: switch UnversionedKubeletConfigMap to true
2022-02-14 10:59:52 -08:00
Eddie Zaneski
040d575e9f
Update sig-cli OWNERS
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-02-14 10:55:35 -07:00
Wojciech Tyczyński
b62774f2f7 Couple remaining SelfLink references cleanup 2022-02-14 18:35:54 +01:00
Piotr Betkier
4c9d3d522f e2e: Fix ResourceConsumer unstable request interval
Setting a new consumption target in autoscaling.ResourceConsumer caused
the internal sleep duration between consumption requests to reset.
The next consumption would then get delayed, starting after a gap of 0-30s.
2022-02-14 13:08:17 +01:00
Kubernetes Prow Robot
b591acca57
Merge pull request #108047 from wojtek-t/fix_event_update
Fix validation of event updates
2022-02-14 02:27:28 -08:00
Wojciech Tyczyński
41ee6a3e44 Remove selflink integration tests 2022-02-14 11:11:56 +01:00
Kubernetes Prow Robot
21c0f6f6ff
Merge pull request #107677 from pohly/scheduler-integration-benchmark
scheduler integration benchmark improvements
2022-02-14 01:23:28 -08:00
Ciprian Hacman
7d5afb322d Remove unused --container-runtime e2e.test flag
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-14 08:49:56 +02:00
Matthias Bertschy
931f227ec1 Replace dbus-send with godbus for fake PrepareForShutdown message 2022-02-13 13:54:12 +01:00
Marko Mudrinić
980406f083
Update Go to 1.17.7
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-02-12 13:06:08 +01:00
Patrick Ohly
e1e84c8e5f scheduler_perf: run with -v=0 by default
This provides a mechanism for overriding the forced increase of the klog
verbosity to 4 when starting the apiserver and uses that for the scheduler_perf
benchmark. Other tests run as before.

A global variable was used because adding an explicit parameter to several
helper functions would have caused a lot of code churn (test ->
integration/util.StartApiserver ->
integration/framework.RunAnAPIServerUsingServer ->
integration/framework.startAPIServerOrDie).
2022-02-11 16:58:33 +01:00
Cheng Xing
b152fa9b6c Remove verult from OWNERS files 2022-02-10 18:25:38 -08:00
Wojciech Tyczyński
7314286efd Fix validation of event updates 2022-02-10 20:01:45 +01:00
Sascha Grunert
effbcd3a0a
Add support for CRI verbose fields
The remote runtime implementation now supports the `verbose` fields,
which are required for consumers like cri-tools to enable multi CRI
version support.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-02-10 17:12:26 +01:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Shu Muto
f9954d02c4 Delete test/e2e/ui/ 2022-02-10 14:48:02 +09:00
Kubernetes Prow Robot
0dcd6eaa0d
Merge pull request #103934 from boenn/tainttoleration
De-duplicate predicate (known as filter now) logic shared in kubelet and scheduler
2022-02-09 16:53:46 -08:00
Kubernetes Prow Robot
e74c42aaf2
Merge pull request #107880 from liggitt/kubectl-auth-token
Add command to request a bound service account token
2022-02-09 14:10:01 -08:00
Jordan Liggitt
19d71bb5d5 Validate and populate metadata fields in token request 2022-02-09 14:05:53 -05:00
Lubomir I. Ivanov
66a18df14c kubeadm: switch UnversionedKubeletConfigMap to true
- Graduate the feature gate to Beta and enable it by default.
- Pre-set the default value for UnversionedKubeletConfigMap
to "true" in test/e2e_kubeadm.
- Fix a couple of typos in "tolerate" introduced in the PR that
added the FG in 1.23.
2022-02-09 18:33:27 +02:00
Kubernetes Prow Robot
2047936f3f
Merge pull request #107552 from aojea/e2e_parse_misalignment
e2e test for CVE-2021-29923
2022-02-08 19:10:18 -08:00
Kubernetes Prow Robot
ab13c85316
Merge pull request #107983 from hxietkg/hxietkg/wget-for-windows
Remove option 'T' from wget on Windows
2022-02-08 12:43:01 -08:00
Kubernetes Prow Robot
24e5d1fdb7
Merge pull request #107432 from denkensk/graduate-nonpreemptingpriority-to-ga
Graduate NonPreemptingPriority to GA
2022-02-08 11:05:03 -08:00
Kubernetes Prow Robot
6ef0f3f620
Merge pull request #103642 from kerthcet/refactor/unreserve_test
refactor unreserve test
2022-02-08 02:36:53 -08:00
Alex Wang
541907334e graduate nonpreemptingpriority to ga 2022-02-08 18:11:23 +08:00
kerthcet
8243167013 refactor unreserve_test
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-08 11:37:56 +08:00
hxie
83974e4940 Remove option 'T' from wget on Windows
Command 'wget' in Windows image agnhost does not support option timeout,
this test fails:
  - should be able to up and down services
2022-02-07 00:38:07 -08:00
Patrick Ohly
c62d7407c8 scheduler_perf: dump test data when writing it failed
Occasionally, writing as JSON failed because a NaN float couldn't be
encoded. The extended log message helps understand where that comes from, for
example:

F0120 20:24:45.515745  511835 scheduler_perf_test.go:540] BenchmarkPerfScheduling: unable to write measured data {Version:v1 DataItems:[{Data:map[Average:35.714285714285715 Perc50:2 Perc90:36 Perc95:412 Perc99:412] Unit:pods/s Labels:map[Metric:SchedulingThroughput Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:27.863967530999993 Perc50:13.925925925925926 Perc90:30.06711409395973 Perc95:31.85682326621924 Perc99:704] Unit:ms Labels:map[Metric:scheduler_e2e_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:11915.651577744 Perc50:15168.796680497926 Perc90:19417.759336099585 Perc95:19948.87966804979 Perc99:20373.77593360996] Unit:ms Labels:map[Metric:scheduler_pod_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:1.1865832049999983 Perc50:0.7636363636363637 Perc90:2.891903719912473 Perc95:3.066958424507659 Perc99:5.333333333333334] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Filter]} {Data:map[Average:NaN Perc50:NaN Perc90:NaN Perc95:NaN Perc99:NaN] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Score]}]}: json: unsupported value: NaN
2022-02-07 08:59:19 +01:00
Patrick Ohly
8d44b819b3 scheduler_perf: avoid ambiguous test names
"-bench=PerfScheduling/Preemption/500Nodes" ran both the
PerfScheduling/Preemption/500Nodes and the
PerfScheduling/PreemptionPVs/500Nodes benchmark.

This can be avoided by choosing names where none is the prefix of another.
2022-02-07 08:59:19 +01:00
Patrick Ohly
259a8ad0b7 test: allow controlling etcd log level
When running an integration test that measures performance, like for example
test/integration/scheduler_perf, running etcd with debug level output is
undesirable because it creates additional load on the system and isn't
realistic.

The default is still "debug", but ETCD_LOGLEVEL=warn can be used to override
that.
2022-02-07 08:59:19 +01:00
Kubernetes Prow Robot
c1190f5aa2
Merge pull request #107935 from ravisantoshgudimetla/wire-contexts-disruption
Wire contexts to Disruption controllers
2022-02-04 10:08:13 -08:00
ravisantoshgudimetla
65ff81757d Wire contexts to Disruption controllers 2022-02-04 10:32:04 -05:00
Kubernetes Prow Robot
39931456db
Merge pull request #107740 from brianpursley/legacy-script-fixes
legacy-script.sh fixes - junit output and add missing record_command
2022-02-03 17:34:00 -08:00
Kubernetes Prow Robot
adbda068c1
Merge pull request #106015 from ahrtr/replace_ioutil_with_io_os_test
Replace ioutil with os and io for the test
2022-02-03 04:31:44 -08:00
Kubernetes Prow Robot
a5e70054bd
Merge pull request #107162 from ardaguclu/invalidate-cache-after-delete
Add manually invalidate cache documentation into delete
2022-02-02 23:51:45 -08:00
brianpursley
e120f11438 Change legacy-script.sh to produce junit output in location set by the
ARTIFACTS environment variables if KUBE_JUNIT_REPORT_DIR is not set.

Add missing record_command to a couple of tests in legacy-script.sh.

Fix some typos in /test/cmd/README.md
2022-02-02 21:51:15 -05:00
Kubernetes Prow Robot
baad1caee9
Merge pull request #107900 from smarterclayton/pr-107854
kubelet: Pods that have terminated before starting should not block startup
2022-02-02 15:51:45 -08:00
ahrtr
fe95aa614c io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
Kubernetes Prow Robot
2d0fa78f2f
Merge pull request #107915 from fromanirh/e2e-tm-cpum-check-node-allocatable
E2E: {cpu,topology} manager: improve debuggability
2022-02-02 10:40:18 -08:00
Francesco Romani
7004a718d9 e2e: node: {cpu,topo}mgr: round up test requirement
A cpu/topology manager e2e test wants to require one exclusive CPU
and a share of CPU time; let's round up the allocatable CPU requirements
(from 1 to 2) to reduce the chances of false negatives.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 15:17:09 +01:00
Francesco Romani
c92d9f7974 e2e: node: {cpu,topo}mgr: don't assume cpu capacity >= 2
Even though CI machines _usually_ have at least two cpus,
let's rather not assume this holds true, and let's actually
check the allocatable CPUs, skipping even the simplest
tests if the assumption is broken, to avoid false negatives.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 15:17:05 +01:00
Francesco Romani
2d1503dae3 e2e: node: {cpu,topo}mgr: make logic on allocatable
The existing cpu/topology manager tests correctly check for the
node resources and skip if the detected resources are not enough
to run the tests, to avoid false negatives.

Unfortunately they do the check against the node capacity, while
the correct approach is to check the allocatable resources.
The existing check is correct only on a narrow set of cases;
otherwise can still lead to false negatives.

This PR fixes that.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 14:10:46 +01:00
Francesco Romani
60585da68f e2e: node: {cpu,top}omgr: report node capacity/allocatable
Make sure to log out the cpu capacity and allocatable for
the node running the tests, to make the troubleshooting
of test failures easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-02-02 14:10:44 +01:00
Mike Miranda
c6d903eb27 Increase timeout for initial /stats/summary validation 2022-02-02 06:17:44 +00:00
Gunju Kim
7c3dd0eb7b
Add an e2e test for updating a static pod while it restarts 2022-02-01 13:22:56 -05:00
Jyoti Mahapatra
a1b52fb17a
extend sa token if audience is apiserver (#105954)
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com>
2022-01-31 16:01:52 -08:00
Kubernetes Prow Robot
1c03e36f9a
Merge pull request #107869 from justinsb/e2e_feature_must_be_square_bracketed
e2e: Feature tags must be in square brackets
2022-01-30 17:38:23 -08:00
Tim Hockin
e927ce85b6 service REST: Call Decorator(old) on update path
This is causing a bug when upgrading from older releases to 1.23 because
of Service's maybe-too-clever default-on-read logic.

Service depends on `Decorator()` to be called upon read, to
back-populate old saved objects which do not have `.clusterIPs[]` set.
This works on read, but the cache saves the pre-decorated type (as it is
documented)

In 1.23, this code was refactored and it seems some edge-case handling
was inadvertently removed (I have not confirmed exactly what happened).

Test by aojea
2022-01-30 11:25:17 -08:00
justinsb
a905d7bfaf e2e: Feature tags must be in square brackets
Otherwise the feature regexes that we use don't detect them.

This was relatively hidden because we don't have many e2e tests that
test multizone.
2022-01-30 13:10:04 -05:00
James Sturtevant
760b2e4477 Remove unsupported Windows SAC images from tests
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-01-28 10:59:37 -08:00
Kubernetes Prow Robot
83ca745412
Merge pull request #107797 from tkashem/revert-107456
Revert "Merge pull request #107456 from tkashem/apf-ssa"
2022-01-27 23:14:30 -08:00
Kubernetes Prow Robot
1c216c6ec8
Merge pull request #107777 from hxietkg/hxietkg/windows-numberofworkers-3
Increase number of workers to 3 for Windows
2022-01-27 20:50:30 -08:00
Kubernetes Prow Robot
f03c06ad57
Merge pull request #107796 from alexanderConstantinescu/agnhost-x-forwarded-for
Add request header retrieval to `agnhost netexec`
2022-01-27 04:54:25 -08:00
Alexander Constantinescu
0abaf68651 Add request header retrieval to agnhost netexec
Signed-off-by: Alexander Constantinescu <aconstan@redhat.com>
2022-01-27 12:52:15 +01:00
Kubernetes Prow Robot
3f6793de48
Merge pull request #107786 from shiftstack/fqdn_hostname_comparison
Ensure the execHostnameTest() compares hostnames
2022-01-27 00:58:02 -08:00
Kubernetes Prow Robot
2593f5ba17
Merge pull request #107794 from Jefftree/revert-107765-ssa-integration-enable
Revert "Populate OpenAPI in all integration tests"
2022-01-26 14:28:49 -08:00
Abu Kashem
8fb3333863
Revert "Merge pull request #107456 from tkashem/apf-ssa"
This reverts commit 6faa4f0010, reversing
changes made to 33a2c50bce.
2022-01-26 13:54:26 -05:00
Kubernetes Prow Robot
ea80a4581e
Merge pull request #107768 from mmiranda96/fix/stats-summary-timeout
Extend deadline for /stats/summary test
2022-01-26 10:40:00 -08:00
Jeffrey Ying
ecb9b620fe
Revert "Populate OpenAPI in all integration tests" 2022-01-26 13:30:03 -05:00
Martin André
363ad4c3b3 Ensure the execHostnameTest() compares hostnames
We do not have guarantee that the agnhost's `/hostname` endpoint returns
a hostname and not an FQDN. We also do not have guarantee a hostname
gets passed to the execHostnameTest() function for comparison.

So make sure we're comparing hostnames in execHostnameTest().
2022-01-26 11:16:18 +01:00
Martin André
5f809703a6 Revert "Fix comparison between FQDN and hostname"
This reverts commit 752a532c3d.
2022-01-26 11:09:27 +01:00
Kubernetes Prow Robot
25697c4812
Merge pull request #107753 from srikiz/fix-ingress-path-tests
fix ingress path for tests when ingress controller is already running
2022-01-26 01:30:25 -08:00
Kubernetes Prow Robot
dbb5e3fe86
Merge pull request #107663 from hakman/remove_container-runtime_test_scripts
Clean up logic for deprecated flag --container-runtime in scripts
2022-01-25 22:30:25 -08:00
Arda Güçlü
43d8b3459b Add manually invalidate cache documentation into delete
When CRDs are deleted, discovery local cache is not invalidated.
This brings about `resource not found` error when new CRD with same name is created
with different fields(ie. changing scope from cluster-wide to namespaced).
Because this already deleted CRD still stays in serverresources.json and kubectl tries to use it.

This local cached files have 10 minutes TTL. After deletion, if user waits 10 minutes,
files will be expired and deleted and there will be no errors. However, 10 minutes is a long time
and cache needs to be invalidated after deletion occurs.

This PR adds a document into delete command by noting that there might be a need to invalidate discovery
cache when CRD is deleted. In addition to that this PR adds a test to catch this behavior.
2022-01-26 09:01:46 +03:00
hxie
56382ddf16 Increase number of workers to 3 for Windows
Number of workers was set to be 1 because prallel probing on Windows is
flakier, network policy tests may get stuck, this symptom disappears on
the newest kubernetes, network poicy tests run very well with 3 workers.
2022-01-25 21:32:21 -08:00
Kubernetes Prow Robot
cd117abf19
Merge pull request #107763 from smarterclayton/wait_for_kuberoot_ca
e2e: Wait for kube-root-ca.crt to be created
2022-01-25 19:20:45 -08:00
Kubernetes Prow Robot
dee90598d2
Merge pull request #107525 from hxietkg/hxietkg/support-udp-for-windows
Support UDP test for netwpol on windows
2022-01-25 19:20:38 -08:00
Kubernetes Prow Robot
38e9a29620
Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
Remove dynamic kubelet config
2022-01-25 19:20:25 -08:00
Kubernetes Prow Robot
6a1de6b686
Merge pull request #107765 from Jefftree/ssa-integration-enable
Populate OpenAPI in all integration tests
2022-01-25 18:18:37 -08:00
Kubernetes Prow Robot
482f905d57
Merge pull request #107745 from pacoxu/cleanup-fail-earlier
fail if the runtime/kubelet process is not fetched
2022-01-25 18:18:26 -08:00
Mike Miranda
99e27b0f37 Extend deadline for /stats/summary test 2022-01-26 00:07:00 +00:00
Kubernetes Prow Robot
6e25590494
Merge pull request #107066 from acumino/cleanup/codeduplication
remove code duplication
2022-01-25 14:35:42 -08:00
Jefftree
eb8f6fe0f9 Populate OpenAPI in all integration tests 2022-01-25 14:16:31 -08:00
Kubernetes Prow Robot
1f05c78350
Merge pull request #107700 from sanposhiho/fix-error-log-namespace-not-found
Create namespace for Pod not to occur error log of namespace not-found
2022-01-25 13:34:05 -08:00
Clayton Coleman
b4aa9a189e
e2e: Wait only for the service account
Now that projected service account tokens do not require the secret
to be created, exclude the wait condition on the token and simply
wait for the service account.
2022-01-25 14:23:31 -05:00
Clayton Coleman
1608fc5e88
e2e: Wait for kube-root-ca.crt to be created
The change from service account secrets to projected tokens and
the new dependency on kube-root-ca.crt to start pods with those
projected tokens means that e2e tests can start before
kube-root-ca.crt is created in a namespace. Wait for the default
service account AND the kube-root-ca.crt configmap in normal
e2e tests.
2022-01-25 14:23:31 -05:00
Kubernetes Prow Robot
804630ed24
Merge pull request #107636 from kerthcet/refactor/initRegistryAndConfig
refactor initRegistryAndConfig function
2022-01-25 10:20:30 -08:00
kerthcet
fdaea59465 refactor initRegistryAndConfig function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-26 01:16:13 +08:00
sanposhiho
d8840405e2 Create namespace for Pod not to occur error log of namespace not-found 2022-01-26 00:39:12 +09:00
srikiz
b4dd9cb388 incorporate review comments 2022-01-25 20:11:12 +05:30
srikiz
430b8e6981 fix ingress path when validating webhook for ingress is in place while tests are running 2022-01-25 18:56:47 +05:30
Paco Xu
e71353c942 fail if the runtime/kubelet process is not fetched 2022-01-25 17:43:51 +08:00
Kubernetes Prow Robot
321b411784
Merge pull request #107088 from joejulian/dry-run-metadata
strip dry-run metadata unwanted fields
2022-01-24 14:31:15 -08:00
Wenli Wei
a2e0beb44b Adding reboot node testcase 2022-01-24 22:26:35 +08:00
acumino
13b6b2d92d remove code duplication 2022-01-23 17:30:51 +05:30
Kubernetes Prow Robot
2a2b294c99
Merge pull request #107644 from liggitt/integration-test-user-groups
Fix up integration test user groups
2022-01-22 04:17:52 -08:00
Lubomir I. Ivanov
8641897057 e2e/framework/test_context: add "control-plane" to non-blocking-taints
Having only the "master" taint in the list of non-blocking taints
blocks kubeadm / kind clusters from migrating to applying
both the "control-plane" and "master" taints in 1.24.
Add "control-plane" to the list of taints.

Leave TODO to cleanup the "master" taint in 1.25+.
It has to be removed either way as part of the inclusive
language cleanup efforts.
2022-01-21 14:12:49 +02:00
Kubernetes Prow Robot
c175418281
Merge pull request #107065 from saikat-royc/fix-node-stage-path
change node staging path for csi driver to PV agnostic
2022-01-21 01:31:58 -08:00
Saikat Roychowdhury
4a07657845 e2e test 2022-01-20 22:59:29 +00:00
Kubernetes Prow Robot
6faa4f0010
Merge pull request #107456 from tkashem/apf-ssa
apf: change controller to use SSA for patches
2022-01-20 13:44:29 -08:00
Ciprian Hacman
d01e9cedb1 Clean up logic for deprecated flag --container-runtime in scripts
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-20 11:19:08 +02:00
Imran Pochi
6071f6e8ab Addressing review comments
This commit is to be squashed and merged with the first commit.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2022-01-20 11:45:22 +05:30
Sergey Kanzhelev
7e7bc6d53b remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
Abu Kashem
d9f4d6507b
apf: change controller to use SSA for patches 2022-01-19 14:56:53 -05:00
Jordan Liggitt
57e0c5969b Fix integration test authenticators to include AllAuthenticated group 2022-01-19 13:21:05 -05:00
Kubernetes Prow Robot
e9e669aa60
Merge pull request #107276 from jlsong01/fix_flake_TestQuotaLimitService
Fix flake on TestQuotaLimitService
2022-01-19 09:38:05 -08:00
Lubomir I. Ivanov
1affaf42da test/e2e_kubeadm: update label/taint e2e tests for 1.24
- Reword old "master" label to "Legacy"
- Add new "control-plane" label
- Use new label to count CP nodes
- Check for both taints on CP nodes
- Leave TODOs for 1.25
2022-01-19 18:28:37 +02:00
Kubernetes Prow Robot
657146e775
Merge pull request #107572 from MikeSpreitzer/add-flowschema-condition-test
Test isolation among FlowSchemaStatus Conditions
2022-01-19 06:34:06 -08:00
jlsong01
3006aa534b fix flake on TestQuotaLimitService 2022-01-19 21:58:57 +08:00
Kubernetes Prow Robot
4def789949
Merge pull request #107548 from lzhecheng/fix-topology-hint-test
Fix topology hints test
2022-01-19 00:26:18 -08:00
Zhecheng Li
9292742821 Fix topology hints test
* It should check one Node in a zone instead of
each Node and its fromZone.
* Check Nodes' CPUs if they are equivalent

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
2022-01-19 10:33:26 +08:00
Kubernetes Prow Robot
6989e2169f
Merge pull request #107564 from aojea/funnyips_etcd_data
integration test: API allow IPs with leading zeros
2022-01-18 17:18:05 -08:00
hxie
ac0f2e48ad Support UDP test for netwpol on windows 2022-01-18 17:02:18 -08:00
Kubernetes Prow Robot
32f83b2b60
Merge pull request #107595 from wzshiming/test/skip_not_found_cmd
Skip tests when no signal emitting command
2022-01-18 16:14:05 -08:00
Varsha Teratipally
94ff5ea1f1 change default container-runtime-endpoint to containerd.sock 2022-01-18 22:00:31 +00:00
Kubernetes Prow Robot
ba1fc6f83c
Merge pull request #107612 from palnabarun/releng/go-update
[go] update to Go 1.17.6
2022-01-18 12:02:34 -08:00
Kubernetes Prow Robot
feb758027c
Merge pull request #106907 from cyclinder/remove_dockershim_flags
Clean up dockershim flags in the kubelet
2022-01-18 09:09:09 -08:00
Nabarun Pal
77816bd9b1
[go] update to Go 1.17.6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-01-18 14:35:24 +05:30
Antonio Ojea
ea130181a3 test integration: API allow IPs with leading zeros 2022-01-18 09:45:54 +01:00
Mike Spreitzer
23af47395b Test isolation among FlowSchemaStatus Conditions 2022-01-17 15:43:37 -05:00
Shiming Zhang
00790153b2 Skip tests when no signal emitting command 2022-01-17 16:03:28 +08:00
Kubernetes Prow Robot
8815a3119c
Merge pull request #107517 from mason1kwok/removes-test-skiper
Removes code that was not completely cleared before
2022-01-16 09:03:28 -08:00
Kubernetes Prow Robot
a4931cc411
Merge pull request #107551 from wojtek-t/remove_unused_selflink_test_references
Remove unused selflink references in different testing-related files
2022-01-14 16:49:40 -08:00
Jiahui Feng
c56bbda368 fix containers order after applying
to be appending instead of prepending.
2022-01-14 11:15:54 -08:00
Antonio Ojea
ac9eec0093 e2e test for CVE-2021-29923
The e2e test checks that the component implementing Kubernetes Services
interprets ClusterIPs with leading zeros as decimal, otherwise the
cluster will be exposed to CVE-2021-29923.
2022-01-14 16:58:29 +01:00
Kubernetes Prow Robot
4e1306ca79
Merge pull request #107540 from dims/validate-owners-files-remove-sections-on-emeritus-reviewers
Validate OWNERS files - remove sections about emeritus reviewers
2022-01-14 07:03:50 -08:00
cyclinder
07999dac70 Clean up dockershim flags in the kubelet
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-14 16:02:50 +02:00
Wojciech Tyczyński
551790729f Remove selflink references in different testing-related files 2022-01-14 12:58:05 +01:00
Kubernetes Prow Robot
e95eda5213
Merge pull request #107528 from sayaoailun/test-e2e-apps-cronjob
It is weird that lastScheduleTime is earlier than creationTime
2022-01-13 21:14:27 -08:00
Davanum Srinivas
8d43d0bc24
Validate OWNERS files - remove sections about emeritus reviewers
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-13 20:40:01 -05:00
Kubernetes Prow Robot
3bd422dc76
Merge pull request #107293 from dims/jan-1-owners-cleanup
Cleanup OWNERS files - Jan 2021 Week 1
2022-01-13 10:30:30 -08:00
mason1kwok
5307ae7159 cleanup code from critical_pod_test 2022-01-13 14:44:05 +08:00
sayaoailun
f2d585e356 It is weird that lastScheduleTime is earlier than creationTime
Signed-off-by: sayaoailun <guojianwei007@126.com>
2022-01-13 14:07:38 +08:00
Kubernetes Prow Robot
dad0c48959
Merge pull request #106594 from pohly/log-benchmark
logs: add benchmark
2022-01-12 18:01:08 -08:00
Kubernetes Prow Robot
8c69e5d25b
Merge pull request #107361 from wzshiming/test/skip
Skip tests when no signal emitting command
2022-01-12 14:21:38 -08:00
Kubernetes Prow Robot
5bfc4286ee
Merge pull request #106943 from wojtek-t/graduate_watch_resumption_to_ga
Graduate EfficientWatchResumption feature to GA
2022-01-12 06:06:36 -08:00
sayaoailun
36697d2e5d fix comment of e2e test case garbage_collector
Signed-off-by: sayaoailun <guojianwei007@126.com>
2022-01-12 10:59:13 +08:00
Kubernetes Prow Robot
f8bb35d76e
Merge pull request #107448 from saschagrunert/apparmor-e2e
Fix AppArmor unloaded profile e2e test
2022-01-11 12:23:15 -08:00
Kubernetes Prow Robot
9cb26b7a07
Merge pull request #107472 from alculquicondor/patch-3
Remove skip Multi-AZ test based on provider
2022-01-11 10:49:09 -08:00
Kubernetes Prow Robot
8f453c9d79
Merge pull request #107044 from pohly/cli-invalid-command
cli: avoid logging command line errors in more cases
2022-01-11 09:46:37 -08:00
Kubernetes Prow Robot
d05e5c0e41
Merge pull request #107408 from awels/allow_greater_or_equal_capacity_in_provisioning_check
Allow greater or equal in storage provisioning check
2022-01-11 08:33:28 -08:00
Aldo Culquicondor
3f0de6b80e
Remove skip Multi-AZ test based on provider
The test only cares if there are multiple zones and that is independent of the provider
2022-01-11 10:38:41 -05:00
fengzixu
f202164c87 fix e2e test 2022-01-11 13:50:17 +00:00
fengzixu
ed7fd0ced5 add volumeHealth label to metrics 2022-01-11 13:50:17 +00:00
fengzixu
bab1755274 fix: correct metrics expression 2022-01-11 13:50:17 +00:00
Patrick Ohly
a5a241e0df logs: update expected output for multi-line test case
The multiline support has been merged while this benchmark was written. We now
get the output that we want, with line breaks.
2022-01-11 09:57:03 +01:00
Patrick Ohly
25c646cbdd json: never call fsync for stdout or stderr
We don't need to worry about data loss once the data has been written to an
output stream. Calling fsync unnecessarily has been the reason for performance
issues in the past.
2022-01-11 09:56:22 +01:00
Patrick Ohly
9a867c555c logs: benchmark write performance
The recent regression https://github.com/kubernetes/kubernetes/issues/107033
shows that we need a way to automatically measure different logging
configurations (structured text, JSON with and without split streams) under
realistic conditions (time stamping, caller identification).

System calls may affect the performance and thus writing into actual files is
useful. A temp dir under /tmp (usually a tmpfs) is used, so the actual IO
bandwidth shouldn't affect the outcome. The "normal" json.Factory code is used
to construct the JSON logger when we have actual files that can be set as
os.Stderr and os.Stdout, thus making this as realistic as possible.

When discarding the output instead of writing it, the focus is more on the rest
of the pipeline and changes there can be investigated more reliably.

The benchmarks automatically gather "log entries per second" and "bytes per
second", which is useful to know when considering requirements like the ones
from https://github.com/kubernetes/kubernetes/issues/107029.
2022-01-11 09:56:22 +01:00
Patrick Ohly
b8501fc10b logs: work around logcheck
logcheck complains:
Additional arguments to ErrorS should always be Key Value pairs. Please check if there is any key or value missing.

That check is intentional, but not applicable here. The check can be worked
around by calling the functions through variables.
2022-01-11 09:56:22 +01:00
Patrick Ohly
072859c967 logs: create separate test/integration directory
The benchmark depends on k8s.io/api (for v1.Container). Such a dependency is
not desirable for k8s.io/component-base/logs, even if it's just for
testing. The solution is to create a separate directory where such a dependency
isn't a problem.

The alternative, a separate package with its own go.mod file under
k8s.io/component-base/logs wouldd have been more complicated to maintain (yet
another go.mod file and different whitelisted dependencies).
2022-01-11 09:56:22 +01:00
Patrick Ohly
798bdab3d0 kubectl: add integration test for result reporting
This currently covers two cases:
- "kubectl list" (the regression from https://github.com/kubernetes/kubernetes/issues/107012)
- "kubectl get pods/no-such-pod" (no particular reason except that the output
should be deterministic)

In contrast to some other tests that check for strings inside the
output (run_deprecated_api_tests) or compare after
sorting (run_kubectl_version_tests), stdout, stderr and the return code must
match exactly.

This ensures that there is no extra, unexpected output and that the right
output stream is used.
2022-01-11 09:04:56 +01:00
Kubernetes Prow Robot
ca4af7a981
Merge pull request #104716 from sanposhiho/feature/scheduler_perf/unused-template-params
test/integration/scheduler_perf: check for unused template parameters
2022-01-10 16:21:16 -08:00
Antonio Ojea
742dd6b9c7 use a community owned domain for the invalid registry 2022-01-10 19:37:46 +01:00
Patrick Ohly
a5d2d6fec3 cli: let kubectl handle error printing
cli.Run was an attempt to elliminate error handling in Kubernetes
commands. However, it had to rely on heuristics that are not necessarily right
for all commands.

kubectl is one example which has its own error printing code that should be
used in all cases after a command failure. It now gets used also for
`--warnings-as-errors`. Previously, that caused the following message to be
logged at the end:

  E0110 16:56:01.987555  202060 run.go:120] "command failed" err="1 warning received"

Now it ends with:

 error: 1 warning received
2022-01-10 17:09:30 +01:00
Davanum Srinivas
9682b7248f
OWNERS cleanup - Jan 2021 Week 1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-10 08:14:29 -05:00
Alexander Wels
8e29bb0454
Update test/e2e/storage/testsuites/provisioning.go
Add missing brackets

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2022-01-10 07:00:21 -06:00
Alexander Wels
59dcddae47
Update test/e2e/storage/testsuites/provisioning.go
Add missing brackets.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2022-01-10 07:00:03 -06:00
Sascha Grunert
fcca81aeae
Fix AppArmor unloaded profile e2e test
With the removal of the kubelet AppArmor profile validation in
https://github.com/kubernetes/kubernetes/pull/97966 we passed the
responsibility of the desired behavior to the container runtime.
Therefore we have to change the e2e test which silently broke after the
PR merge.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-01-10 13:22:11 +01:00
zk
fb372d0798 Update etcdRequestLatency metrics bucket size 2022-01-09 23:45:09 +08:00
Kubernetes Prow Robot
559091ba4f
Merge pull request #107339 from andrewsykim/internal-traffic-policy-external-name-validation
Add Service integration tests for internalTrafficPolicy when Type=ExternalName
2022-01-09 02:47:12 -08:00
Kubernetes Prow Robot
d2c9456963
Merge pull request #106287 from Dragoncell/update_cadvisor_version
update cadvisor version in test
2022-01-08 15:50:19 -08:00
Jiaming Xu
d6d63b44fa update cadvisor version in test
update NodePrePullImageList

fix conflicts

fix conflicts

remove script

add cadvisor as dependency

address comments
2022-01-07 22:29:12 +00:00
Alexander Wels
2102769c14 Allow greater or equal in storage provisioning check
The current check enforces that a dynamic provisioner creates
persistent volumes of capacity equals to the persistent volume
claim request size. However there are provisioners that will
create persistent volumes with a capacity greater than the
request size (cinder comes to mind which increments in 1Gi
increments, so if you request 0.5Gi, you get 1Gi). Also
provisioners that have shared storage should be reporting the
total space not the request size (nfs/hostpath for instance).

All these will fail the provisioning check currently because
the capacity is > than the request size. This modifies the check
to be capacity >= request size.

Signed-off-by: Alexander Wels <awels@redhat.com>
2022-01-07 08:29:13 -06:00
Kubernetes Prow Robot
595bc88f17
Merge pull request #107392 from johngmyers/ipv6-echoserver
Support IPv6 in echoserver
2022-01-06 18:50:35 -08:00
Kubernetes Prow Robot
1007fb9e95
Merge pull request #107338 from bostrt/e2e-check-multi-zone
Skip tests unless multizone
2022-01-06 18:50:28 -08:00
Joe Julian
60c1d58d02
remove unwanted values returned from dry-run
Remove the uid and the resourceVersion from dry-run results per kep 576

https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values
2022-01-06 15:44:05 -08:00
Joe Julian
48994c1518
add test to dry-run for unwanted generated values
[kep 576, dry
run](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values), states:

```
The UID and the generated name would have a different value in a dry-run and non-dry-run creation. These values will be left empty when performing a dry-run.
```

and

```
ResourceVersion will also be left empty on creation
```

This tests ensures this behavior.
2022-01-06 15:08:09 -08:00
Kubernetes Prow Robot
858895da81
Merge pull request #103252 from pacoxu/defer-fix
custom-metrics: do cleanup even if the creation is not full succeed
2022-01-06 12:50:00 -08:00
Kubernetes Prow Robot
8c9837ed0f
Merge pull request #106624 from Ahmed-Aghadi/codeEnhanceCommonStorage
test/e2e/common/storage: enhance assertions
2022-01-06 08:57:25 -08:00
Kubernetes Prow Robot
a18b0272e6
Merge pull request #103967 from pacoxu/probe-warning
add probe warning message body for terminated redirect
2022-01-06 08:57:01 -08:00
John Gardiner Myers
55201f9c4a Support IPv6 in echoserver 2022-01-05 21:48:25 -08:00
Shiming Zhang
3516e76f3d Skip tests when no signal emitting command 2022-01-06 11:38:36 +08:00
Kubernetes Prow Robot
1c2f24f106
Merge pull request #107349 from Riaankl/add-HPA-1
Update ineligible_endpoints.yaml to include HPA
2022-01-05 19:08:48 -08:00
Kubernetes Prow Robot
2b0ddeb23b
Merge pull request #106621 from shuheiktgw/check_private_ssh_key_existence
Check the private SSH key existence in the node e2e tests
2022-01-05 18:06:35 -08:00
Kubernetes Prow Robot
691e89a917
Merge pull request #107312 from mauriciopoppe/e2e-test-sync-before-snapshot
Execute sync before taking the snapshot
2022-01-05 14:56:11 -08:00
Kubernetes Prow Robot
e045e5c875
Merge pull request #107337 from derek-pryor/vsphere-session-leak
Fix the leak of vSphere client sessions
2022-01-05 13:54:36 -08:00
Kubernetes Prow Robot
faf1590950
Merge pull request #107179 from hakman/remove_dockershim_tests
Clean up dockershim in tests
2022-01-05 13:54:21 -08:00
Riaan Kleinhans
d42d547f0f
Update ineligible_endpoints.yaml 2022-01-06 09:52:27 +13:00
Andrew Sy Kim
aead636249 add integration test validating that converting a Service to ExternalName results in the field being dropped on read
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
9c3c3d8a3a add integration test to validate that ExternalName Services can set internalTrafficPolicy, but the field is dropped on read
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
7aa20122bc add integration test to check that Service internalTrafficPolicy is no longer defaulting when Type is ExternalName
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Kubernetes Prow Robot
adfc35d249
Merge pull request #107200 from pacoxu/test/cronjob-conflict-flake
flake: remove the error handler for cronjob integration test
2022-01-05 09:23:09 -08:00
Mauricio Poppe
50b2ec2add Execute sync before taking the snapshot 2022-01-05 01:22:22 +00:00
Kubernetes Prow Robot
84f1d6834f
Merge pull request #106619 from chendave/ga
Graduate `PreferNominatedNode` to GA
2022-01-04 15:21:19 -08:00
Robert Bost
9ab07e1814 Skip tests unless multizone 2022-01-04 15:26:11 -07:00
Kubernetes Prow Robot
710cc5c2a1
Merge pull request #106283 from SergeyKanzhelev/noMoreScalabilityTests
There are no more Feature:Performance tests any longer, removing the …
2022-01-04 13:06:26 -08:00
Kubernetes Prow Robot
2036bf0ba3
Merge pull request #106856 from pmorie/cronjob-e2e-typo
conformance: correct typo for cronjob forbidconcurrent
2022-01-04 11:27:14 -08:00
Imran Pochi
61c4732c71 Revert "Merge pull request #104308 from ehashman/revert-103608-imran/e2e-lock-contention"
This reverts commit 9d09c9d246

This E2E test was reverted becuase the test was failing continously.
More on the issue here #104307

This commit re-reverts and brings back the LockContention test, with
the addition of [Serial] tag to the test.
2022-01-04 07:34:07 +05:30
Kubernetes Prow Robot
7c013c3f64
Merge pull request #106200 from NikhilSharmaWe/betterOutputAutoscaling
Changed code to improve output for files under test/e2e/autoscaling
2021-12-29 16:30:49 -08:00
Kubernetes Prow Robot
1df88a8a42
Merge pull request #107137 from crisboarna/feat/101172_windows-sync-cleanup
chore(kubectl_utils): remove windows specifc command addition for sync
2021-12-24 04:30:15 -08:00
Paco Xu
fd099ffaf2 flake fix: remove the error handler for cronjob integration test 2021-12-23 16:50:12 +08:00
Kubernetes Prow Robot
a6299aa2ab
Merge pull request #107173 from mauriciopoppe/fix-snapshot-refactor
Fix order of commands in the snapshot tests for persistent volumes
2021-12-22 15:54:36 -08:00
Ciprian Hacman
a0abe5aa33 Clean up dockershim in tests
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2021-12-22 13:05:34 +02:00
Mauricio Poppe
028de6a8cb Fix order of commands in the snapshot tests for persistent volumes 2021-12-22 00:14:45 +00:00
Kubernetes Prow Robot
ba8410ea5f
Merge pull request #106821 from justinsb/use_non_deprecated_zone_selector
e2e: Stop using deprecated zone nodeSelector
2021-12-21 15:59:47 -08:00
Derek Pryor
70e0f8197a
Fix the leak of vSphere client sessions
Implement the test cleanup callback method to close any open vSphere
client connections. Without this clean up sessions were leaking during
testing.
2021-12-21 14:07:53 -08:00
Kubernetes Prow Robot
d76c1c56c7
Merge pull request #106831 from gxglls/master
docs: fix error link path in storage e2e test doc
2021-12-21 12:44:12 -08:00
Kubernetes Prow Robot
d56558ecaf
Merge pull request #106822 from justinsb/log_volume_when_creating_volume
e2e tests: log zone when creating volume
2021-12-21 12:44:01 -08:00
Cristian Boarna
bcb7b938a6 feat(netpol tests): added netpol probeConnectivity args improvement 2021-12-21 12:32:09 +02:00
Cristian Boarna
e755c1cf2a chore(kubectl_utils): remove windows specifc command addition for sync 2021-12-20 14:24:52 +02:00
Fabio Bertinatto
434741ecb7 Don't log vSphere configuration data in storage e2e tests 2021-12-20 09:20:57 -03:00