Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kubernetes/api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master@{1day}
Choose a base ref
...
head repository: kubernetes/api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 8 files changed
  • 2 contributors

Commits on Sep 26, 2025

  1. feat(resource): Add maxItems validation for DeviceClass selectors

    This commit introduces a validation rule to limit the number of selectors
    in a DeviceClass to 32. This is done by adding the `+k8s:maxItems=32`
    marker to the DeviceClassSpec and running the code generator.
    
    The following changes are included:
    - Updated `staging/src/k8s.io/api/resource/v*/types.go` with the validation marker.
    - Regenerated validation code in `pkg/apis/resource/v*/zz_generated.validations.go`.
    - Improved error message in `pkg/apis/resource/validation/validation.go`.
    - Added tests in `pkg/registry/resource/deviceclass/declarative_validation_test.go`
      to cover the new validation.
    
    Kubernetes-commit: e693da729066f1f773973f02a2da4f9475562aab
    lalitc375 authored and k8s-publishing-bot committed Sep 26, 2025
    Configuration menu
    Copy the full SHA
    3629141 View commit details
    Browse the repository at this point in the history
  2. feat(resource): Add maxItems validation for DeviceClass configs

    Kubernetes-commit: 515b579945ab54ef4e008a9fbe6d3bb19123594d
    lalitc375 authored and k8s-publishing-bot committed Sep 26, 2025
    Configuration menu
    Copy the full SHA
    83618ea View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2025

  1. Merge pull request #134302 from lalitc375/device-class-selectors

    feat(resource): Add validation for DeviceClass selectors and configs
    
    Kubernetes-commit: ab89efc573d01f4836d64d50ff1958a833c543d0
    k8s-publishing-bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    3d16ea6 View commit details
    Browse the repository at this point in the history
Loading