Skip to content

Conversation

@khrm
Copy link
Contributor

@khrm khrm commented Dec 16, 2025

Changes

The 'hack/update-codegen.sh' script is failing with 'streaming_list_type_json_tags' API rule violations when we update knative/pkg.

Refer: #9043

This was caused by incorrect JSON tags on list types that prevented them from being correctly interpreted as streaming lists by the Kubernetes API.

This commit fixes the following:

  • Removes ',omitempty' from the 'Items' field in the v1 and v1beta1 PipelineRunList structs.
  • Adds ',omitempty' to the 'ListMeta' field in the v1beta1 ResolutionRequestList struct.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Dec 16, 2025
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 16, 2025
@khrm
Copy link
Contributor Author

khrm commented Dec 16, 2025

/kind misc

@tekton-robot tekton-robot added the kind/misc Categorizes issue or PR as a miscellaneuous one. label Dec 16, 2025
@khrm
Copy link
Contributor Author

khrm commented Dec 16, 2025

/assign @vdemeester @afrittoli @waveywaves

@khrm
Copy link
Contributor Author

khrm commented Dec 16, 2025

Refer this PR: https://github.com/tektoncd/pipeline/pull/9043/commits

We had to fix this for codegen to work there.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 17, 2025
@vdemeester
Copy link
Member

/retest

1 similar comment
@afrittoli
Copy link
Member

/retest

Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2025
@waveywaves
Copy link
Member

/retest

The 'hack/update-codegen.sh' script was failing with
'streaming_list_type_json_tags' API rule violations.

This was caused by incorrect JSON tags on list types that prevented
them from being correctly interpreted as streaming lists by the
Kubernetes API.

This commit fixes the following:
- Removes ',omitempty' from the 'Items' field in the v1 and v1beta1
  PipelineRunList structs.
- Adds ',omitempty' to the 'ListMeta' field in the v1beta1
  ResolutionRequestList struct.
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2025
@khrm
Copy link
Contributor Author

khrm commented Dec 17, 2025

LGTM got removed due to rebasing with main. @waveywaves @afrittoli Can you put it again?

@afrittoli
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2025
@tekton-robot tekton-robot merged commit 273a659 into tektoncd:main Dec 17, 2025
24 checks passed
@khrm khrm deleted the json-tag-stream branch December 17, 2025 15:50
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. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants