Commit Graph

133442 Commits

Author SHA1 Message Date
Stanislav Láznička
bb1b23a34e e2e fake registry: add function docs
Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
2025-10-29 13:17:04 +01:00
Stanislav Láznička
fc81e22735 fix Node Conformance Container Runtime test with fake registry
Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
2025-10-29 13:17:03 +01:00
Stanislav Láznička
a0e64c21f2 Use fake registry in Node's container runtime image pulling tests
Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
2025-10-29 13:06:34 +01:00
Stanislav Láznička
a3f242676c Revert "remove failing test that depends on expired credential, remove credential, add TODOs"
This reverts commit 8ace0fb89f.
2025-10-28 14:23:54 +01:00
Kubernetes Prow Robot
a7b6742940 Merge pull request #134748 from p0lyn0mial/upstream-watchlist-unsupported-wl-clients-improve-units
client-go/clients: improve TestWatchListSemanticsSimple
2025-10-27 03:43:45 -07:00
Kubernetes Prow Robot
59616d50fd Merge pull request #134691 from SergeyKanzhelev/watchdogIsGA
Lock SystemdWatchdog feature gate
2025-10-27 03:43:37 -07:00
Kubernetes Prow Robot
6c91840fed Merge pull request #125912 from ffromani/cpumanager-migrate-structured-logging
Migrate cpumanager to contextual logging
2025-10-27 02:47:38 -07:00
Francesco Romani
816eee64e8 cpumanager: hack: add golang ci config for contextual logging
add cpumanager to contextual logging linter
regenerate with
```hack/update-golangci-lint-config.sh```

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-27 08:38:58 +01:00
Francesco Romani
fd5b2efa76 node: cpumanager: migrate to contextual logging
migrate the cpumanager code to contextual logging

design musings:
- golang contexts "[...] carries deadlines, cancellation signals, and
  other request-scoped values across API boundaries and between
  processes." (see: https://pkg.go.dev/context#pkg-overview).
  Thus, it generally makes sense to add contexts to most of the APIs
  and functions  as the resource management is done in the admission flow, when
  ultimately we process a request and we have time bounds;
