Commit Graph

100950 Commits

Author SHA1 Message Date
Niels de Vos
fd3bbf6f9e Add e2e testing for Block volume metrics
The in-tree drivers support gathering the capacity of the Block volume.
Make sure that Kubelet exposes these for the matching PVCs.
2021-05-20 16:37:12 +02:00
Niels de Vos
e7dedc5cd1 Support Capacity metric for block PVCs for in-tree drivers
PR #97972 added support for gathering metrics for Block PVCs provided by
CSI drivers. The in-tree drivers can support at leas the most basic
metric; Capacity.
2021-05-20 16:37:12 +02:00
Niels de Vos
2b9c81b87d Add helper functions for Block volume Capacity detection
Similar to how NewMetricsStatFS() works, the new NewMetricsBlock()
provides the GetMetrics() interface for Block volumes.

Additional metrics for Block volumes are difficult to gather. There is
no guarantee that there is a filesystem on the volume, which makes most
of the volume metrics useless.

Advanced storage might be able to detect the actual consumption (when
thin-provisioned) vs the capacity. However, this is out of the scope for
a standard helper function and requires intimate knowledge of the used
storage system.
2021-05-20 16:37:12 +02:00
Kubernetes Prow Robot
29e4fdab4d
Merge pull request #102167 from aojea/removekubemci
remove ingress kubemci tests from e2e
2021-05-20 05:49:04 -07:00
kikimo
c0a7939cbb remove redundant test branch in sorting algorithm 2021-05-20 20:31:47 +08:00
Rancho Chen
9469ee7025 Add testcase for freeCPUs with three Sockets 2021-05-20 11:49:51 +00:00
Kubernetes Prow Robot
584fbd23d6
Merge pull request #101889 from pacoxu/add-e2e-log-cleanup
e2e: add log for running which cleanup action
2021-05-20 03:47:04 -07:00
Kubernetes Prow Robot
c9fb3c8a1b
Merge pull request #102005 from feiskyer/vmss-sku-fix
Azure: avoid setting cached Sku when updating VMSS and VMSS instances
2021-05-20 01:41:17 -07:00
Kubernetes Prow Robot
f4f238e038
Merge pull request #101601 from AliceZhang2016/indexed-job-stable-hostname
specify pod name and hostname in indexed job
2021-05-20 01:41:05 -07:00
Antonio Ojea
da9ec0d4c7 remove ingress kubemci tests from e2e 2021-05-20 10:18:43 +02:00
pacoxu
75c19da843 correct messages in post start hook error handling
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-05-20 15:14:47 +08:00
Odin Ugedal
d312ef7eb6 Set cgroups via opencontainer
This sets cgroup config via libcontainer to make sure we apply the
correct values to the systemd slices and scopes.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-19 23:52:01 -07:00
Kir Kolyshkin
f3cdfc488e vendor: bump runc to rc95
runc rc95 contains a fix for CVE-2021-30465.

runc rc94 provides fixes and improvements.

