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

✨ Implement IgnoreNotFound #428

Merged

Conversation

adracus
Copy link
Contributor

@adracus adracus commented May 14, 2019

implement IgnoreNotFound that ignores NotFound errors
create test cases

Fixes #357

This allows to easily ignore NotFound errors which is often required in case where it's just necessary to see that a resource is gone.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 14, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 14, 2019
@adracus
Copy link
Contributor Author

adracus commented May 14, 2019

/assign @DirectXMan12

@DirectXMan12
Copy link
Contributor

/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 May 16, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adracus, DirectXMan12

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2019
@mengqiy
Copy link
Member

mengqiy commented May 17, 2019

@adracus Travis is failing, please fix

implement `IgnoreNotFound` that ignores `NotFound` errors
create test cases
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2019
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot merged commit 3511f3c into kubernetes-sigs:master May 17, 2019
@adracus
Copy link
Contributor Author

adracus commented May 17, 2019

Don't really know why this now immediately got merged... I just fixed the build locally, then the Travis build failed since the PR was already closed

@adracus adracus deleted the feature.ignore-not-found branch May 17, 2019 09:23
@adracus
Copy link
Contributor Author

adracus commented May 17, 2019

Ok however the merge commit's build passed:
https://travis-ci.org/kubernetes-sigs/controller-runtime/builds/533710159

DirectXMan12 pushed a commit that referenced this pull request Jan 31, 2020
Add missing type to ContainerSetStatus example
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. 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.

controllerutil: Add DeleteIfExists and TryUpdate / TryUpdateStatus
4 participants