Commit Graph

18883 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f6416ebf26 Merge pull request #118637 from Ritikaa96/kubectl-explain-help-improvment
Details added in kubectl explain help
2023-06-23 21:19:06 -07:00
Kubernetes Prow Robot
98455a5b42 Merge pull request #118686 from aojea/inmidiate
always execute condition for wait.PollUntilContextTimeout with
2023-06-23 09:25:23 -07:00
Kubernetes Prow Robot
4f6a750bbf Merge pull request #115813 from atiratree/controller-aliases
Introduce controller aliases for KCM and CCM
2023-06-22 04:55:39 -07:00
Kubernetes Prow Robot
2802bbce14 Merge pull request #118793 from serathius/test-cache-bypass
Test all cases for LIST request cache bypass
2023-06-21 13:17:52 -07:00
Vihang Mehta
56cb4c9391 [bug] Update DefaultObjectDescriber to handle interface params (#118190)
* Update DefaultObjectDescriber to handle interface params

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

* Minor test cleanup for more descriptive errors

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

---------

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
2023-06-21 13:17:41 -07:00
Kubernetes Prow Robot
55fb1805a1 Merge pull request #118792 from serathius/refactor-delegate
Refactor shouldDelegateList/shouldListFromStorage to better explain d…
2023-06-21 09:03:54 -07:00
Marek Siarkowicz
406899360b Refactor shouldDelegateList/shouldListFromStorage to better explain decisions 2023-06-21 16:06:57 +02:00
Marek Siarkowicz
e4cf103c9b Test all cases for LIST request cache bypass 2023-06-21 15:15:07 +02:00
Marek Siarkowicz
a9af2de8fd Refactor WithRequireLeader to make it part of the etcd store 2023-06-21 14:23:30 +02:00
Kubernetes Prow Robot
5a1c62b9d1 Merge pull request #118763 from Shubham82/remove_AdvancedAuditing_featuregate
Remove AdvancedAuditing feature gate.
2023-06-20 17:48:32 -07:00
Kubernetes Prow Robot
2e93c65eff Merge pull request #114849 from padlar/handle-terminating-namespaces
handle event errors caused due to terminating namespaces
2023-06-20 04:52:21 -07:00
shubham82
f2e3157df0 Remove AdvancedAuditing feature gate. 2023-06-20 14:21:10 +05:30
Filip Křepinský
e5f5a9bfdb use controller names for CLI FlagSets to show the names in help 2023-06-19 15:01:01 +02:00
Filip Křepinský
cd56748ec5 reference controllers correctly from CLI help 2023-06-19 15:01:01 +02:00
Filip Křepinský
9fd8f568fe introduce CCM controller aliases and unify controller names 2023-06-19 15:01:01 +02:00
Filip Křepinský
ba1755132e support controller name aliases in GenericControllerManagerConfigurationOptions 2023-06-19 14:59:33 +02:00
Kubernetes Prow Robot
0004ce8684 Merge pull request #118689 from bzsuni/clean
[dependencies] update prometheus/client_golang v1.14.0 to v1.16.0
2023-06-18 14:46:20 -07:00
Kubernetes Prow Robot
1ff1a26426 Merge pull request #118542 from cchapla/crd_webhook_metrics_updates
Updating names from webhookconversion to conversionwebhook for apiserver
2023-06-16 10:34:19 -07:00
Ritikaa96
fff5b35023 Adding review changs to update 2023-06-16 16:33:07 +05:30
Kubernetes Prow Robot
604584d1d3 Merge pull request #118631 from champtar/ca-not-before
Make CA valid 1 hour in the past
2023-06-15 11:22:30 -07:00
Antonio Ojea
889ecf865b always execute condition for wait.PollUntilContextTimeout with
immediate=true

The API guarantees that the condition will be executed at least once
independently of the context.

Change-Id: I9ac8ed681d03f38e270c7726b482c05ca6a568ce
2023-06-15 14:23:09 +00:00
Kubernetes Prow Robot
1193ab62e2 Merge pull request #116746 from AxeZhan/csi_translate
Return name instead whole volume when error occurred in csi-translation
2023-06-15 06:50:18 -07:00
bzsuni
5aa5f1abc9 update prometheus/client_golang v1.14.0 to v1.16.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-06-15 11:24:32 +00:00
Kubernetes Prow Robot
c984d53b31 Merge pull request #117896 from kolyshkin/mount-utils-spring-cleaning
Mount utils spring cleaning and optimization
2023-06-15 01:40:17 -07:00
Kubernetes Prow Robot
78f18c1b4b Merge pull request #116894 from enj/enj/i/encrypt_resp_sanity_checks
kmsv2: add sanity checks and refine probing logic
2023-06-14 12:50:19 -07:00
Kubernetes Prow Robot
b53411ffb8 Merge pull request #118639 from bergerhoffer/cli-help-updates
Update CLI help text for grammar and consistency
2023-06-14 06:54:18 -07:00
Andrea Hoffer
a86380c781 Update CLI help text for grammar and consistency 2023-06-14 08:54:23 -04:00
Kubernetes Prow Robot
173a473803 Merge pull request #118128 from carlory/fix-issue-118120
remove helper function for unused storage feature in pkg/proxy/util
2023-06-14 04:28:18 -07:00
Ritikaa96
e213448db1 Updated kubectl explain help output 2023-06-14 12:33:18 +05:30
Kir Kolyshkin
cfbc5dc54f mount-utils: fix linter warnings in tests
Mostly "return value is not checked".

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:50:33 -07:00
Kir Kolyshkin
8ced101db5 mount-utils: stop using ioutil in tests
io/ioutil is deprecated since Go 1.16. Besides, we now have a nice
t.TempDir() function which simplifies things a lot.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:50:33 -07:00
Kir Kolyshkin
699d118d85 mount-utils: stop using ioutil
It has been deprecated since Go 1.16.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:50:33 -07:00
Kir Kolyshkin
b690450e84 mount-utils: don't reread mountinfo on newer kernels
1. Background.

Since the dawn of times mount-utils package tries to work around the bug
in the Linux kernel, which results in occasional incomplete read of
mountinfo entries (from either /proc/mounts or /proc/PID/mountinfo).
The workaround used is to read the whole file twice and compare the two
blobs. If they differ, try again.

The kernel bug is manifesting when mountinfo read is performed
concurrently with an unmount, and can easily be reproduced by running
lots of mounts and unmounts in parallel with the code reading mountinfo.
For one such reproducer, see https://github.com/kolyshkin/procfs-test.

On a Kubernetes node with lots of short-lived containers, mounts and
unmounts are quite frequent. This leads to the occasional bug, and
surely results in much more re-reads of mountinfo, because the
workaround assumes its content is more-or-less static.

The good news is, this bug was finally fixed by kernel commit
9f6c61f96f2d97, which made its way into Linux 5.8.

2. The issue.

The code still read every file at least twice, and up to 10 times. The
chance of re-reading is higher if there is a mount or unmount going on
at the same time. The result is higher system and kernel load, and
degraded performance.

3. The fix.

As the re-reading is not necessary for newer kernels, let's check the
kernel version and skip the workaround if running Linux >= 5.8.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:50:27 -07:00
Kir Kolyshkin
8c79a91133 mount-utils: isMountPointMatch: simplify and speedup
Here's before/after comparison.

[kir@kir-rhat mount-utils]$ benchstat before after
name                 old time/op    new time/op    delta
IsMountPointMatch-4     707ns ± 1%      40ns ± 1%   -94.39%  (p=0.008 n=5+5)

name                 old alloc/op   new alloc/op   delta
IsMountPointMatch-4      264B ± 0%        0B       -100.00%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
IsMountPointMatch-4      11.0 ± 0%       0.0       -100.00%  (p=0.008 n=5+5)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:35:41 -07:00
Kir Kolyshkin
404e844468 mount-utils: add isMountPointMatch test and benchmark
Add some test cases for isMountPointMatch, to prepare for its rework.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:35:41 -07:00
Kir Kolyshkin
4bb0239279 mount-utils: IsMountPoint: fix
Commit 44bea35804 added a code to return unwrapped fs.ErrNotExist
error in case filepath.EvalSymlinks failed a wrapped one.

This never worked because of a copy/paste bug.

Fix this.

Fixes: 44bea35804
Cc: Manu Gupta <manugupt1@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:35:41 -07:00
Kir Kolyshkin
167252fb5e mount-utils: format with gofumpt
gofumpt is a superset of go fmt, enabling some more strict formatting
rules, mostly to improve code readability.

No functional or code change, just formatting.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-06-13 18:35:41 -07:00
Monis Khan
55b690ee01 kmsv2: no-op refactor priming logic into its own function
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-06-13 18:24:50 -04:00
Monis Khan
15003c609d kmsv2: refine probing logic to avoid slow starts
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-06-13 16:59:23 -04:00
Monis Khan
d8150b8160 kmsv2: add a sanity check to confirm that new state is always valid
Signed-off-by: Monis Khan <mok@microsoft.com>
2023-06-13 16:34:56 -04:00
Kubernetes Prow Robot
666fc23fe4 Merge pull request #118539 from benluddy/timeout-filter-flake
Ensure timeout test handlers don't complete before timing out.
2023-06-13 09:21:58 -07:00
Kubernetes Prow Robot
bca1336021 Merge pull request #118530 from carlory/fix-issue-118276
fix Cronjob status.lastSuccessfulTime not populated by a manually triggered job
2023-06-13 08:21:59 -07:00
Ritikaa96
8c06ca68d7 Details added in kubectl explain help 2023-06-13 17:01:46 +05:30
Kubernetes Prow Robot
3b44969134 Merge pull request #118460 from serathius/componentstatuses
Make etcd component status consistent with health probes
2023-06-13 02:17:58 -07:00
Marek Siarkowicz
a60314c47e Make etcd component status consistent with health probes
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2023-06-13 10:10:29 +02:00
Kubernetes Prow Robot
d701b6be0f Merge pull request #118629 from jeremyrickard/update-publishing-bot-go11910
Update publishing-bot rules for release branches to Go 1.19.10
2023-06-12 23:31:57 -07:00
Etienne Champetier
e1735b9863 Make CA valid 1 hour in the past
When running kubeadm / installing k8s early during boot,
the CA certificate can be generated before time is synchronised
and time is jumped backward.
Make notBefore 1 hour in the past to accept small clock jump.

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
2023-06-13 01:34:41 -04:00
Kubernetes Prow Robot
b4a7427ac3 Merge pull request #118157 from deveshgoyal1000/patch-1
Update typo in k8s.po in line 2170
2023-06-12 21:28:09 -07:00
Kubernetes Prow Robot
c1154d838f Merge pull request #111992 from Abirdcfly/20220824
cleanup: delete unused AuditDynamicOptions in apiserver
2023-06-12 21:27:57 -07:00
carlory
5e048041e4 remove helper function for unused storage feature in pkg/proxy/util 2023-06-13 09:22:59 +08:00