-
Notifications
You must be signed in to change notification settings - Fork 84
initial clean-up of deployment API #2395
base: master
Are you sure you want to change the base?
initial clean-up of deployment API #2395
Conversation
c633a4e to
9c5c0cb
Compare
xcoulon
left a comment
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.
this was a huge "chainsaw" operation, @corinnekrych!
Indeed! ✂️ 💇 |
| // now delete the OpenShift resources associated with this space on an | ||
| // OpenShift cluster, unless otherwise specified | ||
| if ctx.SkipCluster == nil || !*ctx.SkipCluster { | ||
| err = deleteOpenShiftResource(c.DeploymentsClient, config, ctx.Context, spaceID) |
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.
How are deployments deleted if not through the API?
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.
yeap, indeed another services will have to deal with deployment resources.
This is the purpose of this PR remove deployment out of wit.
In an event-driven world, an event sent for delete space would triggered a subscribed deployment service.
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.
The deleteOpenshiftResource method fails a lot of times and we already have an issue to fix it openshiftio/openshift.io#4657. Since @kwk will be implementing an improved version of space deletion (in future), I'm in favour of deleting this method.
kwk
left a comment
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.
|
@corinnekrych , could you please verify that on the UI side, this API is really not used ( experimental / non experimental views ) ? |
|
to be merged after fabric8-ui/fabric8-ui#3502 |
|
@sbose78 @jarifibrahim since UI PR is merged 🎉 could we have another review on this one and potentially merge it? |
jarifibrahim
left a comment
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.
Thank you for cleaning up the code :)
| // now delete the OpenShift resources associated with this space on an | ||
| // OpenShift cluster, unless otherwise specified | ||
| if ctx.SkipCluster == nil || !*ctx.SkipCluster { | ||
| err = deleteOpenShiftResource(c.DeploymentsClient, config, ctx.Context, spaceID) |
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.
The deleteOpenshiftResource method fails a lot of times and we already have an issue to fix it openshiftio/openshift.io#4657. Since @kwk will be implementing an improved version of space deletion (in future), I'm in favour of deleting this method.

fixes https://openshift.io/openshiftio/Openshift_io/plan/detail/1315