One notable change is cgroup manager's Set now accept Resources rather
than Cgroup (see https://github.com/opencontainers/runc/pull/2906).
Modify the code accordingly.

Also update runc dependencies (as hinted by hack/lint-depdendencies.sh):

        github.com/cilium/ebpf v0.5.0
        github.com/containerd/console v1.0.2
        github.com/coreos/go-systemd/v22 v22.3.1
        github.com/godbus/dbus/v5 v5.0.4
        github.com/moby/sys/mountinfo v0.4.1
        golang.org/x/sys v0.0.0-20210426230700-d19ff857e887
        github.com/google/go-cmp v0.5.4
        github.com/kr/pretty v0.2.1
        github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-19 23:51:59 -07:00
Kir Kolyshkin
029e6b6e3a pkg/kubelet/nodeshutdown/systemd: fix for dbus 5.0.4
dbus 5.0.4 adds StoreProperty method which needs to be implemented for
the mock.

Fixes the errors like

> pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go:88:9: cannot use f.fakeDBusObject (variable of type *fakeDBusObject) as dbus.BusObject value in return statement: missing method StoreProperty

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-19 23:51:57 -07:00
Giuseppe Scrivano
12abc3b7c9 kubelet: reuse manager
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-05-19 23:51:49 -07:00
Kubernetes Prow Robot
254c77bb89
Merge pull request #101612 from ikeeip/tests_e2e_resolve_todo_1
cleanup: remove TODO at e2e scheduling preemption test
2021-05-19 20:49:04 -07:00
Kubernetes Prow Robot
3cd555e818
Merge pull request #102121 from pacoxu/remove-insecure-ports
kubeadm: remove --insecure-port flag from the kube-apiserver manifest
2021-05-19 19:47:16 -07:00
Kubernetes Prow Robot
150675b164
Merge pull request #102090 from mengjiao-liu/fix-data-race-csi
Prevent data race condition  in csi unit tests
2021-05-19 19:47:04 -07:00
Haowei Cai
dc8bc41f14 generated 2021-05-19 18:55:56 -07:00
Haowei Cai
1652e59c9b mark ContainerImage.names as optional
kubelet is the only writer of v1.Node .status.images[].names. When an
image has neither RepoDigests nor RepoTags, the value gets stored in
etcd as null. Marking the field as optional can help JSON API clients
to avoid hitting serialization error when the returned status contains
null .status.images[].names.
2021-05-19 18:55:56 -07:00
Tim Allclair
3115b65ce6 Add PULL_REQUEST_TEMPLATE.md 2021-05-19 18:52:36 -07:00
Kubernetes Prow Robot
85674ae53d
Merge pull request #101685 from Jiawei0227/scaleio
Remove scaleio volume plugins from k8s codebase
2021-05-19 18:25:05 -07:00
Kubernetes Prow Robot
f01c9e8683
Merge pull request #102030 from aojea/ingress_beta
bump ingress e2e tests  to v1
2021-05-19 17:23:17 -07:00
Kubernetes Prow Robot
c115435adc
Merge pull request #101688 from liggitt/field-warnings
Add field-level warning plumbing and add pod spec warnings
2021-05-19 17:23:04 -07:00
kikimo
445b9c0762 minor tweak on numa node sorting algorithm 2021-05-20 08:21:20 +08:00
Tim Allclair
5e6f0fe8d0 Use sig-auth-policy-* OWNERS alias 2021-05-19 16:24:38 -07:00
marosset
ae424160bd Adding e2e test for HostProcess containers on Windows 2021-05-19 16:24:14 -07:00
marosset
fd94032b21 Kubelet updates for Windows HostProcess Containers 2021-05-19 16:24:14 -07:00
marosset
51a02fdb80 Updating CRI API to include Windows Pod/Sandbox configs 2021-05-19 16:24:13 -07:00
marosset
93da0fd45d API support for Windows host process containers
Co-authored-by: James Sturtevant <jstur@microsoft.com>
2021-05-19 16:24:13 -07:00
Tim Allclair
c3d0a530ee Add placeholder doc.go 2021-05-19 15:56:01 -07:00
Vinayak Goyal
c426517ac0 Add a feature-gate to kubeadm to enable/disable Rootless control-plane. 2021-05-19 15:52:27 -07:00
Kubernetes Prow Robot
3cc0ca0988
Merge pull request #102129 from SataQiu/clean-critical-pod-annotation
Cleanup useless 'scheduler.alpha.kubernetes.io/critical-pod' annotation
2021-05-19 15:25:31 -07:00
Kubernetes Prow Robot
1a52527549
Merge pull request #102105 from julianvmodesto/ssa-big-last-applied
Respect annotation size limit for SSA last-applied.
2021-05-19 15:25:23 -07:00
Kubernetes Prow Robot
4e0245389f
Merge pull request #101995 from ii/Riaankl-daemonset-list-deletecollection
Write List and DeleteCollection DaemonSet Test +2 endpoints
2021-05-19 15:25:15 -07:00
Kubernetes Prow Robot
5bdb097802
Merge pull request #101759 from navidshaikh/pr/bump-cni
Bump containernetworking/cni to v0.8.1
2021-05-19 15:25:03 -07:00
Kubernetes Prow Robot
8709f18356
Merge pull request #101382 from ii/Riaankl-update-ineligible_endpoints.yaml
Add NetworkPolicy Endpoint to Ineligible endpoints
2021-05-19 15:24:52 -07:00
Lubomir I. Ivanov
6d6c6cfb0d kubeadm: remove e2e test for ClusterStatus
Remove the e2e test for ClusterStatus in the kubeadm suite.
The object was deprecated in a previous release and is no longer
written by kubeadm v1.22 in the kubeadm-config config map.
2021-05-20 01:15:05 +03:00
Kubernetes Prow Robot
43c39ea7da
Merge pull request #101261 from ii/Riaankl-replicaset-list-deletecollection
Write ReplicaSet List and DeleteCollection test +2 endpoints
2021-05-19 14:22:50 -07:00
ravisantoshgudimetla
040e9c8b51 Promote DS MaxSurge to beta 2021-05-19 16:12:52 -04:00
Kubernetes Prow Robot
bc637a7a07
Merge pull request #102083 from andyzhangx/delete-disk-issue
fix: delete non existing disk issue
2021-05-19 12:47:02 -07:00
Kubernetes Prow Robot
34946ea799
Merge pull request #98613 from xing-yang/update_framework_vol_owners
Update test/e2e/framework/volume owners file
2021-05-19 12:46:50 -07:00
Tim Allclair
711b8e3a9a Add staging directory for pod-security-standards subproject 2021-05-19 11:51:50 -07:00
Kubernetes Prow Robot
8c0d06aad8
Merge pull request #101869 from olagacek/master
Set poll period of metrics server nanny to 30s
2021-05-19 11:14:51 -07:00
Jiawei Wang
94db1e18ba Remove scaleio from volume plugins 2021-05-19 10:35:21 -07:00
Julian V. Modesto
6054320be1 Respect annotation size limit for SSA last-applied.
To support CSA and SSA interoperability, SSA updates the CSA
last-applied annotation.

This change ensures we don't set a big last-applied annotation if the
value is over the annotation limits.

Also, make sure that it's possible to opt-out of this behavior by
setting the CSA annotation to "" the empty string.
2021-05-19 13:31:13 -04:00
Kubernetes Prow Robot
bacab40a9f
Merge pull request #102111 from dims/update-testing-related-deps-for-1.22
Update testing related dependencies (ginkgo|gomega|testify)
2021-05-19 08:48:51 -07:00
Mengxue Zhang
e64e34e029 specify pod name and hostname in indexed job 2021-05-19 15:30:13 +00:00
xing-yang
e3cc96e002 Update test/e2e/framework/volume owners file 2021-05-19 13:43:21 +00:00
kikimo
ecfa609b71 simplify sorting comparator of numa nodes 2021-05-19 21:19:47 +08:00