Commit Graph

107208 Commits

Author SHA1 Message Date
Dave Chen
ace64c0138 Switch to use the DBG flag to build debug binaries
With the merging of #108371, the old way to build the debug binaries
won't work anymore.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 14:57:59 +08:00
Kubernetes Prow Robot
bbc2dbb980
Merge pull request #108000 from RomanBednar/af-namespace-fix
AzureFile: Volume without secretNamespace fails to mount after translating to CSI
2022-03-08 22:00:21 -08:00
Kubernetes Prow Robot
98ada45442
Merge pull request #108402 from Shoothzj/fix-typo-in-watch_based_manager_test
Fix typo in watch_based_manager_test
2022-03-08 20:04:21 -08:00
Dave Chen
09e47291c7 Rename variable error to err
`error` is the keywork in golang

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:39:34 +08:00
Dave Chen
85dfca3e16 Remove the legacy Nginx testcases
Those testcases does't work anymore after nginx-ingress controller
has been upgraded to v1.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 10:38:07 +08:00
Paco Xu
b03e27af1b migrate dockerhub image to k8s.gcr.io e2e test image 2022-03-09 09:54:11 +08:00
Kir Kolyshkin
de5a69d847 pkg/kubelet/cm: fix potential nil dereference in enforceExistingCgroup
Move the rl == nil check to before we dereference it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-08 17:05:46 -08:00
Kir Kolyshkin
9652d0cedc pkg/kubelet/cm: move common code to libctCgroupConfig
Instead of doing (almost) the same thing from the three different
methods (Create, Update, Destroy), move the functionality to
libctCgroupConfig, replacing updateSystemdCgroupInfo.

The needResources bool is needed because we do not need resources
during Destroy, so we skip the unneeded resource conversion.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-08 17:05:46 -08:00
Kir Kolyshkin
11b0d57c93 pkg/kubelet/cm/cgroup_manager: simplify setting hugetlb
Commit 79be8be10e made hugetlb settings optional if cgroup v2 is used and
hugetlb is not available, fixing issue 92933. Note at that time this was only
needed for v2, because for v1 the resources were set one-by-one, and only for
supported resources.

Commit d312ef7eb6 switched the code to using Set from runc/libcontainer
cgroups manager, and expanded the check to cgroup v1 as well.

Move this check earlier, to inside m.toResources, so instead of
converting all hugetlb resources from ResourceConfig to libcontainers's
Resources.HugetlbLimit, and then setting it to nil, we can skip the
conversion entirely if hugetlb is not supported, thus not doing the work
that is not needed.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-08 17:05:46 -08:00
Kir Kolyshkin
59148e22d0 pkg/kubelet/cm: rm dup code
Commit ecd6361f added setting PidsLimit to Create and Update.

Commit bce9d5f2 added setting PidsLimit to m.toResources.

Now, PidsLimit is assigned twice.

Remove the duplicate.

