Skip to content

Expand listType=set linter to disallow all non-scalars - #253

Merged
kubernetes-prow[bot] merged 1 commit into
mainfrom
ssatags-forbid-array-element-set
Jul 16, 2026
Merged

Expand listType=set linter to disallow all non-scalars#253
kubernetes-prow[bot] merged 1 commit into
mainfrom
ssatags-forbid-array-element-set

Conversation

@jpbetz

@jpbetz jpbetz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

In kubernetes/kubernetes#140293 (review) it was noticed that CRDs allow listType=set for not only objects, but also slices and maps.

Due to the lack of SSA support, we would like to discourage use of non-scalar sets. We intend to ban the use for the native types in Kubernetes since none of the REST API types yet use non-scalar sets.

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 15, 2026
@kubernetes-prow
kubernetes-prow Bot requested review from JoelSpeed and sivchari July 15, 2026 20:09
@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 15, 2026
@jpbetz

jpbetz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

cc @JoelSpeed

@jpbetz

jpbetz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

cc @liggitt

@JoelSpeed JoelSpeed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Sounds reasonable to me

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 16, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed, jpbetz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot merged commit 092fe0c into main Jul 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants