Commit Graph

115766 Commits

Author SHA1 Message Date
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
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
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
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
Mohit Sharma
a325fdbbe5
update Deps gopkg.in/natefinch/lumberjack.v2 v2.0.0 to v2.2.1 2023-04-26 10:22:03 +05:30
Kubernetes Prow Robot
0471518d50
Merge pull request #116512 from aditya-K2/docs-edit
update `kubectl edit` documentation
2023-04-25 18:18:15 -07:00
Msk233
da3e7e3781 stop watcher when error occurs 2023-04-26 09:04:33 +08:00
Brian Pursley
6d8a0100f7 Fix typo in kubectl api-resources help text for --categories flag 2023-04-25 20:26:10 -04:00
Joe Betz
a4f98e4c1e
Update staging/src/k8s.io/apiserver/pkg/cel/common/values.go
Co-authored-by: Alvaro Aleman <alvaroaleman@users.noreply.github.com>
2023-04-25 14:22:01 -07:00
Joe Betz
e115d5234c Fix bug where CEL listOfString.join() results in unexpected error 2023-04-25 16:18:25 -04:00
Kubernetes Prow Robot
e9e60316d3
Merge pull request #117584 from wojtek-t/move_cacher_lister
Refactor cacher.ListerWatcher code structure
2023-04-25 12:04:16 -07:00
Kubernetes Prow Robot
ff1e3ee26e
Merge pull request #117558 from wojtek-t/remove_multi_lock
Remove support for EndpointsLeases and ConfigMapsLeases lock from leader election
2023-04-25 11:06:16 -07:00
Wojciech Tyczyński
2bd42061b6 Remove support for EndpointsLeases and ConfigMapsLeases lock from leader election 2023-04-25 19:12:04 +02:00
Kubernetes Prow Robot
d94eceea70
Merge pull request #117404 from saschagrunert/saschagrunert-node-reviewer
Add `saschagrunert` to `sig-node-reviewers`
2023-04-25 10:06:16 -07:00
Wojciech Tyczyński
3f247e59ed Refactor cacher.ListerWatcher code structure 2023-04-25 19:03:52 +02:00
Kubernetes Prow Robot
b925ce2446
Merge pull request #117350 from mohitsharma-in/update/google-golang-protobuf
Dependencies: Update google.golang.org/protobuf v1.30.0
2023-04-25 09:06:29 -07:00
Sheng Zhan
892ebf2d25
Ensure version "*" is passed instead of "" for all authz checks (#116937)
* ensure version * is passed instead of  for all authz checks

* unexport match function

* remove allversion constant
2023-04-25 09:06:18 -07:00
Kubernetes Prow Robot
c471f03ea3
Merge pull request #117582 from wojtek-t/more_generic_tests_for_cacher
Enable a bunch of generic storage tests for watchcache.
2023-04-25 07:30:16 -07:00
SataQiu
e3d84aa93c kubeadm: add the experimental (alpha) feature gate UpgradeAddonsAfterControlPlane that supports upgrade coredns and kube-proxy addons after all the control plane instances have been upgraded 2023-04-25 22:12:50 +08:00
Kubernetes Prow Robot
1d116c437c
Merge pull request #117578 from SataQiu/drop-v1.25.0-testdata
Drop v1.25.0 API testdata
2023-04-25 06:34:15 -07:00
Stephen Kitt
78e6cb1ccc
intstr: add FromInt32, deprecate FromInt
This makes the source type explicit (without renaming the whole type),
and allows simpler construction.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-04-25 14:53:16 +02:00
Kubernetes Prow Robot
3125009dd1
Merge pull request #115487 from tongpu/docs/roleRef_immutable
Add a comment to document that roleRef is immutable
2023-04-25 03:36:27 -07:00
Kubernetes Prow Robot
b63618a739
Merge pull request #114875 from prrajput1199/prrajput1199-patch-1
Fixed typo kind/documentation
2023-04-25 03:36:16 -07:00
Wojciech Tyczyński
88e2c34439 Enable a bunch of generic storage tests for watchcache. 2023-04-25 10:47:18 +02:00
Kubernetes Prow Robot
71695fb518
Merge pull request #116277 from mowangdk/cleanup/controller_unit_test
Cleanup service controller unit test
2023-04-24 20:58:24 -07:00
SataQiu
860329c04b drop v1.25.0 API testdata 2023-04-25 11:45:28 +08:00
mowangdk
440d5910f7 Chore: add app protocol tweak function 2023-04-25 10:58:59 +08:00
mowangdk
06993afdd6 Chore: cleanup whitespaces 2023-04-25 10:55:52 +08:00
mowangdk
3d8f7233da Chore: remove impossible and redunant cases 2023-04-25 10:55:12 +08:00
Kubernetes Prow Robot
ac221c8bb9
Merge pull request #117537 from SataQiu/v1.27.0-api-testdata
Add v1.27.0 API testdata
2023-04-24 16:29:02 -07:00