Fixes: bce9d5f2
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-08 17:05:46 -08:00
Kir Kolyshkin
a673b64864 kubelet/cm: speed up cgroup creation
There's no need to call m.Update (which will create another instance of
libcontainer cgroup manager, convert all the resources and then set
them). All this is already done here, except for Set().

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-08 17:05:46 -08:00
Kubernetes Prow Robot
f10cd679eb
Merge pull request #108557 from ruquanzhao/Remove_generic_scheduler.go
Remove generic_scheduler.go and generic_scheduler_test.go
2022-03-08 13:02:20 -08:00
Kubernetes Prow Robot
19935de5a9
Merge pull request #107410 from margocrawf/master
Ensure static certs in kubeconfig override exec plugin
2022-03-08 11:34:21 -08:00
Kubernetes Prow Robot
29ed12e76b
Merge pull request #108527 from ddebroy/instrumentedgc1
Pass instrumented runtime service to containerGC
2022-03-08 10:24:49 -08:00
Kubernetes Prow Robot
c964ef8d8a
Merge pull request #108576 from jpbetz/cel-0_10_0
Bump to CEL v0.10.0 and update tests and usage
2022-03-08 07:06:33 -08:00
Deep Debroy
023d6fb8f4 Pass instrumented runtime service to containergc
Signed-off-by: Deep Debroy <ddebroy@gmail.com>
2022-03-08 14:33:37 +00:00
Bartłomiej Wróblewski
b2e2fb8d89 Make daemon.NodeShouldRunDaemonPod function public 2022-03-08 11:32:17 +00:00
Kubernetes Prow Robot
1976240861
Merge pull request #108092 from carlory/fix-98035
remove audit.k8s.io/v1[alpha|beta]1 versions
2022-03-08 01:02:33 -08:00
Arda Güçlü
5fdf97ad8e Remove DiscoveryClient from diff command
This PR removes `DiscoveryClient` field in diff command. Because
it is not used anywhere in diff command.
2022-03-08 09:59:49 +03:00
carlory
fcc282f9f2 remove audit.k8s.io/v1[alpha|beta]1 versions 2022-03-08 14:37:26 +08:00
Joe Betz
dd00a432b5 Add tests demonstrating numeric comparisons and int-or-string behavior 2022-03-07 22:59:43 -05:00
Kubernetes Prow Robot
34a6a7ca11
Merge pull request #108316 from hyschumi/fix_unnecessary_handlecrash
endpointslice: remove unnecessary HandleCrash
2022-03-07 18:20:34 -08:00
Joe Betz
2a6b85c395 Bump cel-go to v0.10.0 2022-03-07 20:47:04 -05:00
Margo Crawford
f015fd66ce Check whether static cert is already configured in UpdateTransportConfig
- Also update test-cmd.sh to pass a signing ca to the kube controller
  manager, so CSRs work properly in integration tests.

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2022-03-07 13:54:32 -08:00
Kubernetes Prow Robot
f93be6584e
Merge pull request #108426 from deads2k/e2e-check
add resource enablement check for e2e tests of beta APIs
2022-03-07 11:34:26 -08:00
David Eads
8ab8d05cc4 add resource enablement check for e2e tests of beta APIs 2022-03-07 13:31:37 -05:00
Wojciech Tyczyński
779f157ecf Fix potential race in dispatching watch event 2022-03-07 18:46:24 +01:00
Wojciech Tyczyński
0cb3a02bbe Avoid perfoming deep copies in watchcache if not needed 2022-03-07 18:46:24 +01:00
Wojciech Tyczyński
7e434682e4 Prepare apiserver for operating on cached objects by not modifying them 2022-03-07 18:44:20 +01:00
Kubernetes Prow Robot
170a9c050f
Merge pull request #106525 from dgrisonnet/sanitize-forwarded-uri
apimachinery/pkg/util/proxy: escape forwarded URI
2022-03-07 09:22:53 -08:00
Ravi Gudimetla
72a62f47f7 Wire context for cert controllers
All the controllers should use context for signalling termination of communication with API server. Once kcm cancels context all the cert controllers which are started via kcm should cancel the APIServer request in flight instead of hanging around.
2022-03-07 10:19:45 -05:00
Ravi Gudimetla
8b84a793b3 API Server Changes
This commit includes all the changes needed for APIServer. Instead of modifying the existing signatures for the methods which either generate or return stopChannel, we generate a context from the channel and use the generated context to be passed to the controllers which are started in APIServer. This ensures we don't have to touch APIServer dependencies.
2022-03-07 09:37:01 -05:00
Patrick Ohly
df1d1cc263 e2e: support CSI images in -list-images
It was possible to patch images in the YAML files via KUBE_TEST_REPO, but it
was not possible to know in advance which images might be needed. Now
-list-images also includes all images referenced by the
test-manifest/storage-csi YAML files.
2022-03-07 15:03:16 +01:00
Imran Pochi
5ef0be2f58 Remove the restart kubelet check from the test.
Upon reconsidering as to the purpose of the test i.e to test the lock
contention flags (--lock-file-contention and --lock-file), it makes
sense that we test only the actual functionality which is the kubelet
should stop once there is a lock contention.

