Commit Graph

121158 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
6a4e93e776
Merge pull request #123060 from dims/update-to-runc-v1.1.12
Update to runc 1.1.12
2024-02-01 16:22:47 -08:00
Jiahui Feng
dc832c6e59 add support of variables for Type Checking. 2024-02-01 15:28:21 -08:00
Alexander Zielenski
b636984004 test: remove unnecessary skip healthz check from test
snuck in there while I was working on the test, but is ultimately not necessary to test the functionality.

skipping healthz check resulted in leaking goroutines from poststarthooks.
2024-02-01 14:50:54 -08:00
Yuki Iwai
71bf563034 Job: Stop unnecessary sting casts in validations
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-02 06:46:30 +09:00
Kubernetes Prow Robot
d2904845cd
Merge pull request #123061 from tallclair/nodelabels
Stop claiming --node-labels is alpha
2024-02-01 13:30:05 -08:00
Kubernetes Prow Robot
ac6d67d27c
Merge pull request #115282 from tkashem/panic-warning
apiserver: warning.AddWarning should not panic when request times out
2024-02-01 13:29:59 -08:00
Jiahui Feng
21ba0d59d3 refactor type checking to use CompositedCompiler. 2024-02-01 13:20:21 -08:00
Kubernetes Prow Robot
57e9981dc2
Merge pull request #122865 from pohly/e2e-framework-logging
e2e framework: unify logging, support skipping helpers
2024-02-01 09:37:02 -08:00
Abu Kashem
7cab0ad2d2
apiserver: warning should not panic when request times out 2024-02-01 11:21:22 -05:00
Kubernetes Prow Robot
440f11d83d
Merge pull request #123055 from gnufied/fix-2-rwx-expand
Fix race condition between external-resizer and kubelet
2024-02-01 07:14:28 -08:00
ah8ad3
c82c80099d add some comments, redesign style of enums in simple and long view, fix tests to these new changes 2024-02-01 14:46:05 +03:30
Rodrigo Campos
a56d483df0 kubelet/userns: Use t.TempDir()
These tests will create the userns record mapping file, so let's use a
temporal directory for that.

Without specifying one, by mistake we were using the
"/tmp/non-existant-dir.This-is-not-used-in-tests/" directory.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2024-02-01 12:02:29 +01:00
Rodrigo Campos
0f7b9cc4f5 pkg/kubelet/userns: Simplify error messages
The error we are wrapping is already verbose, let's just use minimal
wrapping as it is usually the case in go code.

Note that the error on parseUserNsFileAndRecord() can be returned to the
user, so we added some context about user namespace. Otherwise, an error
to parse the json would not be clear to which of all the json the kubelet
parses it refers to.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2024-02-01 12:02:29 +01:00
Rodrigo Campos
fdc20de500 kubelet/userns: Wrap error message
Most error messages are properly wrapped already, but this was missing.

The kubelet logs will show something like this now:

	E0201 12:00:03.505680 3007049 run.go:74] "command failed" err="failed to run Kubelet: failed to create kubelet: record pod mappings: create user namespace store: mkdir XXX: permission denied"

Before this commit, the message was not so clear:

	E0120 16:02:40.484404  474711 run.go:74] "command failed" err="failed to run Kubelet: failed to create kubelet: mkdir XXX: permission denied"

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2024-02-01 12:02:06 +01:00
Markus Rudy
065066d1ab kubeadm: support digests in DeployedDNSAddon()
kubeadm upgrade checks the migration path for the existing CoreDNS
deployment pre-flight. Migration paths are defined for CoreDNS
versions, which are derived from the image tag used in the existing
deployment.

The kubeadm ClusterConfiguration.DNS.ImageMeta supports suffixing the
tag with a digest, but at upgrade time does not derive the version
correctly from an image with digest suffix, because DeployedDNSAddon
does not deal with digests correctly. This commit makes DeployedDNSAddon
digest-aware.

Signed-off-by: Markus Rudy <mr@edgeless.systems>
2024-02-01 10:04:15 +01:00
bzsuni
1db6e434f3 build etcd image v3.5.12
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-02-01 14:34:01 +08:00
NoicFank
227c1915db enhancement(scheduler): share waitingPods among profiles 2024-02-01 10:06:23 +08:00
Tim Allclair
8bf03e83d3 Stop claiming --node-labels is alpha 2024-01-31 14:04:44 -08:00
Lubomir I. Ivanov
2cab79710d kubeadm: enhance encryption algorithm support in v1beta4
Previous v1beta4 work added support for
ClusterConfiguration.EncryptionAlgorithm, however the possible
values were limited to just "RSA" (2048 key size) and "ECDSA" (P256).

Allow more arbitrary algorithm types, that can also include key size
or curve type encoded in the name:
"RSA-2048" (default), "RSA-3072", "RSA-4096" or "ECDSA-P256".

Update the deprecation notice of the PublicKeysECDSA FeatureGate
as ideally it should be removed only after v1beta3 is removed.
2024-01-31 23:49:21 +02:00
Kubernetes Prow Robot
11b9740436
Merge pull request #121512 from HirazawaUi/add-decod-time-trace
Add decode time to the audit log
2024-01-31 12:54:17 -08:00
Kubernetes Prow Robot
fb7181792b
Merge pull request #118511 from lowang-bh/fix_spell_error
fix comment of rbac decision for NoOpinion
2024-01-31 12:54:03 -08:00
Davanum Srinivas
2dd81563a9
Update to runc 1.1.12
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-01-31 12:20:32 -08:00
Kubernetes Release Robot
60483ac182 CHANGELOG: Update directory for v1.30.0-alpha.1 release 2024-01-31 19:48:10 +00:00
Hemant Kumar
d190fa3e7d Fix race condition between external-resizer and kubelet
This fixes the race condition that could happen because
resize controller just finished volume expansiona and has only
finished marking PV and yet to mark PVC.

