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
Bug 1500930 - Prevent multiple deprovision pods from spawning if a job is already in progress #488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VISACK
nice work adding that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, worked for me in my testing.
|
Test steps:
Before fix:After fix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thank you for the test @djzager ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I like it. My only nit was the JobStateAPBMethodTypeVersionAddMoreText but that's it.
pkg/apb/types.go
Outdated
|
|
||
| // JobStateAPBMethodTypeUnbind - Unbind MethodType const. | ||
| JobStateAPBMethodTypeUnbind JobStateAPBMethodType = "unbind" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the variable type a little longer? OOF! add this to tech debt :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JobMethodProvision JobMethod = "provision"
|
Merging as others have tested this. |
…b is already in progress (openshift#488) * Add APBMethodType to JobStates * Add dao support for job retrievals * Return correct reponse for depro in progress * Make linter happy * Use saner names
Describe what this PR does and why we need it:
Returns the correct 202 Accepted response if a deprovision job is already in progress for a requested ServiceInstance DELETE.