Commit Graph

10741 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ba4ac6d65b Merge pull request #137003 from hoteye/pr1-kubelet-podworkers-core
kubelet: tighten podworkers context flow and consolidate kubelet logcheck scope
2026-03-04 04:30:27 +05:30
Kubernetes Prow Robot
92491f09ee Merge pull request #137299 from Jefftree/kexp
Use ephemeral port for etcd peer listener
2026-03-03 23:03:23 +05:30
Jefftree
292e4ca469 Use localhost for etcd peer listener instead of ETCD_HOST 2026-03-03 10:22:39 -05:00
Kubernetes Prow Robot
9b25f86cf8 Merge pull request #137348 from Jefftree/deepcopy-fix
deepcopy-gen: remove dead --bounding-dirs flag
2026-03-03 11:00:53 +05:30
Kubernetes Prow Robot
4ee05a3a2f Merge pull request #137242 from tico88612/cleanup/e2e-node-prometheus
Cleanup: `test/e2e_node` remove prometheus dependency
2026-03-03 02:49:02 +05:30
Jefftree
d6b91820b7 deepcopy-gen: remove dead --bounding-dirs flag
The --bounding-dirs flag and BoundingDirs field in deepcopy-gen are dead
code. The field is stored on the genDeepCopy struct but never read by
any method.

The flag was introduced in gengo commit 14ae879 (2016) to control which
types deepcopy would generate for and which nested types it could assume
had generated deepcopy functions. Over time, as deepcopy-gen was
rewritten (gengo v2, moved to code-generator), the copyableAndInBounds /
isRootedUnder usage was dropped. The field and flag survived but
g.boundingDirs is never referenced in the current code.

hack/update-codegen.sh still passed --bounding-dirs but it had no
effect.
2026-03-02 14:53:52 -05:00
Jefftree
553dc9c2aa Use ephemeral port for etcd peer listener
Port 0 lets the OS assign a random free port, avoiding conflicts
when running multiple etcd instances for parallel tests. Peering
is unused in single-node test setups.
2026-02-27 17:24:32 -05:00
ChengHao Yang
ba277219e3 Remove dependency prometheus from test/e2e_node resource metric test
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-02-28 00:01:00 +08:00
pranshul gupta
10f7c34c16 added exceptions for StorageVersion.Spec , StorageVersion.Status , StorageVersionCondition.LastTransitionTime to be a pointer and StorageVersion.Spec and StorageVersion.Status to have omitempty tag 2026-02-27 09:00:07 +05:30
pranshul gupta
1c6365cda0 lint: add granular exception for apiserverinternal
Demonstrates the 1:1 migration strategy by enabling the 'apiserverinternal'
API group and adding a specific exception for StorageVersionCondition.
2026-02-27 08:29:35 +05:30
pranshul gupta
c0c06c9ac6 lint: Enable optionalfields rule in KAL with mass exclusion 2026-02-27 08:29:35 +05:30
pranshul gupta
b278254eba Enable optionalfields rule for Kube API linter 2026-02-27 08:29:35 +05:30
ChengHao Yang
4baef5a295 Remove dependency prometheus from test/e2e_node mirror pod grace period test
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-02-25 21:06:16 +08:00
ermias19
0678b48e88 narrowing the lint through adding admissionregistration. 2026-02-25 10:29:28 +01:00
ermias19
40173a2774 admission: mark review fields optional 2026-02-25 02:52:48 +01:00
Kubernetes Prow Robot
0ef4f38784 Merge pull request #136900 from itzPranshul/rbac-optionalorrequired
KAL:enforce `optionalorrequired` on rbac API group
2026-02-24 23:43:34 +05:30
Ludo van Orden
9e29a74c6f commentstart lint fixes for apiserverinternal API group 2026-02-20 23:54:57 +01:00
Sotiris Salloumis
df5c17e199 Add memorymanager option in local-up-cluster 2026-02-20 09:44:54 +01:00
Kubernetes Prow Robot
0536cfdf8d Merge pull request #137107 from joshjms/update-etcd-3.6.8
etcd: update etcd image to v3.6.8
2026-02-19 21:05:40 +05:30
koba1t
58d00acb62 remove unwanted dependency 'github.com/pkg/errors' 2026-02-19 22:16:47 +09:00
hoteye
6bccc051eb hack: add temporary kubelet contextual logcheck carve-outs
Keep broad kubelet contextual logcheck coverage while excluding a small set of legacy files that still use non-contextual logging patterns.

