Skip to content

fix(generators): detect inline fields structurally instead of matching ",inline" tag#587

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
aramase:aramase/f/fix_generators_inline
Apr 14, 2026
Merged

fix(generators): detect inline fields structurally instead of matching ",inline" tag#587
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
aramase:aramase/f/fix_generators_inline

Conversation

@aramase
Copy link
Copy Markdown
Member

@aramase aramase commented Apr 8, 2026

Determine whether a field should be inlined based on whether it is embedded and has an empty json tag name, rather than checking for the literal ",inline" json tag option which is not a real encoding/json directive.

This allows types to use json:"" instead of json:",inline" on embedded fields like TypeMeta, ObjectMeta, and ListMeta.

xref: kubernetes/kubernetes#138260

…g ",inline" tag

Determine whether a field should be inlined based on whether it is
embedded and has an empty json tag name, rather than checking for the
literal ",inline" json tag option which is not a real encoding/json
directive.

This allows types to use `json:""` instead of `json:",inline"` on
embedded fields like TypeMeta, ObjectMeta, and ListMeta.
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 8, 2026
@aramase
Copy link
Copy Markdown
Member Author

aramase commented Apr 8, 2026

/assign @liggitt

@aramase
Copy link
Copy Markdown
Member Author

aramase commented Apr 8, 2026

/assign @jpbetz

for review and approval

@liggitt
Copy link
Copy Markdown
Member

liggitt commented Apr 9, 2026

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 9, 2026
@Jefftree
Copy link
Copy Markdown
Member

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aramase, Jefftree, liggitt

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2026
@k8s-ci-robot k8s-ci-robot merged commit ec9c827 into kubernetes:master Apr 14, 2026
6 checks passed
@aramase aramase deleted the aramase/f/fix_generators_inline branch April 14, 2026 16:39
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.

5 participants