Commit Graph

129141 Commits

Author SHA1 Message Date
yongruilin
a3094ccbe6 feat: extend version information with more detailed version fields
- Add new version fields to version.Info struct:
  * EmulationMajor and EmulationMinor to track emulated version
  * MinCompatibilityMajor and MinCompatibilityMinor for compatibility tracking
- Update related code to populate and use these new fields
- Improve version information documentation and OpenAPI generation
- Modify version routes and documentation to reflect new version information structure
2025-03-13 21:44:31 +00:00
Rodrigo Campos
8d71f74fcd pkg/kubelet/userns: Remove skip on windows
We don't build these tests for Windows, let's remove this skip.

We should have never added that skip, we should have skipped the entire
suite on Windows.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-13 22:25:22 +01:00
Rodrigo Campos
691fd360ba pkg/kubelet/userns: Wrap error to get mappings
I needed to wrap the error for debugging, let's just keep this as it is
useful.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-13 22:25:22 +01:00
Rodrigo Campos
925416bc37 pkg/kubelet/userns: Provide stub implementation for windows
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-13 22:25:22 +01:00
Kubernetes Prow Robot
020c4b7c65
Merge pull request #130754 from aaron-prindle/validation-gen-add-metric-and-runtime-verification-review-comments-upstream
[Declarative Validation] chore: change Info->Error log level related to declarative validation runtime tests and refactor panic wrapper names
2025-03-13 13:28:02 -07:00
Kubernetes Prow Robot
04fb7ac18b
Merge pull request #130536 from tenzen-y/promote-successpolicy-to-ga
KEP-3998: Promote JobSuccessPolicy to Stable
2025-03-13 13:27:54 -07:00
Kubernetes Prow Robot
94cc4babc2
Merge pull request #130233 from soltysh/statefulset_api
StatefulSet: add explicit validation for .spec.serviceName and mark the field optional
2025-03-13 13:27:46 -07:00
Kubernetes Prow Robot
4666b8cdf6
Merge pull request #130783 from jpbetz/versioned-formats
Support emulation versioning of custom resource formats
2025-03-13 11:55:55 -07:00
Kubernetes Prow Robot
be127ae0e2
Merge pull request #130751 from Jefftree/cle-promote-beta
[KEP-4355] Promote Coordinated Leader Election to Beta
2025-03-13 11:55:47 -07:00
Rodrigo Campos
74b069d0fa pkg/kubelet: Fix userns tests on Windows
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-13 19:39:01 +01:00
Benjamin Elder
1ddfc7bdce benchmark-dockerized.sh: don't redundantly install gotestsum
this is handled centrally by make test which is called by make test-integration which this script calls

only make test's implementation actually calls gotestsum, and it also handles installing if needed
2025-03-13 11:23:53 -07:00
Benjamin Elder
8898868fea install-ectd.sh: brace PATH and suggest user export 2025-03-13 11:23:53 -07:00
Benjamin Elder
d798d86981 cleanup CI integration scripts
- stop setting ARTIFACTS from WORKSPACE, CI handles setting ARTIFACTS and WORKSPACE isn't used anymore (bazel?)
- stop cd-ing GOPATH, CI sets the working dir already and local users won't necessarily have GOPATH
- sop clobbering PATH with hardcoded assumptions, source install-etcd.sh instead (which updates PATH)
- don't redundantly set KUBE_COVER to the default
- pass logging env inline so the command can be pasted locally
- set -x so the command is visible
- add TODO about needing a wrapper script just to call install-etcd
2025-03-13 11:23:53 -07:00
Joe Betz
d9a2dee622 Fix subresource parsing for declarative validation 2025-03-13 13:16:30 -04:00
Kubernetes Prow Robot
9475c92a6e
Merge pull request #130777 from serathius/watchcache-consistency-test
Fix typo and pass the environment variable required to enable watchcache consistency checking in GCE tests
2025-03-13 10:13:59 -07:00
Kubernetes Prow Robot
e22153d9e1
Merge pull request #130662 from tenzen-y/fix-incorrect-union-marker
chore: Fix incorrect AppArmorProfile.Type marker
2025-03-13 10:13:48 -07:00
Natasha Sarkar
7848744bf9 remove kubelet fake status manager 2025-03-13 17:11:05 +00:00
Maciej Szulik
d6e5d4f20d
make update
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-03-13 17:53:16 +01:00
Maciej Szulik
8eb74b96e3
Add validation to StatefulSet's .spec.serviceName
.spec.serviceName field is injected into pod.spec.subDomain which
requires values to be valid DNS1123 label, but statefulset validation
never validates the field, if specifired. This can cause the controller
to fail creating pods.

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-03-13 17:53:12 +01:00
Tim Hockin
7315d0a687
Change internal-version RC.Spec.Replicas to a ptr
This is needed to make declaratve validation clean.  Past me thought
this was clever (pointer versioned, non-pointer internal) but it is just
confusing.
2025-03-13 08:47:19 -07:00
Joe Betz
e0011c7236 Support emulation versioning of formats
We plan to add more formats in upcoming releases.
This tracks which formats are introduced at a version.

Unrecognized formats remain ignored. That is,
if a format is not supported at the emulated version,
the format is not enforced. This differs from typical
field handling, where unsupported field values are
forbidden. This is pre-existing behavior and is
in compliance with JSON Schema's format handling.

Ratcheting of custom resources helps with the introduction
of new formats. When a cluster is upgraded to a version
of Kubernetes that supports a format already set (but not enforced)
in a custom resource definition, the format will start
being enforced against custom resources. Ratcheting will
tolerate unchanged values of custom resources, even
if the value is not valid according to the format.
2025-03-13 11:09:12 -04:00
Kubernetes Prow Robot
68899f8e6d
Merge pull request #124360 from carlory/kep-3751-quota-2
Add quota support for PVC with VolumeAttributesClass
2025-03-13 07:35:48 -07:00
Marek Siarkowicz
8f83f2446a Fix detecting consistent read when watchcache starts handling continue 2025-03-13 13:53:16 +01:00
Marek Siarkowicz
6d3bff8321 Test recursive in TestGetListCacheBypass and separate overrides 2025-03-13 13:42:49 +01:00
Kubernetes Prow Robot
336a32a270
Merge pull request #130693 from novahe/fix/test-cases
Fix test cases that may potentially cause a panic.
2025-03-13 05:33:49 -07:00
Marek Siarkowicz
8b0294daed Fix typo and pass the environment variable required to enable watchcache consistency checking in GCE tests 2025-03-13 11:55:23 +01:00
Monis Khan
987bdd9e46
Sync pkg/credentialprovider/OWNERS with k8s.io/client-go/tools/auth/OWNERS
Signed-off-by: Monis Khan <mok@microsoft.com>
2025-03-13 06:53:50 -04:00
Kubernetes Prow Robot
2e9bb32ee8
Merge pull request #130752 from serathius/watchcache-simplify-delagate
Simplify shouldDelegateList
2025-03-13 02:57:57 -07:00
Kubernetes Prow Robot
953b40b34e
Merge pull request #128857 from zhifei92/flagz-kubelet
feat: Add flagz endpoint for kubelet
2025-03-13 02:57:45 -07:00
Kubernetes Prow Robot
be32ca61a6
Merge pull request #127612 from carlory/make-scheduler-test-independent
make each scheduler test independent
2025-03-13 00:47:47 -07:00
carlory
aab7a079fa make each scheduler test independent
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-13 14:39:50 +08:00
carlory
27706a0b54 Add quota support for PVC with VolumeAttributesClass
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-13 13:50:44 +08:00
Kubernetes Prow Robot
9acdca64e0
Merge pull request #130724 from jpbetz/replication-controller-to-declarative
Enable Declarative Validation for ReplicationController
2025-03-12 22:41:53 -07:00
Kubernetes Prow Robot
7f818e9f02
Merge pull request #130602 from tallclair/allocation-checkpoint-optimization
Allocation checkpoint cleanup
2025-03-12 22:41:46 -07:00
Kubernetes Prow Robot
92d7e55abd
Merge pull request #129886 from danwinship/endpointslice-api-notes
Try to clarify EndpointSlice semantics some more
2025-03-12 21:19:53 -07:00
Kubernetes Prow Robot
96dd5508f6
Merge pull request #129714 from esotsal/fix-reset-injector-because-cri-proxy-undefined
testing: Skip test if cri proxy is disabled or undefined
2025-03-12 21:19:46 -07:00
Kubernetes Prow Robot
6549f52b97
Merge pull request #130757 from BenTheElder/delete-dead-script
delete hack/test-integration.sh
2025-03-12 20:13:59 -07:00
Kubernetes Prow Robot
761f5646be
Merge pull request #130138 from rata/userns-enabled-by-default
features: Enable user namespaces by default
2025-03-12 20:13:48 -07:00
zhangzhifei16
2db729cfa4 Add flatz to kubelet auth.
Fix: Move flagz to InstallDebuggingHandlers.

Move flagz  to the lower switch statemen

Fix linter

Drop the function parameter for the read-only server.
2025-03-13 10:11:59 +08:00
Kubernetes Prow Robot
7b6c56e5fb
Merge pull request #130135 from saschagrunert/image-volume-beta
[KEP-4639] Graduate image volume sources to beta
2025-03-12 18:03:58 -07:00
Kubernetes Prow Robot
05bfdbc6dd
Merge pull request #129950 from ffromani/alignment-error-detail-metrics
node: metrics for alignment failures
2025-03-12 18:03:46 -07:00
Joe Betz
ed08387663 Enable versioned validation fuzz testing for core v1 group 2025-03-12 19:53:47 -04:00
Joe Betz
b5bc283808 ReplicationController: Add declarative validation test suite
Introduce a test suite that ensures declarative test cases
are fully tested and that validation errors are compared
with handwritten validation to ensure consistency.

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-12 19:53:44 -04:00
Joe Betz
5a5ed81e1f ReplicationController: Enable declarative validation
After declarative validation is enabled in the ReplicationController
strategy in this way, the generated declarative validation code
in pkg/apis/core/v1/zz.generated.validations.go will be run
when the strategy validates ReplicationController.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Yongrui Lin <yongrlin@google.com>
Co-authored-by: David Eads <deads@redhat.com>
2025-03-12 19:51:31 -04:00
lauralorenz
256a576651 Add featuregate, feature and unit and e2e tests
Signed-off-by: lauralorenz <lauralorenz@google.com>
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2025-03-12 23:43:16 +00:00
Kubernetes Prow Robot
2261137135
Merge pull request #122550 from danwinship/tighten-ip-validation
Tighten IP/CIDR validation
2025-03-12 15:57:46 -07:00
Tim Allclair
e8547d8a54 Cleanup unused container parameter from allocation state Delete 2025-03-12 15:19:38 -07:00
Tim Allclair
05a9c06212 Don't update checkpoint file for deletion 2025-03-12 15:19:14 -07:00
Tim Allclair
30bca329c5 Don't re-write the checkpoint file when the content is unchanged 2025-03-12 15:11:39 -07:00
Tim Hockin
e856356225 Enable validation-gen on core/v1
This enables generation but does not activate the strategy calling of
declarative.
2025-03-12 18:05:20 -04:00