Commit Graph

115852 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
926bb80f5d
Merge pull request #117644 from humblec/etcd-1
correct etcd base image reference in the doc
2023-04-27 07:22:17 -07:00
Patrick Ohly
b3e0bc8864 scheduler_perf: let the test decide which informers are needed
This will change when adding dynamic resource allocation test cases. Instead of
changing mustSetupScheduler and StartScheduler for that, let's return the
informer factory and create informers as needed in the test.
2023-04-27 15:31:40 +02:00
Patrick Ohly
969d28b12b scheduler_perf: refactor common code 2023-04-27 15:31:37 +02:00
Humble Chirammal
91df71be54 correct etcd base image reference in the doc
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-27 18:11:39 +05:30
Kubernetes Prow Robot
041bb9a56c
Merge pull request #117534 from Mskxn/fix_watcher
stop watcher when error occurs
2023-04-27 04:56:14 -07:00
Humble Chirammal
6b40cd8cd3 update test/conformance/image version to v1.4.2
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-27 17:08:04 +05:30
Humble Chirammal
6c8be35fa8 update the etcd base image to v1.4.2
The current base v1.3.0 has many CVEs[1] which are addressed in latest
versions of the bullseye

[1] ex:
CVE-2022-2509
CVE-2021-46828

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-27 17:06:54 +05:30
Wojciech Tyczyński
1eca720dcc Refactor some watchcache tests 2023-04-27 13:06:01 +02:00
Kubernetes Prow Robot
78b56ce16d
Merge pull request #116570 from SataQiu/fix-kubeadm-20230314
kubeadm: support upgrade coredns and kube-proxy addons after all the control plane instances have been upgraded
2023-04-27 01:44:26 -07:00
Kubernetes Prow Robot
87f3acf7f6
Merge pull request #115398 from tangwz/add_NodeVolumeLimits_PreFilter
feat(NodeVolumeLimits): return Skip in PreFilter
2023-04-27 01:44:14 -07:00
Mengjiao Liu
7f370d651d Migrated pkg/scheduler/framework/plugins/podtopologyspread to contextual logging 2023-04-27 15:55:09 +08:00
Mengjiao Liu
54e6f609ce Migrated pkg/scheduler/framework/plugins/noderesources to contextual logging 2023-04-27 14:46:13 +08:00
Kubernetes Prow Robot
3554bcde87
Merge pull request #117368 from sunnylovestiramisu/fix
Fix nil pointer in test AfterEach for volumeperf.go
2023-04-26 21:54:14 -07:00
mowangdk
152c1a0272 Chore: Replace re-initialized variables with create new ones 2023-04-27 12:18:18 +08:00
Mengjiao Liu
37a9260d5c Migrate pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go to use contextual logging 2023-04-27 11:28:19 +08:00
Mengjiao Liu
eeb1399383 Migrated pkg/scheduler/framework/preemption to use contextual logging 2023-04-27 11:28:14 +08:00
Kubernetes Prow Robot
8ae8e77560
Merge pull request #117593 from jpbetz/test-join
Fix bug where CEL listOfString.join() results in unexpected error
2023-04-26 16:10:13 -07:00
Kubernetes Prow Robot
dd62a53e1a
Merge pull request #117196 from pohly/scheduler-perf-labels
scheduler_perf: support test case selection via labels
2023-04-26 14:26:14 -07:00
Kubernetes Prow Robot
7adcb3cb37
Merge pull request #117306 from marosset/update-go-winio-dep
updating microsft/go-winio package to latest version
2023-04-26 13:04:14 -07:00
Kubernetes Prow Robot
569788cb20
Merge pull request #117619 from SataQiu/code-clean-20230426
Code clean up for kubeadm
2023-04-26 12:04:27 -07:00
Kubernetes Prow Robot
c5c2806e23
Merge pull request #117571 from seans3/agg-discovery-fix
Fixes bug when extra params added to discovery content-type
2023-04-26 12:04:15 -07:00
Patrick Ohly
550d4c0074 scheduler_perf: support test case selection via labels
Entire test cases and workloads can have labels attached to them. The union of
these must match the label filter which works as in GitHub. The benchmark by
default runs the tests that are labeled "performance", which is the same as
before.
2023-04-26 21:01:31 +02:00
Kubernetes Prow Robot
928adb27ab
Merge pull request #116191 from aojea/spdy_passthrugh
improve remotecommand testing fuzzing the data stream
2023-04-26 10:22:27 -07:00
Julianne DeMars
217196c59f
Add ROX storage tests (#114628)
* Add ROX tests

* Add capability and switch to secpod

* addmissing file

* remove extra param

* run-formatter

* add anticapability for resize w/ Restore + ROX

* remove size checking in ROX tests

* fix spacing

* fix spacing
2023-04-26 10:22:16 -07:00
kannon92
6a4cf352b8 remove tracking annotation from validation and webhooks 2023-04-26 17:16:05 +00:00
Sean Sullivan
2af662b05f Refactors discovery content-type and helper functions 2023-04-26 17:09:50 +00:00
Kubernetes Prow Robot
afeb78fd8f
Merge pull request #117605 from andrewsykim/update-ccm-version
cluster/gce: update cloud-provider-gcp image to latest tagged version
2023-04-26 08:56:27 -07:00
Kubernetes Prow Robot
22216b8ada
Merge pull request #117280 from humblec/coredns
dependencies: update coredns/caddy to v1.1.0
2023-04-26 08:56:14 -07:00
SataQiu
170d5ef9fa code cleanup for kubeadm 2023-04-26 23:51:39 +08:00
Kubernetes Prow Robot
c4f6c47169
Merge pull request #117594 from tosi3k/sched-regression
Fix scheduler performance regression after adding plugin metrics
2023-04-26 07:38:13 -07:00
Joe Betz
902c4ecc90 Add jpbetz to approvers of apiextensions-apiserver 2023-04-26 09:55:06 -04:00
Swati Sehgal
0a58243159 node: device-plugin: e2e: Add test case for kubelet restart
Capture explicitly a test case pertaining to kubelet restart
but with no pod restart and device plugin re-registration.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-26 15:33:00 +02:00
Swati Sehgal
0910080472 node: device-plugin: e2e: Provide sleep intervals via constants
Based on whether the test case requires pod restart or not, the sleep
interval needs to be updated and we define constants to represent the two
sleep intervals that can be used in the corresponding test cases.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Co-authored-by: Francesco Romani <fromani@redhat.com>
2023-04-26 15:32:59 +02:00
Swati Sehgal
4a0f7c791f node: device-plugin: e2e: Update test description to make it explicit
Explicitly state that the test involves kubelet restart and device plugin
re-registration (no pod restart)

We remove the part of the code where we wait for the pod to restart as this
test case should no longer involve pod restart.

In addition to that, we use `waitForNodeReady` instead of `WaitForAllNodesSchedulable`
for ensuring that the node is ready for pods to be scheduled on it.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Co-authored-by: Francesco Romani <fromani@redhat.com>
2023-04-26 15:32:57 +02:00
Swati Sehgal
fd459beeff node: device-plugin: e2e: Isolate test to pod restart scenario
Rather than testing out for both pod restart and kubelet restart,
we change the tests to just handle pod restart scenario.

Clarify the test purpose and add extra check to tighten the test.

We would be adding additional tests to cover kubelet restart scenarios
in subsequent commits.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-04-26 15:32:54 +02:00
Swati Sehgal
5ab4ba6205 node: device-plugin: e2e: Annotate device check with error message
With this change the error message are more helpful and easier
to troubleshoot in case of test failures.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-26 15:32:21 +02:00
Swati Sehgal
5c4f397361 node: device-plugins: e2e: s/devLen/expectedSampleDevsAmount
We rename to make the intent more explicit;
We make it global to be able to reuse the value all across the module
(e.g. to check the node readiness) later on.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Co-authored-by: Francesco Romani <fromani@redhat.com>
2023-04-26 15:32:16 +02:00
Swati Sehgal
0aa6a5726a node: device-plugins: e2e: Refactor parse log to return string and error
Rather than only returning a string forcing us to log failure with
`framework.Fail`, we return a string and error to handle error cases
more conventionally. This enables us to use the `parseLog` function
inside `Eventually` and `Consistently` blocks, or in general to delegate
the error processing and enable better composability.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Co-authored-by: Francesco Romani <fromani@redhat.com>
2023-04-26 15:31:16 +02:00
Kubernetes Prow Robot
0b53923a7a
Merge pull request #117286 from humblec/e2e-improvements
remove `expansionFailed` const in volume expansion and avoid var name collision
2023-04-26 06:16:13 -07:00
tangwz
8ed861889a feat(NodeVolumeLimits): return Skip in PreFilter 2023-04-26 20:17:04 +08:00
Antoni Zawodny
28519e240e Fix scheduler performance regression after adding plugin metrics 2023-04-26 14:11:48 +02:00
charles-chenzz
c96188a38b remove seccomp profile path 2023-04-26 20:08:06 +08:00
Andrew Sy Kim
96eaed9980 cluster/gce: update cloud-controller-manager to use go-runner
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-04-26 11:17:28 +00:00
Andrew Sy Kim
0d27d3cfff cluster/gce: update cloud-provider-gcp image to latest tagged version
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-04-26 11:13:29 +00:00
Sascha Grunert
4cdfe600e0
Fix image pull error type ErrRegistryUnavailable
The current error comparison `imagePullResult.err ==
ErrRegistryUnavailable` will never work with any remote runtime, because
we produce gRPC errors which wrap a code and a description, like:

```
rpc error: code = Unknown desc = This is the error description
```

To be able to check custom error types from `pkg/kubelet/images/types.go`,
we now strip the code if the status is unknown on image pull.

Beside that, we use a string comparison to check against
`ErrRegistryUnavailable.Error()`, because validating them via the
`errors` package is not yet supported by grpc-go:
https://github.com/grpc/grpc-go/issues/3616

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-04-26 11:02:47 +02:00
Humble Chirammal
6da128bdb3 dependencies: go.uber.org/atomic v1.10.0
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-26 14:08:20 +05:30
Humble Chirammal
8723057880 dependencies: update go.uber.org/multierr v1.11.0
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-26 14:02:34 +05:30
Kubernetes Prow Robot
806b30170c
Merge pull request #117603 from brianpursley/api-resources-help-typo
Fix typo in kubectl api-resources help text for --categories flag
2023-04-26 01:02:16 -07:00
mowangdk
f7ce6f834a Chore: add ipfamilies tweak functions 2023-04-26 15:03:08 +08:00
Patrick Ohly
78b8af9fed scheduler_perf: update throughputCollector
The previous solution had some shortcomings:

- It was based on the assumption that the goroutine gets woken up at regular
  intervals. This is not actually guaranteed. Now the code keeps track of the
  actual start and end of an interval and verifies that assumption.

- If no pod was scheduled (unlikely, but could happen), then
  "0 pods/s" got recorded. In such a case, the metric was always either
  zero or >= 1. A better solution is to extend the interval
  until some pod gets scheduled. With the larger time interval
  it is then possible to also track, for example, 0.5 pods/s.
2023-04-26 08:11:50 +02:00