- however, receiving a context from the outside and depending on it
  kind also conflicts with the goal of having uniform logging and "
  - attach key/value pairs that get included in all log messages
  - add names that describe which component or operation triggered a log messages"
  (see:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/3077-contextual-logging#summary)
  Some of this conflict is due to the transitional nature of the PRs
  which we do when updating the codelet codebase. We can envision a
  final state on which the top level caller adds identifying information
  like pod UID and pod namespace/name pair; but up until all the calling
  chain is updated and wired, the results are gonna be inconsistent.
- continuing from the point above, the most realistic transition plan
  for the kubelet is outlined in
  https://github.com/kubernetes/kubernetes/issues/130069 .
  Since we do want to move in parallel and migrate on a
  subsystem-by-subsystem basis, each subsystem will be in charge to add
  the data they want to their contexts. I think this is the only
  reasonnable way forward, and the cost will be overhead and redundancy.
  We should do sweeping changes to uniform the flows once we completed
  the full transition to ensure uniformity.
- there are some well known packages which want to operate by design
  only in in-memory data structure, which arguably can't block.
  Shoehorning a context feels not great. Instead, we intentionally pass
  only the logger, which still is the core idea of contextual logging
  (see:
https://github.com/kubernetes/kubernetes/pull/125912#discussion_r1935919144)
  examples are the topology subpackage and the cpu_assignment logic
  (takeByTopology and friends)

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-10-27 08:38:58 +01:00
Kubernetes Prow Robot
084bac6896 Merge pull request #134888 from yt2985/podcertificates-agnhost-2
Fix the error "unknown flag: --logtostderr" in Agnhost 2.58
2025-10-26 15:21:34 -07:00
Kubernetes Prow Robot
1b87cedb7f Merge pull request #134822 from humblec/update-base
test/images: Update tf-wide-deep base image from Python 3.6 to 3.11
2025-10-26 07:49:33 -07:00
Humble Devassy Chirammal
f8ca585b66 test/images: Update tf-wide-deep container image with Python 3.11 and TensorFlow 2.20.0
- Updated base image from python:3.6-slim-stretch to python:3.11-slim-bookworm
- Bumped version from 1.3 to 1.4
- Updated TensorFlow from 1.9.0 to 2.20.0 (latest stable)
- Updated TensorFlow models from v1.9.0 to v2.15.0

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-10-26 11:42:47 +05:30
tinatingyu
36654a9ecb --no-edit 2025-10-26 04:01:23 +00:00
tinatingyu
cff8bc8686 fix the unknown flag: --logtostderr error 2025-10-26 03:48:43 +00:00
Kubernetes Prow Robot
fb10a29954 Merge pull request #134833 from rikatz/fix-panic-apiresources
Return error in case of discovery client failure
2025-10-25 01:37:33 -07:00
Kubernetes Prow Robot
1d16b7f3a8 Merge pull request #134856 from soltysh/flake_events
Improve cmd tests for kubectl events
2025-10-24 23:27:33 -07:00
Kubernetes Prow Robot
5034140085 Merge pull request #134439 from pohly/dra-e2e-crud-conformance
Promote DRA e2e CRUD tests to Conformance
2025-10-24 16:33:37 -07:00
Kubernetes Prow Robot
1135d04f1d Merge pull request #134826 from aramase/aramase/f/kep_5538_beta_impl
CSI driver opt-in for service account tokens via secrets field
2025-10-24 13:57:35 -07:00
Kubernetes Prow Robot
ec5425a6ef Merge pull request #134744 from neolit123/1.35-update-system-validators-to-v1.12.0
vendor: update system-validators to v1.12.1
2025-10-24 13:07:40 -07:00
Kubernetes Prow Robot
4539b9c8f3 Merge pull request #133660 from scaventz/109717-PreStartContainer
Test: Add unit test for PreStartContainer
2025-10-24 13:07:33 -07:00
Kubernetes Prow Robot
8de3b303e0 Merge pull request #134807 from yongruilin/master_maxlength
Add k8s:maxLength tag and use it on NetworkDeviceData fields
2025-10-24 12:15:41 -07:00
Kubernetes Prow Robot
82e2a3e117 Merge pull request #134763 from jpbetz/api-machinery-controller-owners
Clean up OWNERS for all api machinery owned controllers
2025-10-24 12:15:34 -07:00
Anish Ramasekar
30a6d4b389 Add CSI driver opt-in for service account tokens via secrets field
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-10-24 11:04:02 -07:00
Kubernetes Prow Robot
83e8760449 Merge pull request #134552 from danwinship/network-kep-cleanup-1.35
SIG Network KEP cleanup for 1.35
2025-10-24 10:59:42 -07:00
Kubernetes Prow Robot
60e1f61a63 Merge pull request #133511 from BenTheElder/no-md5
eliminate md5 usage, block new usage
2025-10-24 10:59:35 -07:00
Joe Betz
0e7d42dd45 Clean up OWNERS for all api machinery owned controllers 2025-10-24 13:38:10 -04:00
Kubernetes Prow Robot
97702bb776 Merge pull request #134778 from yt2985/podcertificates-agnhost-2
Add mtlsclient and mtlsserver for the mtls validations
2025-10-24 10:09:45 -07:00
Kubernetes Prow Robot
3c4a7184d8 Merge pull request #134231 from michaelasp/svmRobustness
feat: Improve the robustness of SVM
2025-10-24 10:09:38 -07:00
Maciej Szulik
167ccbc8ec Improve cmd tests for kubectl events
kube::test::if_has_string and kube::test::if_has_not_string only match
the first argument, and don't allow regular expressions, so we need to
split the checks into separate buckets, ensuring they are strictly tied
to this particular test.

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-10-24 16:37:03 +02:00
Kubernetes Prow Robot
07c3285e0c Merge pull request #134818 from scaliby/kubectl-describe-fake-client-migration
Migrate off deprecated NewSimpleClientset to NewClientset in kubectl describe
2025-10-24 07:21:38 -07:00
Dan Winship
715228f478 Remove LoadBalancerIPMode feature gate 2025-10-24 09:12:03 -04:00
Dan Winship
b5297b18ab Remove AllowServiceLBStatusOnNonLB feature gate 2025-10-24 09:12:01 -04:00
Lubomir I. Ivanov
c403fd4481 kubeadm: validate the KubeletVersion for cgroups v1
By using k8s.io/system-validators v1.12.1 a KubeletVersion
can be passed to the CgroupsValidator. The library
can then decide if to throw an error or a warning.

An error is thrown if the version is >= 1.35.

During upgrade pass a KubeletVersion that is with MINOR+1
to account for the target upgrade version. That is just
an assumption that the user will upgrade the kubelet too,
but it is better to throw an error for this
common use case instead of just a warning that is seen
after the upgrade command has finished.
2025-10-24 11:14:58 +02:00
Kubernetes Prow Robot
8cd57a9e6f Merge pull request #134709 from tchap/kubectl-tracing
kubectl: Add support for tracing
2025-10-24 01:35:34 -07:00
Kubernetes Prow Robot
ae60c554f8 Merge pull request #134404 from nmn3m/dra-consumable-capacity-autoscaler-contract
Dedicated package for scheduler interaction with DRA structured types
2025-10-24 00:19:33 -07:00
Kubernetes Prow Robot
28c1e7a454 Merge pull request #134835 from tallclair/copyright-year
Remove year from copyright header boilerplate
2025-10-23 23:25:34 -07:00
Xin Wang
5d4d6cc980 Test: Add unit test for PreStartContainer
#109717
2025-10-24 12:58:01 +08:00
Kubernetes Prow Robot
733f552f73 Merge pull request #134741 from zk-123/fix/kubelet_node_status_cleanup_register_schedulable
fix(kubelet_node_status): remove the node.Spec.Unschedulable check
2025-10-23 19:29:33 -07:00
Kubernetes Prow Robot
faad6b2c30 Merge pull request #134829 from yongruilin/fix-race-pluginpolicy
test: Fix data race on policy refresh interval
2025-10-23 17:05:34 -07:00
Tim Allclair
c247514f47 Remove year from copyright header boilerplate 2025-10-23 16:50:13 -07:00
Kubernetes Prow Robot
ee58e792cc Merge pull request #134812 from skitt/enable-gocritic-unlambda
Avoid no-change lambdas
2025-10-23 15:43:34 -07:00
Ricardo Pchevuzinske Katz
f0e88857f7 Return error in case of discovery client failure 2025-10-23 19:40:49 -03:00
Kubernetes Prow Robot
6652c9fadf Merge pull request #134457 from danwinship/prefersamenode
KEP-3015: update PreferSameTrafficDistribution to GA
2025-10-23 14:41:33 -07:00
yongruilin
8a331a59d1 test: Fix data race on policy refresh interval
Add a mutex to protect the global policyRefreshInterval. This prevents a data race during tests where SetPolicyRefreshIntervalForTests writes to the variable while a background goroutine reads it.
2025-10-23 21:24:50 +00:00
yongruilin
78796239cf feat(validation): add k8s:optional tag to InterfaceName and HardwareAddress in NetworkDeviceData across all versions 2025-10-23 21:04:02 +00:00
Kubernetes Prow Robot
7498131d5e Merge pull request #131098 from DataDog/fricounet/upstream/race-csinode-creation
Wait for CSINode removal to register CSI plugin
2025-10-23 11:35:35 -07:00
Lubomir I. Ivanov
9e5b6ad748 fix error checks 2025-10-23 16:18:18 +00:00
Lubomir I. Ivanov
c764de03dc vendor: update system-validators to v1.12.1
Includes an update to the cgroups validator to throw
an error if v1 is detected on the host.

Also includes a KubeletVersion field to determine
to show a warning or an error.
2025-10-23 17:44:30 +02:00
Konrad Kaim
724cdb5cf3 feat: migrate off deprecated NewSimpleClientset to NewClientset 2025-10-23 15:33:20 +00:00
Kubernetes Prow Robot
ab34215bab Merge pull request #134229 from yongruilin/kal-vg
Use kube-api-linter linting for declarative validation tags
2025-10-23 08:11:35 -07:00