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

pkg/ready: Make set/unset idempotent #1761

Merged
merged 3 commits into from
Aug 7, 2019

Conversation

djzager
Copy link
Contributor

@djzager djzager commented Jul 31, 2019

Closes #1760

Description of the change:

Make the ready package idempotent.

Motivation for the change:

As a user, I would expect the cases where I set the operator as ready or unset the operator's readiness to be a no-op in the cases that the operator is already in said state.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 31, 2019
@joelanford
Copy link
Member

@djzager Can you update the CHANGELOG to document this change?

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/ready/ready.go Outdated Show resolved Hide resolved
pkg/ready/ready.go Outdated Show resolved Hide resolved
@jmrodri
Copy link
Member

jmrodri commented Aug 1, 2019

@djzager make the changes that @estroz mentioned and I will ack.

Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 5, 2019
@djzager
Copy link
Contributor Author

djzager commented Aug 5, 2019

@estroz do you have any more changes you would like for me to make?

Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@jmrodri jmrodri merged commit 222f6cb into operator-framework:master Aug 7, 2019
@djzager djzager deleted the ready-fix branch August 20, 2019 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fileReady is not idempotent
6 participants