Commit Graph

128398 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
90cf6f2efe
Merge pull request #130413 from zhifei92/deprecated-pointer
chore(kubelet): Use ptr.To to replace the custom function unit64Ptr
2025-03-03 14:29:49 -08:00
Kubernetes Prow Robot
ba71449103
Merge pull request #130329 from zylxjtu/bootid
Fix the node reboot validation failure
2025-03-03 14:29:42 -08:00
Kubernetes Prow Robot
a5dda5d879
Merge pull request #130349 from jpbetz/validation-gen-pr1
KEP-5073: Declarative Validation: Add validation generator
2025-03-03 11:25:42 -08:00
Kubernetes Prow Robot
63ef2dd03d
Merge pull request #130539 from danwinship/endpointslice-cleanups
EndpointSlice cleanups
2025-03-03 09:17:43 -08:00
Dan Winship
8bb597c0d2 Clean up some confusion around TrafficDistribution metrics
The EndpointSlice controller metrics had code to deal with
unrecognized TrafficDistribution values, and tested both "invalid" and
empty values, but TrafficDistribution is validated to always be either
nil or a recognized value, so those cases can't happen.
2025-03-03 11:06:41 -05:00
Dan Winship
fdddd8d18c Port k8s.io/endpointslice from utils/pointer to utils/ptr 2025-03-03 11:04:39 -05:00
Kubernetes Prow Robot
940e6bd357
Merge pull request #130526 from aojea/e2e_netpol_finalizers
e2e network policies test support network policies with finalizers
2025-03-03 06:51:49 -08:00
Kubernetes Prow Robot
b3095a49f5
Merge pull request #130519 from dims/reduce-the-number-of-versions-of-images-we-pull-in-our-e2e-tests
Reduce number of (versions of!) images we pull in our e2e tests
2025-03-03 06:51:41 -08:00
Joe Betz
a2f47e6586 Add validators: immutable
Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:51 -05:00
Joe Betz
63050550c3 Add validators: optional/required/forbidden
Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:51 -05:00
Joe Betz
31f4637217 Add validators: eachkey, eachval, subfield
Introduce a composable set of tags for validating child data.
This allows for point-of-use validation of shared types.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:51 -05:00
Joe Betz
b5f9a00258 Add validation-gen core tests
Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:51 -05:00
Joe Betz
8c41bdf05b Add validation-gen test infrastructure
Introduces the infrastructure for testing validation-gen tags.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:51 -05:00
Joe Betz
3210f46b5b Add validation-gen to codegen scripts
Add validation-gen to repository wide codegen scripts and introduce
`./hack/update-codegen.sh validation` as a quick way to run validation-gen.
2025-03-03 09:49:50 -05:00
Joe Betz
e892dfac7d Add validators: opaque
Skips validation of a type's tags.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:50 -05:00
Joe Betz
c1f9e6b8ee Introduce validation-gen
Adds code-generator/cmd/validation-gen. This provides the machinery
to discover `//+` tags in types.go files, register plugins to handle
the tags, and generate validation code.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
2025-03-03 09:49:50 -05:00
Joe Betz
7f5e1baeee Bump gengo/v2 to latest
Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
# Conflicts:
#	vendor/modules.txt
2025-03-03 09:49:50 -05:00
Kubernetes Prow Robot
b363f196c5
Merge pull request #130493 from shajmakh/replace-dep-pointer
test: sched: replace `pointer` use with `ptr`
2025-03-03 03:51:15 -08:00
Kubernetes Prow Robot
c7d8f731b0
Merge pull request #130524 from dims/wrong-matcher-use-BeNil-instead-of-BeEmpty
Wrong matcher - use BeNil instead BeEmpty
2025-03-03 00:59:04 -08:00
Kubernetes Prow Robot
12e274b261
Merge pull request #130236 from adrianmoisey/add-test-for-deleted-entries-metric
Add test for ReconcileConntrackFlowsDeletedEntriesTotal metric
2025-03-03 00:58:57 -08:00
Antonio Ojea
09427ab558
Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-03 08:48:06 +01:00
Kubernetes Prow Robot
5d28e86245
Merge pull request #130097 from bitoku/podrejectionstatus
Modify how to check the status in PodRejectionStatus test
2025-03-02 18:52:57 -08:00
Antonio Ojea
f8b080a4be
Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:33 +01:00
Antonio Ojea
2f6f8d083e
Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:26 +01:00
Adrian Moisey
438d496555
Add test for ReconcileConntrackFlowsDeletedEntriesTotal metric 2025-03-02 15:58:40 +02:00
Kubernetes Prow Robot
c5b83f7c6c
Merge pull request #129375 from carlory/remove-fg-AppArmor
Remove general available feature-gate AppArmor
2025-03-02 05:18:55 -08:00
Antonio Ojea
e5ad4a1878 e2e network policies test support network policies with finalizers 2025-03-02 13:11:22 +00:00
Davanum Srinivas
da987eb762
Wrong matcher - use BeNil instead BeEmpty
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-02 07:08:24 -05:00
Davanum Srinivas
1e64a89038
Reduce number of (versions of!) images we pull in our e2e tests
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-01 21:02:50 -05:00
Kubernetes Prow Robot
78c41fbcc9
Merge pull request #130515 from Jefftree/revert-cle-beta-types
Revert "LeaseCandidate v1beta1 API"
2025-03-01 14:55:02 -08:00
Kubernetes Prow Robot
ca22563752
Merge pull request #130484 from aojea/kube_proxy_reconciler_ports
conntrack reconciler must check the dst port
2025-03-01 14:54:55 -08:00
Kubernetes Prow Robot
eea2f78e61
Merge pull request #128919 from dashpole/update_otel
Update go.opentelemetry.io dependencies to v1.33.0/v0.58.0
2025-03-01 13:48:57 -08:00
David Ashpole
29c219dceb
update go.opentelemetry.io dependencies to v1.33.0/v0.58.0 2025-03-01 19:18:34 +00:00
Kubernetes Prow Robot
b669e6cc9a
Merge pull request #130512 from HirazawaUi/Clarify-cri-fields
Clarify the behavior when the host_port value is set to 0 in CRI
2025-03-01 09:32:55 -08:00
Jefftree
05a90bf642 Revert "Add LeaseCandidate v1beta1"
This reverts commit fad4594fd9.
2025-03-01 14:14:25 +00:00
Jefftree
1a1b566d61 Revert "LeaseCandidate alpha -> beta,"
This reverts commit ac7a95efb0.
2025-03-01 14:14:19 +00:00
Jefftree
71622aee49 Revert "generated"
This reverts commit 2d10dec3a2.
2025-03-01 14:10:35 +00:00
Kubernetes Prow Robot
0556b20d3d
Merge pull request #129435 from googs1025/dra/validation
chore: add more error info for validateResourceSliceSpec
2025-03-01 02:16:55 -08:00
HirazawaUi
d5c072117d Clarify host_port field in CRI 2025-03-01 16:57:45 +08:00
Kubernetes Prow Robot
75633d0838
Merge pull request #130506 from jpbetz/document-client-gen-ordering
Clarify ordering requirements of client-gen --input
2025-02-28 18:21:09 -08:00
Kubernetes Prow Robot
eddb6a7303
Merge pull request #130476 from dims/do-not-look-for-ssh-external-ip-for-NFSPersistentVolumes-tests
Do not look for SSH external IP for NFSPersistentVolumes tests
2025-02-28 18:21:02 -08:00
Kubernetes Prow Robot
c9d54b92ca
Merge pull request #130450 from JoelSpeed/fix-contains-cidr
Fix implementation of ContainsCIDR to allow non-equal addresses
2025-02-28 18:20:55 -08:00
Kubernetes Prow Robot
aad87f2ee9
Merge pull request #130388 from thockin/error_matcher_and_origin
Add an error matcher, convert 2 tests
2025-02-28 17:14:55 -08:00
Joe Betz
df9d5f0bf8 Clarify ordering requirements of client-gen --input 2025-02-28 18:56:43 -05:00
Kubernetes Prow Robot
d496b6c49c
Merge pull request #130497 from DamianSawicki/replace-kl52752-DS-2
Update dns OWNERS in line with kubernetes/dns
2025-02-28 15:30:55 -08:00
Kubernetes Prow Robot
d04883c90c
Merge pull request #130061 from mimowo/make-backoffperindex-stable
Graduate Backoff Limit Per Index as stable
2025-02-28 13:37:02 -08:00
Kubernetes Prow Robot
2fc329c857
Merge pull request #129334 from serathius/streaming-json-list-encoder
Streaming json list encoder
2025-02-28 13:36:55 -08:00
Antonio Ojea
e43de183cf conntrack reconciler must check the dst port
The conntrack reconciler maintains the consistency between the
conntrack table on each node and the desired state of Kubernetes UDP services.

A valid entry matches a service's ClusterIP, LoadBalancerIP, or ExternalIP and Service port,
or any ip matching a NodePort, and has a reverse source IP matching an active endpoint for
that service. Other entries are deleted.

Services without endpoints and traffic not handled by kube-proxy are ignored

Co-authored-by: Daman Arora <aroradaman@gmail.com>
2025-02-28 21:14:06 +00:00
zylxjtu
3d318b57e3 revert the old loop to check if the node is rebooted 2025-02-28 19:39:21 +00:00
Kubernetes Prow Robot
01ed8ed4ff
Merge pull request #130474 from dims/bump-x/crypto-and-x/oauth2
Bump x/oauth2 and x/crypto
2025-02-28 11:31:03 -08:00