Commit Graph

109253 Commits

Author SHA1 Message Date
Yubao Liu
834ce75f88 Make sure auto-mounted subpath mount source is already mounted
For example, we have two filesystems, one is embedded into another:

/a/test		# first filesystem with a directory "/a/test/b2"
/a/test/b2	# not auto mounted yet second filesystem, notice "/a/test/b2" is
	        # a new directory on this filesystem after this filesystem is mounted

For subpath mount "/a/test/b2",  `openat("/a/test", "b2")` gets directory "b2" on the first
filesystem, then "mount -c" will use this wrong directory as source directory.

`fstatat("/a/test", "b2/")` forces triggering auto mount of second filesystem, so
`openat("/a/test", "b2")` gets correct source directory for "mount -c".

This fixes issue https://github.com/kubernetes/kubernetes/issues/110818#issuecomment-1175736550

References:

1. https://man7.org/linux/man-pages/man2/openat.2.html

   If pathname refers to an automount point that has not yet
   been triggered, so no other filesystem is mounted on it,
   then the call returns a file descriptor referring to the
   automount directory without triggering a mount.

2. https://man7.org/linux/man-pages/man2/open_by_handle_at.2.html

   name_to_handle_at() does not trigger a mount when the final
   component of the pathname is an automount point.  When a
   filesystem supports both file handles and automount points, a
   name_to_handle_at() call on an automount point will return with
   error EOVERFLOW without having increased handle_bytes.  This can
   happen since Linux 4.13 with NFS when accessing a directory which
   is on a separate filesystem on the server.  In this case, the
   automount can be triggered by adding a "/" to the end of the
   pathname.
