Kubernetes Prow Robot
18eea58ac2
Merge pull request #115359 from iancoolidge/devel-cpuset
...
More code-review changes from k/utlils cpuset review
2023-02-28 10:55:16 -08:00
Ed Bartosh
5a86895070
DRA: pass CDI devices through CRI CDIDevice field
2023-02-28 19:21:20 +02:00
SataQiu
ed2caf17e0
kubelet: remove unused DockerID type
2023-02-27 16:02:59 +08:00
Chen Wang
7db339dba2
This commit contains the following:
...
1. Scheduler bug-fix + scheduler-focussed E2E tests
2. Add cgroup v2 support for in-place pod resize
3. Enable full E2E pod resize test for containerd>=1.6.9 and EventedPLEG related changes.
Co-Authored-By: Vinay Kulkarni <vskibum@gmail.com >
2023-02-24 18:21:21 +00:00
Vinay Kulkarni
f2bd94a0de
In-place Pod Vertical Scaling - core implementation
...
1. Core Kubelet changes to implement In-place Pod Vertical Scaling.
2. E2E tests for In-place Pod Vertical Scaling.
3. Refactor kubelet code and add missing tests (Derek's kubelet review)
4. Add a new hash over container fields without Resources field to allow feature gate toggling without restarting containers not using the feature.
5. Fix corner-case where resize A->B->A gets ignored
6. Add cgroup v2 support to pod resize E2E test.
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources
Co-authored-by: Chen Wang <Chen.Wang1@ibm.com >
2023-02-24 18:21:21 +00:00
Jan Safranek
7bf9991389
Add metric for failed orphan pod cleanup
2023-02-22 18:43:38 +01:00
Jan Safranek
bd73aee9db
Add volume reconstruction metrics
...
Count nr. of volumes that kubelet tried to reconstruct + reconstruction
errors.
2023-02-22 13:01:26 +01:00
HirazawaUi
692e7cd3be
delete kubelet unused function
2023-02-21 16:08:02 +08:00
Ian K. Coolidge
d4a1bf83c1
cpuset: Convert Fatalf to Errrof in tests
...
Use of Fatalf is not apppropriate in any of these cases:
None of these failures are prerequisites.
2023-02-21 05:41:16 +00:00
Ian K. Coolidge
b536851fc7
cpuset: Add a few more test cases
...
Feedback from https://github.com/kubernetes/utils/pull/267 and related
reviews.
* Equality when insertion order is different
* UnsortedList contents
* Not-Subset cases
* Clone coverage
2023-02-21 05:40:54 +00:00
Ian K. Coolidge
22d3f67850
cpuset: Fix Parse() error message for n-k s.t. k<n
...
This case is tested extensively in cpuset_test.go, but the error message
needs a small adjustmnet.
2023-02-21 04:51:14 +00:00
Sascha Grunert
58923c9f1a
Default to sandbox Seccomp
field instead of SeccompProfilePath
...
The seccomp field is the new default since a couple of releases, means
we can stop using `SeccompProfilePath`.
Follow-up on https://github.com/kubernetes/kubernetes/pull/96281
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2023-02-20 12:16:32 +01:00
huyinhou
32495ae3f1
add lock in generate topology hints function
2023-02-20 10:56:53 +08:00
Kubernetes Prow Robot
ffe410bbb4
Merge pull request #115604 from pacoxu/fix-design-proposals-links
...
old design proposals are now moved to Design Proposals Archive repo
2023-02-16 09:55:38 -08:00
Paco Xu
3d536bd14b
API docs: point to current docs instead of archived designs
2023-02-16 15:32:08 +08:00
Kubernetes Prow Robot
e18fa74551
Merge pull request #115590 from swatisehgal/topology-mgr-duration-metrics
...
node: topology-mgr: Add metric to measure topology manager admission latency
2023-02-15 07:12:25 -08:00
Swati Sehgal
8442b450e5
node: topology-mgr: code optimization
...
Signed-off-by: Swati Sehgal <swsehgal@redhat.com >
2023-02-15 14:04:10 +00:00
Swati Sehgal
bc941633c1
node: topology-mgr: add metric to measure topology mgr admission latency
...
Signed-off-by: Swati Sehgal <swsehgal@redhat.com >
2023-02-15 13:59:47 +00:00
Kubernetes Prow Robot
8f55d34507
Merge pull request #115384 from sourcelliu/allowlist
...
Add test for pkg/kubelet/sysctl/allowlist_test.go
2023-02-14 12:45:51 -08:00
Kubernetes Prow Robot
5071c4f57e
Merge pull request #111982 from cvvz/kubelet-del-unnecessary-code
...
cleanup: delete useless code from kubelet volumemanager
2023-02-14 10:31:31 -08:00
cyclinder
1bdcd18bf6
close grpc server in test file to avoid goroutine leak
...
Signed-off-by: cyclinder <kuocyclinder@gmail.com >
2023-02-10 09:51:26 +08:00
Claudiu Belu
5cce4bccad
tests: Port kubelet tests to Windows
...
Ports kubelet/util unit tests to Windows.
2023-02-09 13:50:51 +00:00
Paco Xu
019d2615af
archived design proposals are now moved to Design Proposals Archive Repo.
2023-02-08 11:12:22 +08:00
Kubernetes Prow Robot
5437d493da
Merge pull request #114364 from bart0sh/PR102-prepare-DRA-resources-before-CNI-setup
...
kubelet: prepare DRA resources before CNI setup
2023-02-07 08:09:04 -08:00
Kubernetes Prow Robot
22b88dea36
Merge pull request #115315 from enj/enj/i/kas_kubelet_conn_close
...
kubelet/client: collapse transport wiring onto standard approach
2023-02-07 07:01:14 -08:00
Madhav Jivrajani
5e1f440d0a
*: Fix linter warnings
...
Adapt to newly improved linters in golangci-lint v1.51.1
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com >
2023-02-07 13:01:41 +05:30
Monis Khan
754cb3d601
kubelet/client: collapse transport wiring onto standard approach
...
Signed-off-by: Monis Khan <mok@microsoft.com >
2023-02-06 20:34:49 -05:00
Ed Bartosh
4f88332ab4
kubelet: prepare DRA resources before CNI setup
2023-02-06 20:40:11 +02:00
Kubernetes Prow Robot
d3a62dcb76
Merge pull request #114351 from ruiwen-zhao/event_ignore_nil
...
[Evented PLEG] Ignore container events with nil PodSandboxStatus
2023-02-02 12:52:42 -08:00
Kubernetes Prow Robot
b1667918bc
Merge pull request #115424 from songxiao-wang87/runwxs-test11
...
Make docs more accurate for the contention-profiling flag
2023-02-01 07:25:20 -08:00
Kubernetes Prow Robot
51c54a1e2f
Merge pull request #114179 from lixiaobing1/break
...
improve performance
2023-01-31 21:01:06 -08:00
mantuliu
3f8ada67c5
impove the coverage
...
Signed-off-by: mantuliu <240951888@qq.com >
2023-02-01 10:47:38 +08:00
ruiwen-zhao
fabcc91956
Ignore container events with nil PodSandboxStatus
...
Signed-off-by: ruiwen-zhao <ruiwen@google.com >
2023-01-31 22:50:51 +00:00
mantuliu
52e7bf58cf
cut avoid unnecessary code duplications
...
Signed-off-by: mantuliu <240951888@qq.com >
2023-01-31 23:55:09 +08:00
Claudiu Belu
ec753fcb55
unittests: Fixes unit tests for Windows (part 6)
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- On Windows, consecutive time.Now() calls may return the same timestamp, which would cause
the TestFreeSpaceRemoveByLeastRecentlyUsed test to flake.
- tests in kuberuntime_container_windows_test.go fail on Nodes that have fewer than 3 CPUs,
expecting the CPU max set to be more than 100% of available CPUs, which is not possible.
- calls in summary_windows_test.go are missing context.
- filterTerminatedContainerInfoAndAssembleByPodCgroupKey will filter and group container
information by the Pod cgroup key, if it exists. However, we don't have cgroups on Windows,
thus we can't make the same assertions.
2023-01-31 11:49:26 +00:00
songxiao-wang87
3e6b954290
Making a run test.
...
Signed-off-by: songxiao-wang87 <wang.xiaosong23@zte.com.cn >
2023-01-31 09:38:48 +00:00
Kubernetes Prow Robot
4df945853e
Merge pull request #115137 from swatisehgal/topologymgr-metrics
...
node: topologymgr: add metrics about admission requests and errors
2023-01-30 18:43:00 -08:00
Kubernetes Prow Robot
559014f13e
Merge pull request #115273 from SergeyKanzhelev/restartCountRegexFix
...
use a proper regex looking for the restartCount
2023-01-30 17:36:49 -08:00
Kubernetes Prow Robot
d0584179f4
Merge pull request #114367 from liggitt/kubelet-csr-init
...
Check for initial kubelet certificates more frequently
2023-01-30 09:07:05 -08:00
Kubernetes Prow Robot
232c0de57a
Merge pull request #115101 from HirazawaUi/delte-pkg-kubelet-unused-functions
...
delete unused functions in pkg/kubelet directory
2023-01-29 17:21:08 -08:00
mantuliu
8ca97dcde1
Add test for pkg/kubelet/sysctl/allowlist_test.go
2023-01-29 22:48:27 +08:00
Kubernetes Prow Robot
538c6c044f
Merge pull request #115329 from aojea/disable_probe
...
skip scale test for probes
2023-01-25 22:02:33 -08:00
Kubernetes Prow Robot
083e0d2be1
Merge pull request #114991 from TheOneTheOnlyJJ/skip-failing-unittests
...
Skip failing Windows unit tests
2023-01-25 22:02:25 -08:00
Antonio Ojea
3fb4edb257
skip scale test for probes
...
Change-Id: I215e2cf9211348aadcc0d262da01953d6523794a
2023-01-26 00:02:30 +00:00
Sergey Kanzhelev
15b63c380e
use a proper regex looking for the restartCount
2023-01-25 23:55:27 +00:00
Kubernetes Prow Robot
a12dd4189e
Merge pull request #115102 from saschagrunert/cri-unavailable
...
Check for all errors in CRI connection validation
2023-01-24 02:24:17 -08:00
Kubernetes Prow Robot
674eb36f92
Merge pull request #115249 from thockin/codegen-13-proto-go-packages
...
Set go_package in all proto files
2023-01-23 12:14:07 -08:00
Tim Hockin
60ffa47f4f
Set proto go_package: kubelet example_plugin_apis
...
This creates some diff to the *.pb.go files to note that
in the "options".
You can dump the gzipped blob with the following program (thanks
StackOverflow!):
```go
package main
import (
"bytes"
"compress/gzip"
"encoding/json"
"fmt"
"os"
"io/ioutil"
proto "github.com/golang/protobuf/proto"
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
)
func main() {
m := map[string][]byte{
"before": blobv1,
"after": blobv2,
}
arg := os.Args[1]
dump(m[arg])
}
func dump(bytes []byte) {
fd, err := decodeFileDesc(bytes)
if err != nil {
panic(err)
}
b, err := json.MarshalIndent(fd, "", " ")
if err != nil {
panic(err)
}
fmt.Println(string(b))
}
// decompress does gzip decompression.
func decompress(b []byte) ([]byte, error) {
r, err := gzip.NewReader(bytes.NewReader(b))
if err != nil {
return nil, fmt.Errorf("bad gzipped descriptor: %v", err)
}
out, err := ioutil.ReadAll(r)
if err != nil {
return nil, fmt.Errorf("bad gzipped descriptor: %v", err)
}
return out, nil
}
func decodeFileDesc(enc []byte) (*dpb.FileDescriptorProto, error) {
raw, err := decompress(enc)
if err != nil {
return nil, fmt.Errorf("failed to decompress enc: %v", err)
}
fd := new(dpb.FileDescriptorProto)
if err := proto.Unmarshal(raw, fd); err != nil {
return nil, fmt.Errorf("bad descriptor: %v", err)
}
return fd, nil
}
```
2023-01-23 09:31:18 -08:00
Jan Safranek
cca3d557e6
Split volume reconstruction refactoring from SELinuxMountReadWriteOncePod
...
Add a new feature gate NewVolumeManagerReconstruction and add the new
volume reconstruction done in 1.26 under that feature gate.
2023-01-23 14:43:29 +01:00
Patrick Ohly
bc6c7fa912
logging: fix names of keys
...
The stricter checking with the upcoming logcheck v0.4.1 pointed out these names
which don't comply with our recommendations in
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md#name-arguments .
2023-01-23 14:24:29 +01:00