These carve-outs are temporary and will be removed in follow-up kubelet contextual logging PRs.
2026-02-19 14:06:21 +08:00
hoteye
e94e67337d kubelet: tighten podworkers context flow and consolidate kubelet logcheck scope
Propagate upper-level context through pod worker update and sync paths in the kubelet call flow touched by this PR.

Also consolidate kubelet logcheck scope so non-contextual logging additions are blocked in pkg/kubelet while keeping behavior unchanged.
2026-02-19 14:05:39 +08:00
joshjms
7c54689847 etcd: update etcd image to v3.6.8
Signed-off-by: joshjms <joshjms1607@gmail.com>
2026-02-18 21:29:56 +08:00
pranshul gupta
ed551f6826 KAL:enforce optionalorrequired on rbac API group
# Conflicts:
#	hack/golangci-hints.yaml
#	hack/golangci.yaml
#	hack/kube-api-linter/exceptions.yaml
2026-02-18 13:41:39 +05:30
Kubernetes Prow Robot
4540abb5d8 Merge pull request #136704 from Ignoramuss/optionalorrequired-authentication
api: enable optionalorrequired linter for authentication API
2026-02-17 23:31:47 +05:30
Stephen Kitt
3d1e90f95a Bump to golangci-lint 2.9.0
bloop was disabled because of its impact on small benchmarks (see
267fc6b81a
for details), this removes it from the disabled entries.

stringscut was introduced in x/tools 0.40.0 and is disabled for
existing code.

ginkgolinter's Success matcher check doesn't know about TContext, so
it's disabled for k/k.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-02-16 15:45:22 +01:00
Ignoramuss
3b25b16ce1 api: enable optionalorrequired linter for authentication API
Add missing +optional and +required markers to authentication API types
across v1, v1beta1, and v1alpha1 versions, and remove authentication
from the linter exception lists.

Part of kubernetes/kubernetes#134671
2026-02-13 17:40:47 -08:00
Kubernetes Prow Robot
9571e19da9 Merge pull request #134675 from JoelSpeed/enable-kal-optionalorrequired-apiserver-internal
Enforce either optional or required tag on apiserverinternal API group
2026-02-13 06:10:00 +05:30
Joel Speed
551c08e2a2 Update exceptions to drop "it must be optional" 2026-02-12 17:42:44 +00:00
Joel Speed
0b10375aec Add exception for union type in scheduling API
We need to add a marker to allow podgroup to be marked up correctly as a union type, and then teach the nonpointerstructs linter how to understand this
2026-02-12 14:12:36 +00:00
Joel Speed
a9034c040e Enable nonpointerstructs alongside optionalorrequired 2026-02-12 14:12:33 +00:00
Davanum Srinivas
550cc8645b Move dump package from apimachinery to k8s.io/utils
Replace all imports of k8s.io/apimachinery/pkg/util/dump with
k8s.io/utils/dump across the repo. The apimachinery dump package
now contains deprecated wrapper functions that delegate to
k8s.io/utils/dump for backwards compatibility.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-12 07:34:19 -05:00
Joel Speed
c4b2640b32 Remove exceptions for groups with no issues 2026-02-12 11:16:54 +00:00
Joel Speed
8651d99a26 Enforce either optional or required tag on apiserverinternal API group 2026-02-12 11:14:37 +00:00
Kubernetes Prow Robot
7b0310aadd Merge pull request #136820 from dims/update-otel-deps
Update OpenTelemetry dependencies to latest versions
2026-02-10 05:44:05 +05:30
Kubernetes Prow Robot
f693c45c4e Merge pull request #136775 from atombrella/feature/activate_modernize_slicessort
Enable modernize/slicessort rule
2026-02-10 05:43:57 +05:30
Davanum Srinivas
275adf8b04 Update OpenTelemetry dependencies to latest versions
Bump OpenTelemetry dependencies:
- go.opentelemetry.io/otel v1.39.0 → v1.40.0
- go.opentelemetry.io/otel/metric v1.39.0 → v1.40.0
- go.opentelemetry.io/otel/sdk v1.39.0 → v1.40.0
- go.opentelemetry.io/otel/trace v1.39.0 → v1.40.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 → v1.40.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 → v1.40.0
- go.opentelemetry.io/contrib/.../otelrestful v0.64.0 → v0.65.0
- go.opentelemetry.io/contrib/.../otelhttp v0.64.0 → v0.65.0
- go.opentelemetry.io/contrib/.../otelgrpc v0.63.0 → v0.65.0