The workaround proposed here should not be necessary once
RecoverVolumeExpansionFailure goes GA/beta.
2024-01-31 12:23:56 -05:00
Jan Safranek
593654eaa3 Fix cleanup of file subpaths
Allow kubelet orphan cleanup to delete both files and empty directories as
subpath mount points.

A pod does not need to use a directory as a subpath, it can use a file
(unix domain socket, pipe, ...) too. Therefore the cleanup should use
`os.Remove` that deletes both files and empty directories.
2024-01-31 15:13:03 +01:00
杨军10092085
97640d3e2d fix test test should assign default SC to PVCs that have no SC set failure 2024-01-31 21:42:25 +08:00
ahmad.zo
9d4997ea69 change the extractEnum function to add limit, intent and add tests for new behaviours 2024-01-31 13:54:53 +03:30
Jan Safranek
67926c3777 Update in-tree vSphere tests
Don't implement interfaces that trigger tests with in-line and
pre-provisioned vSphere volumes.

With cloud provider removal, the in-tree vSphere tests won't be able to
create a volume in vSphere and thus test in-line volumes in Pods and
pre-provisioned PVs. Only dynamically provisioned volumes can be used for
testing, because they're provisioned by the vSphere CSI driver.
2024-01-31 10:12:20 +01:00
Kubernetes Prow Robot
a9e4f5b786
Merge pull request #123041 from dims/use-metadata-file-when-values-have-special-characters
[gce_runner] use metadata file when values have special characters
2024-01-30 23:32:24 -08:00
Huan Yan
01dbb85974 fix: correct incorrect comment & function name about SchedulingGated 2024-01-31 11:27:14 +08:00
Kubernetes Prow Robot
46c9bd1267
Merge pull request #123039 from tallclair/configutil
Clean up single use pkg/util/config
2024-01-30 18:03:54 -08:00
Kubernetes Prow Robot
7080b51ee9
Merge pull request #123038 from alculquicondor/sched_metric
Fix deprecated version for pod_scheduling_duration_seconds
2024-01-30 16:49:30 -08:00
Davanum Srinivas
717a0002b7
[gce_runner] use metadata file when values have special characters
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-01-30 15:55:51 -08:00
Aldo Culquicondor
b8c19dd1d2 Fix deprecated version for pod_scheduling_duration_seconds
Change-Id: Ia0ad9381057a4a1a4a4490861a0d7c1a7ba800cb
2024-01-30 23:41:49 +00:00
Kubernetes Prow Robot
c5de44f9a4
Merge pull request #121978 from carlory/fix-101332
Remove deprecated comment about cleanup the target_path of CSI volumes
2024-01-30 15:27:59 -08:00
Tim Allclair
77f03c1744 Don't export single-use types 2024-01-30 12:02:23 -08:00
Tim Allclair
01155f59c3 Merge pkg/util/config into pkg/kubelet/config 2024-01-30 11:57:35 -08:00
Tim Allclair
049261aca1 Delete unused config utilities 2024-01-30 11:46:18 -08:00
Kubernetes Prow Robot
922fbbf5b7
Merge pull request #123006 from dims/use-gcloud-for-gce-runner
Use gcloud for gce_runner
2024-01-30 09:42:05 -08:00
Kubernetes Prow Robot
fedb5842e5
Merge pull request #122807 from carlory/fix-121472
Fix AtomicWriter may not create user visible files after kubelet was restarted
2024-01-30 04:19:26 -08:00
carlory
e198938671 Remove deprecated comment about cleanup the target_path of CSI volumes 2024-01-30 18:47:59 +08:00
Kubernetes Prow Robot
ab986e36e9
Merge pull request #123026 from xigang/node_controller
node_controller: improve taint eviction queue AddWork args.
2024-01-30 01:33:10 -08:00
carlory
77fed9d2b7 fix GenerateUnmapVolumeFunc missing globalUnmapPath when kubelet tries to clean up all volumes that failed reconstruction. 2024-01-30 17:29:54 +08:00
ahmad.zo
0283498ab4 fix gofmt error 2024-01-30 11:23:41 +03:30
ahmad.zo
0c7281624e change style of enums 2024-01-30 10:01:12 +03:30
Kubernetes Prow Robot
4f910fe47c
Merge pull request #123003 from alexzielenski/apiserver/policy/crd-startup
ValidatingAdmissionPolicy: dont skip reconcile for unchanged policy if last sync failed
2024-01-29 20:36:41 -08:00
xigang
f589b911f8 node_controller: improve taint eviction queue add worker time args
Signed-off-by: xigang <wangxigang2014@gmail.com>
2024-01-30 10:18:59 +08:00
Kubernetes Prow Robot
65e77e7775
Merge pull request #123011 from dims/add-deprecation-notice-for-cloud-allocator-in-node-ipam-controller
Add DEPRECATION for CloudAllocator in node-ipam-controller
2024-01-29 16:23:47 -08:00
Kubernetes Prow Robot
7f5cd1961c
Merge pull request #122961 from alexanderConstantinescu/kep-3458-stable
KEP 3458 - promote to stable
2024-01-29 15:19:08 -08:00
Kubernetes Prow Robot
0ff6a00faf
Merge pull request #122889 from cpanato/update-go-122
[go] Bump images, dependencies and versions to go 1.22rc2
2024-01-29 14:13:31 -08:00