2022-07-12 22:09:11 +08:00
Kubernetes Prow Robot
29705ce027
Merge pull request #110879 from ping035627/k8s-220630
Handle os.MkdirAll error
2022-07-12 06:06:51 -07:00
Kubernetes Prow Robot
15beb41423
Merge pull request #110538 from hwdef/update-kubectl-trans
Update the Chinese translation of kubectl
2022-07-12 04:04:50 -07:00
HaoJie Liu
4f0a0ec81c Fix:import the same package multiple times
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-12 17:41:37 +08:00
Michal Wozniak
778b8300bc fix nits 2022-07-12 10:16:00 +02:00
Michal Wozniak
2730d285cf do not store context 2022-07-12 10:13:47 +02:00
Michal Wozniak
4a3d51359a Refact GC controller to do not use stub deletePod 2022-07-12 10:13:47 +02:00
HaoJie Liu
ab4ede19f0
Fix: some typo in apimachinery/pkg
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-12 11:17:15 +08:00
zhoumingcheng
e590ab77dc Correct some wrong syntax
Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com>
2022-07-12 10:46:56 +08:00
Kubernetes Prow Robot
15f111f78f
Merge pull request #110980 from xing-yang/test_ci
Change snapshot-controller image to v4.2.1
2022-07-11 18:22:50 -07:00
Kubernetes Prow Robot
44e403f5bb
Merge pull request #111017 from SataQiu/fix-kubeadm-20220708
kubeadm: respect user specified image repository when using Kubernetes ci version
2022-07-11 16:59:01 -07:00
Kubernetes Prow Robot
a455c296fd
Merge pull request #111015 from xmcqueen/master
Capture the Container Logs for a Flaky Test
2022-07-11 16:58:50 -07:00
Kubernetes Prow Robot
3f630c415d
Merge pull request #111016 from HecarimV/fix-kobj-pod-220708
Improve the accuracy of error msg in /pkg/scheduler/internal/queue
2022-07-11 11:49:47 -07:00
Cici Huang
a421fd4834 Bump cel-go to v0.12.1 2022-07-11 17:05:32 +00:00
Brian McQueen
37d246bac1 capture the container logs on pod error to assist in debugging test failures #109295 2022-07-11 09:46:46 -07:00
Cici Huang
772a252b06 Bump cel-go to v0.12.0 2022-07-11 08:40:34 -07:00
Kubernetes Prow Robot
aebe28b5cf
Merge pull request #111059 from aojea/ginkgo2
migrate deprecate flags from ginkgo v1 to v2
2022-07-11 07:20:00 -07:00
Kubernetes Prow Robot
cb56b40d32
Merge pull request #109477 from Monokaix/golint
remove excluded staticcheck that were already fixed
2022-07-11 07:19:49 -07:00
Dave Chen
d61adab518 Stop using the deprecated Measure method
As what suggested by Ginkgo migration guide, `Measure` node was
deprecated and replaced with `It` node which creates `gmeasure.Experiment`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-11 17:40:33 +08:00
Tim Bannister
fe66c05a30
Fix link to design-proposals archive 2022-07-11 10:07:55 +01:00
Tim Bannister
facc028968
Update kube-aggregator deliverables 2022-07-11 10:07:34 +01:00
Kubernetes Prow Robot
be53d94595
Merge pull request #108792 from wongearl/modify-todo
fix CustomArgs annotation, todo describe
2022-07-11 00:21:50 -07:00
SataQiu
234dbf0318 scheduler: using math.MinInt64 instead of -math.MaxInt64 2022-07-11 14:53:18 +08:00
Dave Chen
6a82ba82b1 Revert the workaround needed to cleanup for Ginkgo V1
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-11 14:49:40 +08:00
Kubernetes Prow Robot
a3f777603b
Merge pull request #110825 from zhoumingcheng/master-unit-v4
add unit test coverage for pkg/util/node and Remove duplicate testcases for func TestGetNodeHostIPs
2022-07-10 20:55:46 -07:00
kidddddddddddddddddddddd
60b18fbf9d ingressclass 2022-07-11 09:48:45 +08:00
Kubernetes Prow Robot
b0d5769535
Merge pull request #111048 from alingse-forks/fix-with-asasalint
fix pass []any as any in variadic function
2022-07-10 18:39:47 -07:00
Stephen Heywood
6c320b2991 Fix ControllerRevision e2e test 2022-07-11 13:38:24 +12:00
Antonio Ojea
e3ded9c8d6 migrate deprecate flags from ginkgo v1 to v2 2022-07-11 00:11:35 +02:00
alingse
3bf9a559b6 fix pass []any as any in variadic function 2022-07-09 18:53:54 +08:00
SataQiu
723cadf750 kubeadm: respect user specified image repository when using Kubernetes ci version 2022-07-09 16:24:51 +08:00
Kubernetes Prow Robot
9d577d8a29
Merge pull request #110576 from DangerOnTheRanger/cel-e2e-part2
Add second set of additional CRD validation E2E tests
2022-07-08 21:41:58 -07:00
Kubernetes Prow Robot
00ea892a0f
Merge pull request #110564 from j4m3s-s/add-ports-doc-fix
Fix description of Ports in PodSpec
2022-07-08 21:41:46 -07:00
Kubernetes Prow Robot
1d954908ba
Merge pull request #109394 from pohly/storage-capacity-storage-version
Kubernetes 1.25: CSIStorageCapacity: use v1 as storage version
2022-07-08 19:35:51 -07:00
Kubernetes Prow Robot
1d7829a964
Merge pull request #110975 from 0xff-dev/cleanup-unused-func
clean up unused function 'GetServiceHealthCheckPathPort'
2022-07-08 18:03:57 -07:00
Kubernetes Prow Robot
9cf41a6766
Merge pull request #110899 from HecarimV/update-doc-220701
Remove invalid comments in hack/lib/version.sh
2022-07-08 18:03:46 -07:00
Kubernetes Prow Robot
2a70749717
Merge pull request #111034 from bertinatto/bump-azure-disk-timeouts
e2e: bump Azure Disk in-tree timeouts
2022-07-08 16:05:57 -07:00
Kubernetes Prow Robot
6e8331932b
Merge pull request #111005 from DangerOnTheRanger/cel-cost-limit-integration-test
Add x-kubernetes-validations cost limit integration test
2022-07-08 16:05:46 -07:00
Andy Goldstein
a899441484
quota: add an update filter
Fix a TODO to plumb an update filter from above in the resource quota
monitor code that was handling update events for quota-able objects,
instead of hard-coding the logic in the resource quota monitor.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2022-07-08 18:39:55 -04:00
Kubernetes Prow Robot
eba254b4ee
Merge pull request #111026 from alculquicondor/job-conflicts
Do not skip job requeue in conflict error
2022-07-08 13:23:46 -07:00
Jiahui Feng
0dc3957bb5 generated: ./hack/update-vendor.sh 2022-07-08 12:03:43 -07:00
Jiahui Feng
8b54276b23 metrics for CEL compilation and evaluation. 2022-07-08 10:41:18 -07:00
Aldo Culquicondor
b492f49c9f Do not skip job requeue in conflict error
Change-Id: Ie97977887a1cc3de58922d73dce92ae1965965bf
2022-07-08 16:14:32 +00:00
Kubernetes Prow Robot
9dc13f4f57
Merge pull request #111011 from ii/promote-patch-pod-status-test
Promote patchCoreV1NamespacedPodStatus test - +1 endpoint
2022-07-08 09:07:52 -07:00
Kubernetes Prow Robot
49738aaf17
Merge pull request #110916 from zhoumingcheng/master-code-v1
Correct wrong syntax
2022-07-08 09:07:46 -07:00
kerthcet
0971577c3e Cleanup: remove validation of removedPlugins
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-07-08 23:19:59 +08:00
Fabio Bertinatto
eefa0fd2ed e2e: bump Azure Disk in-tree timeouts
Some operations with Azure Disk volumes can be arbitrarily slow
sometimes. This causes CI flakes that are hard to debug.
Bumping the timeouts has sown to improve or eliminate this issue.
2022-07-08 11:46:26 -03:00
Kubernetes Prow Robot
3251d4cff6
Merge pull request #111010 from thockin/remove-refs-to-EndpointSliceNodeName
Remove obsolete refs to gate EndpointSliceNodeName
2022-07-08 05:41:47 -07:00
HaoJie Liu
5639a4000f
Detailed printed error message
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-08 16:58:29 +08:00
Patrick Ohly
2e8fa3ee6b CSIStorageCapacity: use v1 as storage version
This can be done because downgrades are only supported down to 1.24 and that
release supports v1.
2022-07-08 10:06:06 +02:00