Commit Graph

120398 Commits

Author SHA1 Message Date
Lubomir I. Ivanov
26a79e4c0b kubeadm: special case context errors in GetConfigMapWithShortRetry
If some code is about to go over the context deadline,
"x/time/rate/rate.go" would return and untyped error with the string
"would exceed context deadline". If some code already exceeded
the deadline the error would be of type DeadlineExceeded.
Ignore such context errors and only store API and connectivity errors.
2024-01-18 15:35:25 +02:00
Lubomir I. Ivanov
54a6e6a772 kubeadm: keep a function with short timeout in idempotency.go
- Name the function GetConfigMapWithShortRetry to be
easier to understand that the function is with a very short timeout.
Add note that this function should be used in cases there is a
fallback to local config.
- Apply custom hardcoded interval of 50ms and timeout of 350ms to it.
Previously the fucntion used exp backoff with 5 steps up to ~340ms.
2024-01-16 17:53:21 +02:00
Lubomir I. Ivanov
5f876b9d0a kubeadm: switch from ExponentialBackoff() to PollUntilContextTimeout()
Switch to PollUntilContextTimeout() everywhere to allow
usage of the exposed timeouts in the kubeadm API. Exponential backoff
options are more difficult to expose in this regard and a bit too
detailed for the common user - i.e. have "steps", "factor" and so on.
2024-01-14 15:07:56 +02:00
Lubomir I. Ivanov
caf5311413 kubeadm: start using the Timeouts struct values
Propagate usage of the Timeout struct values.
Apply sanitazation to timeout constants in contants.go.
2024-01-14 15:07:56 +02:00
Lubomir I. Ivanov
374e41cf66 kubeadm: replace deprecated wait.Poll() and wait.PollImmediate()
Replace the usage of the deprecated wait.Poll() and
wait.PollImmediate() functions with wait.PollUntilContextTimeout().
Since we don't have piping of context around kubeadm,
use context.Background() everywhere.

Some wait.Poll() functions were converted to "immediate" as there
is no point for them to not be. This is done for consistency.

Replace the only instance of wait.JitterUntil with
wait.PollUntilContextTimeout. JitterUntil is not deprecated
but this is also done for consistency.
2024-01-14 15:07:55 +02:00
Lubomir I. Ivanov
d9e48705ff kubeadm: make the active timeouts structure accessible from anywhere
Currently, timeouts are only accessible if a kubeadm runtime.Object{}
like InitConfiguration is passed around.

Any time a config is loaded or defaulted, store the Timeouts
structure in a thread-safe way in the main kubeadm API package
with SetActiveTimeouts(). Optionally, a deep-copy can be
performed before calling SetActiveTimeouts(). Make this struct
accessible with GetActiveTimeouts(). Ensure these functions
are thread safe.

On init() make sure the struct is defaulted, so that unit
tests can work with these values.
2024-01-05 14:41:16 +02:00
Lubomir I. Ivanov
ea0fa41445 kubeadm: implement mutators for "config migrate"
When upconverting from v1beta3 to v1beta4, it appears there is no
easy way to migrate some of the timeout values such as:
  ClusterConfiguration.APIServer.TimeoutForControlPlane
to a new location:
  InitConfiguration.Timeouts.<some-timeout-field>

Yes, the internal InitConfiguratio does embed a ClusterConfiguration,
but during conversion the ClusterConfiguration is converted from an
empty source.

K8s' API machinery has ways to register custom conversion functions,
such as v1beta3.ClusterConfiguration -> internal.InitConfiguration,
but these must be triggered explicitly with a decoder.
The overall migration of fields seems very awkward.

There might be hacks around that, such as storing intermediate state,
while trying to make the fuzzer rountrip happy, but instead
mutation functions can be implemented for the internal types when
calling kubeadm's migrate code. This seems much cleaner.
2024-01-05 14:41:16 +02:00
Lubomir I. Ivanov
492c0619dc kubeadm: add a Timeouts struct to v1beta4
The struct is included in InitConfiguration, JoinConfiguration
and ResetConfiguration.

Add conversion and update defaulters and fuzzers.
Include a timeoututils.go that contains a function
to default the internal Timeouts struct.
2024-01-05 14:41:16 +02:00
Kubernetes Prow Robot
0598cec06a
Merge pull request #122530 from neolit123/1.30-v1beta4-control-reset-unmount
kubeadm: more verbose unmount logic on "reset"
2024-01-05 13:22:58 +01:00
Lubomir I. Ivanov
2f5121671f kubeadm: add ResetConfiguration.UnmountFlags
Add new a v1beta4.ResetConfiguration.UnmountFlags field that
can be used to pass in Linux unmount2() flags such as MNT_FORCE.
Default value continues to be 0 - i.e. no flags.
2024-01-05 12:58:44 +02:00
Kubernetes Prow Robot
09a5049ca7
Merge pull request #122570 from bzsuni/ut/networking/servicecidr
KEP-1880 Add ut for pkg/registry/networking/servicecidr
2024-01-04 22:03:32 +01:00
Kubernetes Prow Robot
9bd0ef5f17
Merge pull request #122558 from linxiulei/webhook-http2
Use http/2 for localhost webhook
2024-01-04 19:11:26 +01:00
Kubernetes Prow Robot
6427e2c9c8
Merge pull request #122578 from carlory/lock-default-ConsistentHTTPGetHandlers
lock GA feature-gate ConsistentHTTPGetHandlers to default
2024-01-04 18:00:52 +01:00
Kubernetes Prow Robot
0babde6bac
Merge pull request #122475 from pacoxu/patch-9
fix nil pointer dereference when EventedPLEG is enabled
2024-01-04 18:00:43 +01:00
Kubernetes Prow Robot
c0dc42073d
Merge pull request #122373 from danwinship/linux-proxy
Properly build-tag the Linux kube-proxy backend code
2024-01-04 18:00:34 +01:00
Kubernetes Prow Robot
91c57de06e
Merge pull request #122290 from andrewsykim/ccm-version-bump
cluster: bump cloud-provider-gcp image verison to v28.2.1
2024-01-04 18:00:24 +01:00
Kubernetes Prow Robot
3cae5d9a7d
Merge pull request #122271 from saschagrunert/cri-tools-v1.29
Update cri-tools to v1.29.0
2024-01-04 18:00:15 +01:00
Kubernetes Prow Robot
7db7824d85
Merge pull request #122178 from saschagrunert/cni-plugins
Update cni-plugins to v1.4.0
2024-01-04 18:00:07 +01:00
Kubernetes Prow Robot
a21487f78b
Merge pull request #122138 from ii2day/ga/remove_KubeletPodResourcesGetAllocatable
Remove GA featuregate about KubeletPodResourcesGetAllocatable in 1.30
2024-01-04 17:59:57 +01:00
Kubernetes Prow Robot
744b2db652
Merge pull request #122135 from Rei1010/sidecarContainerToBeta
Add SidecarContainers feature beta version
2024-01-04 17:59:48 +01:00
Kubernetes Prow Robot
2b1ccec47e
Merge pull request #122087 from fatsheep9146/fix-kubelet-trace-broke
fix kubelet trace broke in 1.28
2024-01-04 17:59:39 +01:00
Kubernetes Prow Robot
e1576c8e43
Merge pull request #121924 from saschagrunert/leaky
Remove `leaky` package and move `PodInfraContainerName` to staging
2024-01-04 17:59:30 +01:00
Kubernetes Prow Robot
4cc0af1d16
Merge pull request #121917 from SataQiu/clean-import-hack
Remove import hack about k8s.io/utils/clock/testing
2024-01-04 17:59:21 +01:00
Kubernetes Prow Robot
c96d7a5b5a
Merge pull request #121774 from charles-chenzz/increase_timeout_in_dra_shouldTimeOut
increase timeout in fakeDraDriverGrpcServer to fix flake
2024-01-04 17:59:12 +01:00
Kubernetes Prow Robot
c147e507e8
Merge pull request #121729 from gjkim42/promote-sidecar-e2e-to-beta
Remove NodeAlphaFeature label from sidecar e2e tests
2024-01-04 17:59:03 +01:00
Kubernetes Prow Robot
2efed1f1cb
Merge pull request #120291 from lzhecheng/fix-credentialprovider-win-bin-path
Fix Windows credential provider cannot find binary
2024-01-04 17:58:54 +01:00
Kubernetes Prow Robot
f12529c2f2
Merge pull request #118756 from sxllwx/bugfix/cascade-ctx
namespace-controller: Correctly cascade ctx when making API calls
2024-01-04 17:58:45 +01:00
Lubomir I. Ivanov
d6bfd7daeb kubeadm: throw errors on unmount instead of warnings
Instead of warnings when syscall.Unmount() causes errors,
store all the errors in an aggregate. Abort the reset operation if
at least one unmount error was encountered.
2024-01-04 18:30:40 +02:00
Kubernetes Prow Robot
014149d66e
Merge pull request #121565 from srivastav-abhishek/logs_test_datarace
[FLAKE] Fixed UT pkg/kubelet/kuberuntime/logs/TestReadRotatedLog caused due to data race
2024-01-04 16:49:23 +01:00
Kubernetes Prow Robot
88d497d401
Merge pull request #118626 from borg-land/use-e2-instance-types
Switch to e2 machine types
2024-01-04 16:49:14 +01:00
bzsuni
289bd72631 Add ut for pkg/registry/networking/servicecidr
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-01-04 23:09:29 +08:00
Kubernetes Prow Robot
692be54671
Merge pull request #122508 from carlory/fix-122337
remove wrong warning event (FileSystemResizeFailed) for pod
2024-01-04 14:42:49 +01:00
Kubernetes Prow Robot
a65dcd616e
Merge pull request #122086 from bzsuni/ga/ExpandedDNSConfig
Remove GA featuregate about ExpandedDNSConfig in 1.30
2024-01-04 14:42:42 +01:00
Kubernetes Prow Robot
ec8f7b2600
Merge pull request #122576 from carlory/remove-azurefile
removed the deprecated azureFile in-tree storage plugin
2024-01-04 13:25:05 +01:00
Eric Lin
246e69fb99 Use http/2 for localhost webhook
Signed-off-by: Eric Lin <exlin@google.com>
2024-01-04 09:09:10 +00:00
carlory
55c5db172e lock GA feature-gate ConsistentHTTPGetHandlers to default 2024-01-04 15:12:08 +08:00
carlory
55e1646fa4 removed the deprecated azureFile in-tree storage plugin 2024-01-04 14:41:33 +08:00
Kubernetes Prow Robot
6aac45ff1e
Merge pull request #122565 from dims/save-a-list-of-images-used-by-e2e.test
Save a list of images used by e2e.test
2024-01-03 20:33:33 +01:00
Kubernetes Prow Robot
2c96352cc4
Merge pull request #122240 from aravindhp/nlq-only-select-linux-nodes
e2e: only select linux nodes for NodeLogQuery tests
2024-01-03 20:33:24 +01:00
Kubernetes Prow Robot
cacdf6c707
Merge pull request #122023 from ardaguclu/set-credentials-exec-flags
kubectl config set-credentials: Add InteractiveMode and ProvideClusterInfo flags
2024-01-03 17:21:06 +01:00
Kubernetes Prow Robot
838536f664
Merge pull request #122468 from carlory/remove-fg-RemoveSelfLink
remove GA featuregate RemoveSelfLink
2024-01-03 16:16:25 +01:00
Kubernetes Prow Robot
a7af34e1b8
Merge pull request #122347 from aramase/aramase/c/move_kms_apis
kmsv2: move encryption config types to standard API server config location
2024-01-03 16:16:18 +01:00
Kubernetes Prow Robot
8609b8c22c
Merge pull request #119779 from sanposhiho/prefilterexec
run all PreFilter when the preemption will happen later in the same scheduling cycle
2024-01-03 16:16:09 +01:00
Davanum Srinivas
a3c4a60995
Save a list of images used by e2e.test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-01-03 08:07:47 -05:00
Kubernetes Prow Robot
c015565db3
Merge pull request #122449 from carlory/kep-3751-api-changes
ValidateVolumeAttributesClassUpdate also validates new vac object.
2024-01-03 10:29:48 +01:00
Kubernetes Prow Robot
fa66a37fd9
Merge pull request #122564 from marosset/remove-big-windows-e2e-image
Removing Windows image from e2e test image utils
2024-01-03 02:19:13 +01:00
Mark Rossetti
2e8e2989d1
Removing Windows image from e2e test image utils 2024-01-02 15:53:12 -08:00
Kubernetes Prow Robot
ff4cd7b6f5
Merge pull request #122556 from dims/remove-unused-csi-hostpath-testing-yaml
Remove unused csi-hostpath-testing.yaml
2024-01-03 00:38:15 +01:00
Kubernetes Prow Robot
c686334d41
Merge pull request #122560 from aramase/aramase/c/add_unique_comment
[StructuredAuthnConfig] add comment for extra keys unique requirement
2024-01-02 23:26:28 +01:00
Anish Ramasekar
af8da8e01c
[StructuredAuthnConfig] add comment for extra keys unique requirement
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2024-01-02 19:58:20 +00:00