Commit Graph

101806 Commits

Author SHA1 Message Date
tewei.luo
396bd37a5f Fix GCE regional PD tests.
Need to set storage class returned by the apiserver which contains
the "Name" field derived from "GenerateName".
2021-05-24 04:12:20 +00:00
Kir Kolyshkin
f1aee7e049 kubelet/cm: GetResourceStats -> MemoryUsage
Commit cc50aa9dfb introduced GetResourceStats, a method which collected
all the statistics from various cgroup controllers, only to discard all
of the info collected except a single value (memory usage).

While one may argue that this method can potentially be used from other
places, this did not happen since it was added 4+ years ago.

Let's streamline this code and only collect what we need, i.e. memory
usage. Rename the method accordingly.

While at it, fix pkg/kubelet/cm/cgroup_manager_unsupported.go to not
instantiate a new error every time a method is called.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-23 20:43:52 -07:00
sanposhiho
517feed45b Add: interface check 2021-05-23 23:48:42 +09:00
sanposhiho
be16b7f818 Fix: Logging causes nilpointer 2021-05-23 23:17:29 +09:00
Kubernetes Prow Robot
d8f9e4587a
Merge pull request #101742 from ravisantoshgudimetla/promote-maxSurge-beta
Promote DS MaxSurge to beta
2021-05-23 04:33:38 -07:00
Kubernetes Prow Robot
d7903669c4
Merge pull request #96299 from ggriffiths/snapshot_controller_metrics_e2e_tests
Add Snapshot Controller e2e metric tests
2021-05-23 03:33:37 -07:00
Kubernetes Prow Robot
5be51c9fbf
Merge pull request #102186 from Jiawei0227/scaleio
Add warning for removed and deprecated plugin
2021-05-23 01:15:37 -07:00
Kubernetes Prow Robot
ec38907367
Merge pull request #102224 from liggitt/fixup-test-certs
Fix expired unit test certs
2021-05-22 20:15:37 -07:00
Jordan Liggitt
7a227d302d Fix expired unit test certs 2021-05-22 20:58:53 -04:00
Shiming Zhang
202a012093 Add restart unit test 2021-05-23 00:47:36 +08:00
刁浩 10284789
b344d4d442 api link is missing
Signed-off-by: 刁浩 10284789 <diao.hao@zte.com.cn>
2021-05-22 08:52:39 +00:00
Kubernetes Prow Robot
c5bd36ef90
Merge pull request #102065 from eddiezane/ez/add-KnVerey-as-sig-cli-reviewer
Add KnVerey as a sig-cli reviewer
2021-05-22 00:53:37 -07:00
kikimo
20c02357ca Add hint to fake topology manager. 2021-05-22 15:29:08 +08:00
Kubernetes Prow Robot
916ed1d3ad
Merge pull request #100543 from chaitanyabandi/variable-expansion
Don't replace pod annotations in variable expansion test
2021-05-21 17:43:37 -07:00
Kubernetes Prow Robot
661b76f864
Merge pull request #102216 from enj/enj/t/exec_global_cache
Add integration test for exec plugin global cache
2021-05-21 16:41:37 -07:00
Kubernetes Prow Robot
a2357f4516
Merge pull request #100136 from Danil-Grigorev/disable-cloud-providers-fg
Add feature gate to disable all in-tree cloud providers
2021-05-21 15:39:36 -07:00
Wei Huang
1b3a124ba6
Scheduler now registers event handlers dynamically
- move clusterEventMap to Configurator
- dynamic event handlers registration for core API resources
- dynamic event handlers registration for custom resources
2021-05-21 13:47:06 -07:00
Kir Kolyshkin
c299b8fc9a kubelet/cm: rm propagateControllers
This was added by commit a9772b2290.

In the current codebase, the cgroup being updated was created using
runc/opencontainers' manager.Apply(), which already does controllers
propagation, so there is no need to repeat that on every update.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-21 13:44:54 -07:00
Chaitanya Bandi
0681a44672 Don't replace pod annotations in variable expansion test
This change fixes the "Variable Expansion should verify that a failing subpath
expansion can be modified during the lifecycle of a container" conformance test
where the annotations are replaced with those used by the test, instead of
appending them.

