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

⚠️ Fakeclient: Reject Update with outdated ResourceVersion #832

Conversation

alvaroaleman
Copy link
Member

This PR changes the fakeclient to:

  • Refuse Create requests with RV set
  • Refuse Update requests with outdated RV

Note that while this brings the fakeclient more in line with a real client, it is a breaking change and has a good chance of breaking ppls tests.

/assign @vincepri

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 27, 2020
Copy link
Contributor

@djzager djzager left a comment

Choose a reason for hiding this comment

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

Couple of nits. Will look again later.

pkg/client/fake/client.go Outdated Show resolved Hide resolved
pkg/client/fake/client_test.go Outdated Show resolved Hide resolved
@alvaroaleman alvaroaleman force-pushed the fakeclient-refuse-update-with-outdated-rv branch from e4eef7d to 052af23 Compare February 28, 2020 12:50
@vincepri
Copy link
Member

vincepri commented Mar 3, 2020

/milestone v0.6.0
/approve
/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 3, 2020
@vincepri
Copy link
Member

vincepri commented Mar 3, 2020

Holding for v0.6

pkg/client/fake/client.go Outdated Show resolved Hide resolved
@alvaroaleman alvaroaleman force-pushed the fakeclient-refuse-update-with-outdated-rv branch from 052af23 to 25ef372 Compare March 5, 2020 20:05
Copy link
Member

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

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

/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 Mar 5, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, mengqiy, vincepri

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

The pull request process is described here

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

@vincepri
Copy link
Member

/hold cancel

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/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.

None yet

5 participants