Commit Graph

121061 Commits

Author SHA1 Message Date
Toru Komatsu
3a4c35cc89
Comment on QHint for CSILimit when CSINodes are added (#122758)
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-02-02 22:16:20 -08:00
Kubernetes Prow Robot
4a4f5dbc07
Merge pull request #123093 from SataQiu/revert-115575-fix-20230207
Revert "kubeadm: fix a bug where the uploaded kubelet configuration in kube-system/kubelet-config ConfigMap does not respect user patch"
2024-02-02 12:47:32 -08:00
Kubernetes Prow Robot
42941cb88a
Merge pull request #122635 from carlory/KEP-2799
Promote LegacyServiceAccountTokenCleanUp to GA
2024-02-02 12:47:23 -08:00
Kubernetes Prow Robot
77566f2486
Merge pull request #123036 from jsafrane/remove-invalid-vsphere-tests
Update in-tree vSphere tests
2024-02-02 11:35:23 -08:00
Kubernetes Prow Robot
173cf18920
Merge pull request #123077 from neolit123/1.30-fix-upgrade-node-root-fs
kubeadm: better checks if the node is CP during "upgrade node"
2024-02-02 08:40:11 -08:00
Kubernetes Prow Robot
2c5105e7b8
Merge pull request #123032 from carlory/fix-122960
fix GenerateUnmapVolumeFunc missing globalUnmapPath
2024-02-02 05:39:03 -08:00
Lubomir I. Ivanov
774d666d1c kubeadm: better checks if the node is CP during "upgrade node"
Currently --rootfs does not work with "upgrade node" for CP nodes
because the only check of CP nodes is performed in newNodeOptions()
which runs before the root kubeadm command is run, thus the chroot()
path coming from --rootfs is not applied yet.

To work around that call the "isControlPlaneNode" check when
constructing the command data on command runtime.
2024-02-02 15:00:20 +02:00
Shida Qiu
f47c2a1ba6
Revert "kubeadm: fix a bug where the uploaded kubelet configuration in kube-system/kubelet-config ConfigMap does not respect user patch" 2024-02-02 20:34:30 +08:00
Kubernetes Prow Robot
d29f38efd8
Merge pull request #123082 from alexzielenski/apiserver/vap-crd-test-flake-fix
Fix test flake: remove unnecessary skip healthz check from test
2024-02-02 02:11:41 -08:00
Kubernetes Prow Robot
278ea691e0
Merge pull request #122946 from NoicFank/enhance-sheduler-waiting-pods
enhancement(scheduler): share waitingPods among profiles
2024-02-02 02:11:32 -08:00
Kubernetes Prow Robot
2372837838
Merge pull request #123054 from neolit123/1.30-v1beta4-encryption-enhance
kubeadm: enhance encryption algorithm support in v1beta4
2024-02-02 01:11:09 -08:00
Kubernetes Prow Robot
ba9dd6ba4b
Merge pull request #122967 from burgerdev/fix-kubeadm-DeployedDNSAddon
kubeadm: support digests in DeployedDNSAddon()
2024-02-01 20:50:14 -08:00
Masashi Honma
9027049f2c local-up-cluster.sh: Use config file instead of flags for kubelet
Because /tmp/kubelet.log shows trailing log.

Flag --container-runtime-endpoint has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2024-02-02 09:39:05 +09:00
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
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
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