Commit Graph

12593 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
afc4647816 Merge pull request #129561 from mozillazg/patch-1
kubeadm: fix a wrong comment
2025-01-11 06:38:32 -08:00
Huang Huang
018ee41e6f kubeadm: fix a wrong comment
apply commit suggestion

Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2025-01-11 11:28:45 +00:00
bzsuni
fb47caa689 Update coredns to 1.12.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-01-08 03:34:41 +00:00
Paco Xu
02fbcb4e69 kubeadm: should not warn on non-detect sandbox image 2025-01-06 14:23:18 +08:00
Kubernetes Prow Robot
87cf098f34 Merge pull request #129452 from SataQiu/fix-20250102
kubeadm: fix a bug where the 'node.skipPhases' in UpgradeConfiguration is not respected by 'kubeadm upgrade node' command
2025-01-02 12:00:14 +01:00
SataQiu
4c6deed07e kubeadm: fix a bug where the node.skipPhases in UpgradeNodeConfiguration is not respected by 'kubeadm upgrade node' 2025-01-02 17:44:05 +08:00
Kubernetes Prow Robot
3c229949f9 Merge pull request #129401 from pacoxu/kubeadm-upgrade-precheck
kubeadm: add kernel version check for upgrade
2025-01-02 03:50:13 +01:00
SataQiu
2fd16abbe8 kubeadm: bump supported etcd version 2024-12-31 10:11:38 +08:00
Paco Xu
2c305d71f0 kubeadm: add system verification check(including kernel version check) for upgrade 2024-12-30 18:17:56 +08:00
Lubomir I. Ivanov
b406ba5cc3 kubeadm: skip disabled addons in clusterconfig on upgrade
If an addon is disabled in the ClusterConfiguration skip it
on upgrade in the repsective subphase of 'addons'.
2024-12-28 12:20:00 +02:00
Kubernetes Prow Robot
3ec9c7f4d2 Merge pull request #128811 from zhifei92/statusz
add statusz endpoint  for kubelet
2024-12-22 11:24:10 +01:00
Kubernetes Prow Robot
80379db5d5 Merge pull request #129279 from HirazawaUi/remove-cri-anno
[NodeLocalCRISocket]: remove kubeadm.alpha.kubernetes.io/cri-socket annotation when kubeadm upgrade
2024-12-21 09:46:09 +01:00
HirazawaUi
7c515cd1cb remove kubeadm.alpha.kubernetes.io/cri-socket annotation when kubeadm upgrade 2024-12-21 14:57:57 +08:00
Kubernetes Prow Robot
646e7f04d9 Merge pull request #129317 from carlory/kubeadm-touch
kubeadm: remove preflight check for `touch` on Linux nodes.
2024-12-21 05:00:09 +01:00
Kubernetes Prow Robot
438bc5d44e Merge pull request #128818 from yongruilin/flagz-kube-scheduler
feat: Add flagz endpoint for kube-scheduler
2024-12-20 20:02:08 +01:00
Kubernetes Prow Robot
fab7593a29 Merge pull request #129278 from HirazawaUi/remove-kubelet-args
[NodeLocalCRISocket]:  Remove `container-runtime-endpoint` flag when kubeadm upgrade
2024-12-20 11:26:08 +01:00
yongruilin
db6bf02217 feat: Add flagz endpoint for kube-scheduler 2024-12-19 19:52:46 -08:00
carlory
4396511e43 kubeadm: removed preflight check for touch on Linux nodes.
Signed-off-by: carlory <baofa.fan@daocloud.io>
2024-12-20 11:28:30 +08:00
HirazawaUi
769e7990d6 remove container-runtime-endpoint flag when upgrade 2024-12-20 08:03:10 +08:00
Stephen Kitt
efdb735750 kubeadm: fix idempotency retain, address deprecation
CreateOrRetain is supposed to operate on an object name which isn't
necessarily the given object's name (for use in migrations), this
restores that feature.

Replace all uses of deprecated functions with their generic variants.