This may cause undesirable side-effects with other controllers that may be
using pod annotations.
2021-05-21 13:38:04 -07:00
Kubernetes Prow Robot
fb3273774a
Merge pull request #99178 from wilsonehusin/distroless-conformance
Use distroless to build Conformance image
2021-05-21 13:32:11 -07:00
Monis Khan
a45ffd0771
Add integration test for exec plugin global cache
Signed-off-by: Monis Khan <mok@vmware.com>
2021-05-21 16:17:32 -04:00
Kubernetes Prow Robot
863e22cc93
Merge pull request #102175 from ankeesler/exec-plugin-with-basic-auth
exec credential provider: don't run exec plugin with basic auth
2021-05-21 11:52:10 -07:00
Andrew Keesler
9dee2b95c2
exec credential provider: don't run exec plugin with basic auth
If a user specifies basic auth, then apply the same short circuit logic
that we do for bearer tokens (see comment).

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-05-21 13:51:03 -04:00
Kubernetes Prow Robot
fadf85d6d0
Merge pull request #98350 from nilo19/bug/cherry-pick-482
Cherry pick #482 from cloud provider azure: aggregate errors when putting vmss
2021-05-21 10:42:11 -07:00
Kubernetes Prow Robot
164ba3ad7d
Merge pull request #102152 from ankeesler/exec-plugin-integration-test
test/integration/client: test exec calls metric
2021-05-21 09:42:10 -07:00
Kubernetes Prow Robot
e5bee02452
Merge pull request #102185 from tkashem/apf-seats-in-use
apf: introduce the concept of width for a request
2021-05-21 08:41:23 -07:00
Kubernetes Prow Robot
31a0f49c7c
Merge pull request #102174 from SataQiu/kubeadm-add-datapolicy
kubeadm: add datapolicy tags for v1beta3 token/key fields
2021-05-21 08:41:11 -07:00
Kubernetes Prow Robot
64412d526e
Merge pull request #102133 from pacoxu/move-defaulting-kubeadm
kubeadm: move cgroupDriver defaulting to kubeconfig/kubelet.go Default()
2021-05-21 08:40:59 -07:00
Kubernetes Prow Robot
cb1775c73a
Merge pull request #101893 from kikimo/fix-numa-topo-error
Avoid undesirable allocation when device is associated with multiple …
2021-05-21 08:40:47 -07:00
Xiaojun Hu
9fe7c8955b add fail-open audit logs to validating and mutating admission webhook 2021-05-21 10:44:12 -04:00
Kubernetes Prow Robot
04a0dcec8d
Merge pull request #99371 from tiloso/staticcheck-apimachinery-util
Fix staticcheck in k8s.io/apimachinery/pkg/util
2021-05-21 07:38:46 -07:00
Danil-Grigorev
5d57b3794c Add DisableCloudProviders FG
FeatureGate acts as a secondary switch to disable cloud-controller loops
in KCM, Kubelet and KAPI.

Provide comprehensive logging information to users, so they will be
guided in adoption of out-of-tree cloud provider implementation.
2021-05-21 16:09:44 +02:00
Andrew Keesler
584acb2cfe
test/integration/client: test exec calls metric
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-05-21 09:20:47 -04:00
Kubernetes Prow Robot
fed3a4520d
Merge pull request #102089 from ardaguclu/test-node-authn-ipv6-formating
Add Node IP IPv6 formatting in NodeAuthenticator tests
2021-05-21 05:10:46 -07:00
Kubernetes Prow Robot
abe209b086
Merge pull request #102193 from gautierdelorme/bump_kustomize
upgrade kustomize to v4.1.3
2021-05-21 03:16:46 -07:00
pacoxu
2fdbfd8a27 kubeadm: move cgroupDriver defaulting to componentconfigs/kubelet.go#Default()
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-05-21 17:27:40 +08:00
Kubernetes Prow Robot
6eef9fe925
Merge pull request #102197 from liggitt/crd-lifecycle
Propagate server version correctly to apiextensions-apiserver, stop serving v1beta1 CRDs
2021-05-21 00:28:57 -07:00
Dave Chen
fadf3e1531 Graduate prefer nominated node to beta
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-05-21 15:13:50 +08:00
Gautier Delorme
ac753f44cc upgrade kustomize to v4.1.3
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
2021-05-21 09:11:30 +02:00
sanwishe
e8f69398c3 simplify return boolean value expression in cmd/kube-controller-manager/app/certificates.go 2021-05-21 14:38:31 +08:00
Grant Griffiths
564e531aa7 Add Snapshot Controller e2e metric tests
Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
2021-05-20 23:29:23 -07:00
Anago GCB
0b80fbf978 CHANGELOG: Update directory for v1.22.0-alpha.2 release 2021-05-21 05:21:01 +00:00
Jiawei Wang
cc089c0400 Add warning for deprecated and removed plugin 2021-05-20 21:20:44 -07:00
Kubernetes Prow Robot
f803daaca7
Merge pull request #101510 from huchengze/patch-12
migrate log in pkg/volume/plugins.go
2021-05-20 21:14:57 -07:00
SataQiu
7a3827e8e3 kubeadm: add datapolicy tags for v1beta3 token fields 2021-05-21 11:47:17 +08:00
qini
715a4c4112 aggregate errors when putting vmss 2021-05-21 10:29:13 +08:00
mengjiao.liu
c24b87b133 Fixed a possible nil pointer dereference caused by variable plug 2021-05-21 10:17:04 +08:00
Kubernetes Prow Robot
e5124ead9a
Merge pull request #102153 from tallclair/pss
Add staging directory for pod-security-admission
2021-05-20 19:10:56 -07:00
Tim Allclair
908d25fac9 Fix copy-pasta 2021-05-20 18:11:15 -07:00
Tim Allclair
0005c72285 s/standards/admission/ 2021-05-20 17:28:57 -07:00