In no way it is the responsiblity of the kubelet to restart, which would
be the responsiblity of a higher system such as systemd.

Hence the removal of the check for releasing the lock and checking for
whether the kubelet is healthy again or not seem out of scope from
kubelet's responsiblities.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
2022-03-07 18:51:07 +05:30
Roman Bednar
c1f41ceab3 Add support for btrfs resize
Mount utils support resizing of btrfs volume, however it lacks btrfs
device block size and total size detection needed to determine if
resize is needed.

Adding btrfs support is useful for certain CSI drivers (e.g. Azure)
which now have to implement custom solution for btrfs resize.

With this patch it should be easy for such drivers to use mount-utils
module instead and help unify (and correct) the resize flows.
2022-03-07 14:09:28 +01:00
Kubernetes Prow Robot
ad46b4f921
Merge pull request #108457 from ialidzhikov/cleanup/target-ram-mb
apiserver: Remove the deprecated `--target-ram-mb` flag
2022-03-07 02:38:53 -08:00
ruquanzhao
36b65fb63f Remove generic_scheduler.go and generic_scheduler_test.go
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2022-03-07 17:52:08 +08:00
Kubernetes Prow Robot
debd461d03
Merge pull request #108550 from dims/specify-journald-configuration-explicitly
Explicitly specify journald config so the kube-up deployed nodes retain logs
2022-03-06 18:46:53 -08:00
Davanum Srinivas
7b5c718946
explicitly specify journald config
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-06 18:48:35 -05:00
Kubernetes Prow Robot
3775ac6d19
Merge pull request #108535 from Abirdcfly/master
fix some typo
2022-03-05 22:46:52 -08:00
Abirdcfly
2005110090 fix some typo
Change-Id: I211f572555e964581214a5d726ac552676c9833a
2022-03-05 23:25:52 +08:00
jlsong01
75c139d567 fix kubectl describe ingress shows default-backend:80 when no default backend 2022-03-05 22:53:50 +08:00
ialidzhikov
9c7c7cca24 kube-controller-manager: Cleanup MarkDeprecared call for already removed flag
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2022-03-05 12:53:44 +02:00
Kubernetes Prow Robot
5b9910a574
Merge pull request #107977 from brianpursley/user-completion
Add unit tests for cluster, context, and user command line completion functions
2022-03-04 21:42:51 -08:00
Kubernetes Prow Robot
da23196df6
Merge pull request #108450 from tnqn/stop-setting-rv-in-endpoints
Stop publishing Pod ResourceVersion in Endpoints and EndpointSlice API
2022-03-04 17:23:04 -08:00
Kubernetes Prow Robot
546e4fa1ef
Merge pull request #107771 from sanposhiho/fix-tiny
make scheduler_perf stable
2022-03-04 17:22:52 -08:00
Kubernetes Prow Robot
422b867d45
Merge pull request #108514 from dims/avoid-dockerhub-for-nginx-pull-kubernetes-e2e-gce
Avoid dockerhub for nginx (fix for only pull-kubernetes-e2e-gce)
2022-03-04 15:35:30 -08:00
Kubernetes Prow Robot
82755e3cb2
Merge pull request #108437 from andrewsykim/bump-konnectivity-v0.0.29
bump konnectivity-client@v0.0.30
2022-03-04 15:35:21 -08:00
Kubernetes Prow Robot
1160923ae6
Merge pull request #108423 from ialidzhikov/cleanup/experimental-encryption-provider-config
apiserver: Remove the deprecated `--experimental-encryption-provider-config` flag
2022-03-04 15:35:14 -08:00
Kubernetes Prow Robot
c71f9465b1
Merge pull request #108314 from wking/avoid-drain-controller-assumptions
kubectl drain: Generic "declare a controller" message
2022-03-04 15:35:02 -08:00