Providing the context externally isn't useful right now, drop it from
the new functions and use context.Background() where needed.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-12-19 14:29:09 +01:00
Kubernetes Prow Robot
29101e9774 Merge pull request #128650 from skitt/kubeadm-generic-idempotency
kubeadm: generalise CreateOrUpdate etc.
2024-12-19 10:32:08 +01:00
Stephen Kitt
db4c509e71 kubeadm: generalise CreateOrUpdate etc.
This uses generics to generalise the various CreateOrUpdate,
CreateOrRetain etc. functions. Where appropriate, the context is added
as an initial argument to the new functions.

ConfigMapMutator isn't used anywhere else, so it's dropped in favour
of the private objectMutator added in this commit.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-12-19 09:19:29 +01:00
Kubernetes Prow Robot
e305c33988 Merge pull request #126387 from pohly/log-client-go-tools-cache-apis
client-go/tools/cache: add APIs with context parameter
2024-12-18 20:00:09 +01:00
Patrick Ohly
4638ba9716 client-go/tools/cache: add APIs with context parameter
The context is used for cancellation and to support contextual logging.

In most cases, alternative *WithContext APIs get added, except for
NewIntegerResourceVersionMutationCache where code searches indicate that the
API is not used downstream.

An API break around SharedInformer couldn't be avoided because the
alternative (keeping the interface unchanged and adding a second one with
the new method) would have been worse. controller-runtime needs to be updated
because it implements that interface in a test package. Downstream consumers of
controller-runtime will work unless they use those test package.

Converting Kubernetes to use the other new alternatives will follow. In the
meantime, usage of the new alternatives cannot be enforced via logcheck
yet (see https://github.com/kubernetes/kubernetes/issues/126379 for the
process).

Passing context through and checking it for cancellation is tricky for event
handlers. A better approach is to map the context cancellation to the normal
removal of an event handler via a helper goroutine. Thanks to the new
HandleErrorWithLogr and HandleCrashWithLogr, remembering the logger is
sufficient for handling problems at runtime.
2024-12-18 18:45:02 +01:00
Kubernetes Prow Robot
4a0b0365ef Merge pull request #129074 from siyuanfoundation/fgv
Add Validation to versioned feature specs.
2024-12-18 06:16:52 +01:00
Siyuan Zhang
00dab9dffa Add Validation to versioned feature specs.
Co-authored-by: Jordan Liggitt <liggitt@google.com>
Co-authored-by: Siyuan Zhang <sizhang@google.com>

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-12-17 15:59:02 -08:00
Kubernetes Prow Robot
a01337b17f Merge pull request #129250 from pacoxu/kubeadm-owners-update
kubeadm: update owners for v1.33
2024-12-18 00:40:59 +01:00
Kubernetes Prow Robot
107be8fecc Merge pull request #129205 from tosi3k/wc-configurable-retention
Configure watch cache history window based on request timeout
2024-12-17 20:50:58 +01:00
Antoni Zawodny
4a2b7ee569 Configure watch cache history window based on request timeout 2024-12-17 15:06:00 +01:00
Paco Xu
fd8a61ae1b kubeadm: update owners for v1.33 2024-12-17 17:16:39 +08:00
Kubernetes Prow Robot
e818574885 Merge pull request #129131 from pacoxu/kubeadm-iptables-check
kubeadm: remove iptables/ip/tc/ethtool binary preflight check
2024-12-14 08:14:53 +01:00
Paco Xu
39e7db9cc9 kubeadm: remove iptables/ip/tc/ethtool binary preflight check 2024-12-13 16:11:07 +08:00
Kubernetes Prow Robot
e8615e2712 Merge pull request #129054 from pohly/remove-import-name
remove import doc comments
2024-12-12 09:58:35 +01:00
Kubernetes Prow Robot
f83f78dbd5 Merge pull request #129141 from vlttnv/patch-1
Fix grammar mistake in kubeadm config v1beta4
2024-12-12 06:41:02 +00:00
Kubernetes Prow Robot
3e4e1364db Merge pull request #129035 from pohly/prune-junit-xml-failure-fix
prune-junit-xml: join stdout when merging tests
2024-12-12 05:29:06 +00:00
Kubernetes Prow Robot
1f415b4e13 Merge pull request #129006 from kokes/kubeadm_rereading_kubeconfigs
kubeadm: Do not read kubeconfig from disk repeatedly in the init phase
2024-12-12 05:28:38 +00:00
Kubernetes Prow Robot
a19c27d3e3 Merge pull request #128985 from yongruilin/flagz-kube-proxy
feat: Add flagz endpoint for kube-proxy
2024-12-12 05:28:24 +00:00
Kubernetes Prow Robot
572eda0ac9 Merge pull request #128799 from srivastav-abhishek/fix-preflight-tests
Remove user privilege checks from preflight tests
2024-12-12 04:12:25 +00:00
Kubernetes Prow Robot
99fb612062 Merge pull request #128698 from danwinship/doc-nftables-mode
Document the existence of nftables as a kube-proxy mode.
2024-12-12 02:57:42 +00:00
yongruilin
ebb02bb6cc feat: Adds flagz page for kube-proxy 2024-12-11 12:01:47 -08:00
Valentin
9bd5dc86d3 Fix grammar mistake in kubeadm config v1beta4
Fix grammar mistake in kubeadm configuration documentation - use "a YAML" instead of "an YAML" since YAML starts with a consonant sound.
2024-12-10 14:00:38 +02:00
zhifei92
816cd40280 Unify ComponentKubelet and add unit tests. 2024-12-10 10:32:14 +08:00
Patrick Ohly
8a908e0c0b remove import doc comments
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:

- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.

This commit was generated with
   sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')

Everything was included, except for
   package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
2024-12-02 16:59:34 +01:00
Patrick Ohly
b330eeac2f prune-junit-xml: preserve system out + err text during test pruning
When stripping out log messages from the failure text, the original text gets
stored as <system-out>. That part then got lost when reducing tests. Instead of
dropping it, it needs to be joined from all failed tests. Same for
<system-err>, although that isn't used yet.
2024-12-02 11:17:57 +01:00
Patrick Ohly
e0e4af8a58 prune-junit-xml: smarter concatenation when pruning tests
Repeating the same "Failed" message text doesn't add any
information. Separating with a blank line is more readable.

Before:

    <failure message="Failed; Failed; Failed" type="">
       ...
       --- FAIL: TestFrontProxyConfig/WithoutUID (64.89s) ; === RUN TestFrontProxyConfig/WithUID

After:

    <failure message="Failed" type="">
       ...
       --- FAIL: TestFrontProxyConfig/WithoutUID (64.89s)

       === RUN TestFrontProxyConfig/WithUID
2024-12-02 11:17:57 +01:00
Ondrej Kokes
6f06cd6e05 Do not reload kubeconfig from disk
When `kubeadm init phase bootstrap-token` gets invoked, it reads
the kubeconfig from disk repeatedly. This is wasteful, but, more
importantly, it blocks the use of `/dev/stdin` and other sources
of data that cannot be read repeatedly.

This change introduces a new field that caches a parsed kubeconfig
and when a new clientset is requested, it is converted from
this pre-parsed kubeconfig, the code no longer reaches out to disk.
2024-11-27 16:44:51 +01:00
Abhishek Kr Srivastav
179fa16f46 Remove user privilege checks from preflight tests 2024-11-15 19:52:27 +05:30
Kubernetes Prow Robot
deecaf73eb Merge pull request #128763 from srivastav-abhishek/fix-err-string
Fixed failing UT TestWriteKubeletConfigFiles by removing privilege check and adding proper error handling
2024-11-13 18:54:47 +00:00
Abhishek Kr Srivastav
56e3c787a5 Fixed failing test by removing privilege check and some refactor
Addressed review comments
2024-11-13 23:13:33 +05:30
SataQiu
d81e8beaea kubeadm: fix a bug where upgrade dryrun can not select the network interface correctly 2024-11-13 11:54:30 +08:00