Commit Graph

12678 Commits

Author SHA1 Message Date
Stanislav Láznička
c36b1c901f KCM: CTB publisher: tolerate NotFound during discovery 2025-03-11 18:07:33 +01:00
Stanislav Láznička
5b3b68a3a1 KCM: CTBPublisher: use generics to handle both alpha/beta APIs 2025-03-11 18:07:29 +01:00
Stanislav Láznička
e0f536bf1f use the ClusterTrustBundles beta API 2025-03-11 18:07:24 +01:00
Kubernetes Prow Robot
e9a3d99f37 Merge pull request #129826 from danwinship/iptables-constructors
fix up iptables construction, kubelet iptables startup messages
2025-03-11 01:17:45 -07:00
Tim Hockin
e54719bb66 Use randfill, do API renames 2025-03-08 15:18:00 -08:00
Dan Winship
8c98dee1ed Add utiliptables.NewDualStack
Basically all callers want dual-stack-if-possible, so simplify that.

Also, tweak the startup-time checking in kubelet to treat "no iptables
support" as interesting but not an error.
2025-03-08 10:14:17 -05:00
Dan Winship
9c98d29795 Remove exec arg from utiliptables.New
It was there so you could mock the results via a FakeExec, but these
days any unit tests outside of pkg/util/iptables that want to mock
iptables results use a FakeIPTables instead of a real
utiliptables.Interface with a FakeExec.
2025-03-08 10:11:15 -05:00
Kubernetes Prow Robot
1d88598555 Merge pull request #130561 from danwinship/more-misc-proxy-cleanup
more misc proxy cleanup
2025-03-07 17:09:44 -08:00
Dan Winship
b5e9a8262e Remove exec arg from utilipset.New
Historically it took an exec argument so you could pass a FakeExec to
mock its behavior in unit tests, but it has a fake implementation now
that is much more useful for unit tests than trying to use the real
implementation with a fake exec. (The unit tests still use fake execs,
but they don't need to use a public constructor.) So remove the exec
args from the public constructors.
2025-03-07 10:43:52 -05:00
Dan Winship
36f5820ad1 Remove some unused proxy args/fields
Remove the utilexec.Interface args from the iptables/ipvs constructors
(which have been unused since the conntrack cleanup code was ported to
netlink).

Remove the EventRecorder fields from the iptables/ipvs Proxiers, which
have been unused since we removed the port-opener code in 2022.

Remove the strictARP field from the ipvs Proxier, which has apparently
always been unused (strictARP is only looked at at construct time).
2025-03-07 10:43:45 -05:00
Kubernetes Prow Robot
9d45ea8b9d Merge pull request #128586 from mortent/DRAPrioritizedList
Prioritized Alternatives in Device Requests
2025-03-06 21:01:44 -08:00
Kubernetes Prow Robot
eacb9beec1 Merge pull request #130345 from HirazawaUi/kubeadm-yaml-json
kubeadm: Replace the yaml in the log/comments with a generic term.
2025-03-03 16:59:48 -08:00
HirazawaUi
9a843790a3 Adding tests for consistency 2025-03-03 21:10:02 +08:00
HirazawaUi
a94403e942 add BytesToXConfiguration function 2025-03-03 21:08:02 +08:00
HirazawaUi
77647cdfc3 rename SplitYAMLDocuments function 2025-03-03 18:37:52 +08:00
HirazawaUi
2d8d972cb8 Add warning logs for uninteresting kind 2025-03-03 18:35:50 +08:00
HirazawaUi
6a59c98a9e distinguish between YAML and JSON file formats during log output 2025-03-03 18:35:17 +08:00
Morten Torkildsen
36d8a44b9c DRA: Update controller for Prioritized Alternatives in Device Requests 2025-02-28 19:32:59 +00:00
Kubernetes Prow Robot
a0be82d80d Merge pull request #128987 from Henrywu573/kubescheduler_statuz
Add statusz endpoint for kube-scheduler
2025-02-27 18:50:29 -08:00
Monokaix
e5becd01c8 correct ResyncPeriod comments
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-02-27 15:04:07 +08:00
Kubernetes Prow Robot
1b4c3483ce Merge pull request #127577 from vaibhav2107/eviction-hard
Added the MergeDefaultEvictionSettings Kubelet Config
2025-02-26 12:10:30 -08:00
Kubernetes Prow Robot
e1fc73d251 Merge pull request #130325 from pohly/test-integration-apiserver-defaults
test/integration: use default API groups in test apiserver
2025-02-25 11:08:30 -08:00
vaibhav2107
a97c6a7045 Added the mergeDefaultEvictionSettings Kubelet Config 2025-02-24 23:06:06 +05:30
Patrick Ohly
56bd8d86a5 test/integration: use default API groups in test apiserver
The goal is to make the test apiserver behave as much as kube-apiserver as
possible. This ensures that tests are as realistic as possible out-of-the-box.
If a test needs a special setup, then that should be visible in the test
because it passes additional flags or options.

One historic deviation from that goal was enabling all API groups. That
change (from 7185624688) gets reverted and tests
which happened to rely on this get updated.
2025-02-24 10:20:06 +01:00
Kubernetes Prow Robot
f876a7d469 Merge pull request #130328 from richabanker/flagsz-apiserver
Remove Flagz feature-gate check before populating serverRunOptions.Flagz
2025-02-21 11:36:25 -08:00
Kubernetes Prow Robot
19feb379b3 Merge pull request #130289 from marosset/windows-unit-tests-cmd-kubeadm-app-util-static-pod-fixes
Fixing k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod unit tests on Windows
2025-02-20 15:00:26 -08:00
Henry Wu
4e651addd8 Add statusz endpoint for kube-scheduler 2025-02-20 13:16:06 -08:00
Richa Banker
d5c804b14d Remove Flagz feature-gate check before populating serverRunOptions.Flagz 2025-02-20 12:43:11 -08:00
Kubernetes Prow Robot
72333a838a Merge pull request #130287 from marosset/windows-unit-tests-cmd-kubeadm-app-util-dryrun-fixes
Fixing k8s.io/kubernetes/cmd/kubeadm/app/util/dryrun unit tests on Windows
2025-02-19 18:20:26 -08:00
Mark Rossetti
c186de0080 Fixing k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod unit tests on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2025-02-19 12:51:19 -08:00
Mark Rossetti
697293906a Fixing k8s.io/kubernetes/cmd/kubeadm/app/util/dryrun unit tests on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2025-02-19 12:27:34 -08:00
Kubernetes Prow Robot
0d996fee31 Merge pull request #130202 from SataQiu/fix-20250216
kubeadm: fix panic when no UpgradeConfiguration was found in the config file
2025-02-18 13:24:33 -08:00
SataQiu
9315ddbb65 kubeadm: fix panic when no UpgradeConfiguration was found in the config file 2025-02-18 22:49:40 +08:00
carlory
2382c0125b remove Removed generally available feature-gate DisableCloudProviders and DisableKubeletCloudCredentialProviders
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 09:59:59 +08:00
carlory
29e5d42979 kube-apiserver: removed the deprecated the --cloud-provider and --cloud-config CLI parameters.
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 09:54:49 +08:00
Kubernetes Prow Robot
1e38c86893 Merge pull request #129996 from yongruilin/fix-flag-apiserver
fix: apiserver flagz to response actual parsed flags
2025-02-16 13:56:23 -08:00
Kubernetes Prow Robot
d7774fce9a Merge pull request #129653 from danwinship/nftables-ga
KEP-3866 nftables kube-proxy to GA
2025-02-13 08:42:20 -08:00
Dan Winship
83595f500a NFTablesProxyMode to GA 2025-02-13 10:27:14 -05:00
Kubernetes Prow Robot
3d342e9b74 Merge pull request #130067 from kerthcet/fix/readyz
Update the error log
2025-02-11 07:48:07 -08:00
Kubernetes Prow Robot
e30c8a3dde Merge pull request #130040 from HirazawaUi/make-error-consistent
kubeadm: make kubeadm init and join output the same error
2025-02-11 07:47:58 -08:00
HirazawaUi
ab02cda168 make error consistent 2025-02-11 21:21:10 +08:00
kerthcet
676116359d Scheduler: update the error log
Signed-off-by: kerthcet <kerthcet@gmail.com>
2025-02-11 20:48:37 +08:00
Kubernetes Prow Robot
3e4e2437e4 Merge pull request #130045 from carlory/kubeadm-exec-check
kubeadm: update preflight check
2025-02-11 01:21:57 -08:00
carlory
4facb87224 kubeadm: update preflight check
Co-authored-by: Yusuke Abe <chansuke0@gmail.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-11 11:06:43 +08:00
SataQiu
dc51c81751 kubeadm: update v1beta4 docs 2025-02-10 21:34:48 +08:00
yongruilin
b1d72a5b7c test: Add emulated-version flag verification in flagz test 2025-02-07 22:18:36 -08:00
yongruilin
c8804bff6d fix: flagz endpoint to return parsed flags value 2025-02-07 14:17:10 -08:00
SataQiu
7edc7fbd47 kubeadm: add --etcd-upgrade flag to kubeadm upgrade plan 2025-02-07 15:40:00 +08:00
Siyuan Zhang
8fc3a33454 Refactor compatibility version code
Replace DefaultComponentGlobalsRegistry with new instance of componentGlobalsRegistry in test api server.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move kube effective version validation out of component base.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move DefaultComponentGlobalsRegistry out of component base.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move ComponentGlobalsRegistry out of featuregate pkg.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

remove usage of DefaultComponentGlobalsRegistry in test files.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

change non-test DefaultKubeEffectiveVersion to use DefaultBuildEffectiveVersion.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Restore useDefaultBuildBinaryVersion in effective version.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

rename DefaultKubeEffectiveVersion to DefaultKubeEffectiveVersionForTest.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

pass options.ComponentGlobalsRegistry into config for controller manager and scheduler.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Pass apiserver effective version to DefaultResourceEncodingConfig.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

change statusz registry to take effective version from the components.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Address review comments

Signed-off-by: Siyuan Zhang <sizhang@google.com>

update vendor

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-05 16:10:53 -08:00
Kubernetes Prow Robot
22f25efc2c Merge pull request #128991 from Henrywu573/cm-statuz
Add statusz endpoint for kube-controller-manager
2025-02-05 15:54:15 -08:00