Unpin otelgrpc: the nil TracerProvider panic (kubernetes#135865) that
required pinning at v0.63.0 is fixed in v0.65.0. Removed the
pinnedModules entry from unwanted-dependencies.json.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-07 09:21:51 -05:00
Mads Jensen
95616cecda Use slices.Sort instead of sort.Slice.
There were only two instances of this in the entire code-base. Hence,
I have enabled the modernize rule/linter in golangci-lint.
2026-02-06 22:46:08 +01:00
Davanum Srinivas
8518a8bcfa Mark flynn/go-shlex and kr/pty as unwanted dependencies
Both repositories are archived on GitHub and were detected by the
new check-dependency-archived-periodical CI job.

Also add flynn/go-shlex to unwantedReferences (referenced by
github.com/coredns/caddy).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-06 07:17:02 -05:00
Kubernetes Prow Robot
38c2026613 Merge pull request #136315 from liyuerich/commentstartauthorization
enable commentstart check on authorization API group
2026-02-06 14:04:32 +05:30
liyuerich
d172d92d6c enable commentstart check on authorization API group
Signed-off-by: liyuerich <yue.li@daocloud.io>
2026-02-06 14:15:29 +08:00
Kubernetes Prow Robot
aba3dc7256 Merge pull request #133759 from BenTheElder/integrationprocs
Reapply "stop overriding max concurrency in CI, let automax procs handle it
2026-02-06 11:06:36 +05:30
Kubernetes Prow Robot
9b1228fe05 Merge pull request #136706 from Jefftree/ulimit
Fix ulimit check in test.sh
2026-02-06 04:16:30 +05:30
Kubernetes Prow Robot
dab5f4f0ae Merge pull request #136777 from omerap12/update-agnhost
Upgrade agnhost image to 2.63.0
2026-02-06 00:44:38 +05:30
Kubernetes Prow Robot
344604831e Merge pull request #136492 from Ignoramuss/optionalorrequired-policy
api: enable optionalorrequired linter for policy API
2026-02-06 00:44:30 +05:30
Omer Aplatony
201fe11b03 Promote agnhost image to 2.63.0
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2026-02-05 17:21:34 +00:00
Kubernetes Prow Robot
dc1ec1211e Merge pull request #136747 from dims/use-k8s-utils-btree
Use btree from k8s.io/utils instead of github.com/google/btree
2026-02-05 16:02:30 +05:30
Davanum Srinivas
a328ca88ad Use btree from k8s.io/utils instead of github.com/google/btree
The google/btree package is deprecated, so switch to the maintained
fork in k8s.io/utils/third_party/forked/golang/btree.

API differences:
- NewG -> New
- BTreeG[T] -> BTree[T]

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-04 16:11:16 -05:00
Ignoramuss
d485fe5610 api: enable optionalorrequired linter for policy API
Add missing +optional markers to PodDisruptionBudgetStatus fields in
policy/v1 and policy/v1beta1 and enable the optionalorrequired linter
for the policy API group.
2026-02-04 07:50:27 -08:00
Davanum Srinivas
1a25b103f5 Remove openstorage pinned module from unwanted-dependencies
The github.com/libopenstorage/openstorage dependency was removed in
299ec97e6f, so we no longer
need to pin it in hack/unwanted-dependencies.json.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-04 08:34:57 -05:00