Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure empty lists don't return nil items fields #39834

Merged
merged 1 commit into from
Jan 13, 2017

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented Jan 13, 2017

Fixes #39822

Fixes API compatibility issue with empty lists incorrectly returning a null `items` field instead of an empty array.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 13, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@liggitt
Copy link
Member Author

liggitt commented Jan 13, 2017

@smarterclayton PTAL

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Jan 13, 2017
@liggitt liggitt added release-note Denotes a PR that will be considered when it comes time to generate release notes. cherrypick-candidate and removed release-note-label-needed labels Jan 13, 2017
@liggitt liggitt added this to the v1.5 milestone Jan 13, 2017
@smarterclayton
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 13, 2017
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit effeb20 into kubernetes:master Jan 13, 2017
@liggitt liggitt deleted the empty-list branch January 13, 2017 15:56
k8s-github-robot pushed a commit that referenced this pull request Jan 14, 2017
Automatic merge from submit-queue

Only set empty list for list types

If List() impls return non-list objects (like Status objects), we shouldn't try to set them to an empty list

follow up to #39834
@saad-ali saad-ali added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jan 17, 2017
k8s-github-robot pushed a commit that referenced this pull request Jan 18, 2017
…#39886-upstream-release-1.5

Automatic merge from submit-queue

Automated cherry pick of #39834 #39886

Cherry pick of #39834 #39886 on release-1.5.

```release-note
Fixes API compatibility issue with empty lists incorrectly returning a null `items` field instead of an empty array.
```

#39834: Ensure empty lists don't return nil items fields
#39886: Only set empty list for list types
@k8s-cherrypick-bot
Copy link

Commit found in the "release-1.5" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants