Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
12330a6
Drop BoundedFrequencyRunner from pkg/util/async
danwinship Jul 1, 2025
6655994
Add e2eendpointslice.WaitForEndpointSlices, use it in a few places
danwinship Jun 3, 2025
b7998a3
Add e2eendpointslice.WaitForEndpointCount, use it in some network tests
danwinship Jun 3, 2025
dbecdd1
Use e2eendpointslice.WaitForEndpointCount in more network tests
danwinship Jun 3, 2025
b35ad4e
Add e2eendpointslice.WaitForEndpointPods, use in various test
danwinship Jun 3, 2025
2406578
Add e2eendpointslice.WaitForEndpointPorts, use in some tests.
danwinship Jun 8, 2025
5486e6f
DRAAdminAccess: move to beta
ritazh Jul 20, 2025
38a9a8a
e2e: node: podresources: add tests for missing pod
ffromani Jul 22, 2025
303a705
e2e: node: podresources: enable multi-container tests
ffromani Jul 22, 2025
e2c308a
Check OS for PodLevelResources in API server
annasong20 Jun 28, 2025
c2b2661
Check OS for PodLevelResources in kubelet
annasong20 Jul 2, 2025
88af8b6
Add PodLevelResources to the Windows OS limitations in the API doc
toVersus Jul 22, 2025
61cc6cf
draadminaccess test make it serial
ritazh Jul 23, 2025
765d84e
Test only EndpointSlices, not Endpoints, in dual-stack e2e tests
danwinship Jun 10, 2025
a806e06
Remove WinDSR feature gate unit test
rzlink Jul 23, 2025
c7bf3b8
Add flake debugging for admission test
liggitt Jul 23, 2025
5f4a1aa
chore: ptrTo util removal with ptr.To
ylink-lfs Jul 24, 2025
6ad14ad
Merge pull request #132991 from danwinship/endpoints-e2e-updates
k8s-ci-robot Jul 24, 2025
9adc49f
Merge pull request #133046 from toVersus/reject-windows-in-api-server
k8s-ci-robot Jul 24, 2025
dd6fa8b
Merge pull request #133129 from ffromani/podres-get-add-tests
k8s-ci-robot Jul 24, 2025
48f9786
Merge pull request #133146 from liggitt/debug-flake
k8s-ci-robot Jul 24, 2025
051dd70
Merge pull request #133149 from ritazh/draadminaccess-test
k8s-ci-robot Jul 24, 2025
84df53a
Merge pull request #133150 from rzlink/windsr
k8s-ci-robot Jul 24, 2025
c7d6c09
List available endpoints for kube-apiserver (#132581)
itssimrank Jul 24, 2025
01c5535
Merge pull request #133085 from ritazh/DRAAdminAccess_beta
k8s-ci-robot Jul 24, 2025
df696c3
Merge pull request #132657 from danwinship/drop-bfr
k8s-ci-robot Jul 24, 2025
ff657e1
Merge pull request #133159 from ylink-lfs/chore/ptrto_migration
k8s-ci-robot Jul 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/openapi-spec/v3/api__v1_openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/openapi-spec/v3/apis__apps__v1_openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/openapi-spec/v3/apis__batch__v1_openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/apis/core/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3739,6 +3739,7 @@ type PodSpec struct {
// - spec.hostPID
// - spec.hostIPC
// - spec.hostUsers
// - spec.resources
// - spec.securityContext.appArmorProfile
// - spec.securityContext.seLinuxOptions
// - spec.securityContext.seccompProfile
Expand Down
16 changes: 12 additions & 4 deletions pkg/apis/core/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4444,7 +4444,7 @@ func ValidatePodSpec(spec *core.PodSpec, podMeta *metav1.ObjectMeta, fldPath *fi
allErrs = append(allErrs, validateEphemeralContainers(spec.EphemeralContainers, spec.Containers, spec.InitContainers, vols, podClaimNames, fldPath.Child("ephemeralContainers"), opts, &spec.RestartPolicy, hostUsers)...)

if opts.PodLevelResourcesEnabled {
allErrs = append(allErrs, validatePodResources(spec, podClaimNames, fldPath.Child("resources"), opts)...)
allErrs = append(allErrs, validatePodResources(spec, podClaimNames, fldPath, opts)...)
}

allErrs = append(allErrs, validatePodHostNetworkDeps(spec, fldPath, opts)...)
Expand Down Expand Up @@ -4535,17 +4535,25 @@ func validatePodResources(spec *core.PodSpec, podClaimNames sets.Set[string], fl
if spec.Resources == nil {
return nil
}
resourcesFldPath := fldPath.Child("resources")
if spec.OS != nil && spec.OS.Name == core.Windows {
// Do not include more detailed errors on the resources field value
// if the resources field may not be set on the target OS.
return field.ErrorList{
field.Forbidden(resourcesFldPath, "may not be set for a windows pod"),
}
}

allErrs := field.ErrorList{}

if spec.Resources.Claims != nil {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("claims"), "claims cannot be set for Resources at pod-level"))
allErrs = append(allErrs, field.Forbidden(resourcesFldPath.Child("claims"), "claims may not be set for Resources at pod-level"))
}

// validatePodResourceRequirements checks if resource names and quantities are
// valid, and requests are less than limits.
allErrs = append(allErrs, validatePodResourceRequirements(spec.Resources, podClaimNames, fldPath, opts)...)
allErrs = append(allErrs, validatePodResourceConsistency(spec, fldPath)...)
allErrs = append(allErrs, validatePodResourceRequirements(spec.Resources, podClaimNames, resourcesFldPath, opts)...)
allErrs = append(allErrs, validatePodResourceConsistency(spec, resourcesFldPath)...)
return allErrs
}

Expand Down
Loading