You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor 'deploy' code to be server-side for reuse by all clients #6980
I would expect to be able to make a REST call with something like:
https://localhost:8443/oapi/v1/mynamespace/deploymentconfig/foo/deploy?version=latest
or maybe: https://localhost:8443/oapi/v1/mynamespace/deploymentconfig/foo/deploy?cancel=true
and its logic is the same as our CLI and provides the same outcome
--latest runs on the server now, --retry and --cancel need to be discussed upstream as part of the more general discussion around custom deployments. --enable-triggers won't end up in the server anytime soon (although I am entertaining the idea of a Trigger as a TPR but that won't happen anytime soon too).
Activity
bparees commentedon Feb 3, 2016
@openshift/api-review is there any chance of this being accepted?
smarterclayton commentedon Feb 3, 2016
Triggering a deploy? Yes - except that we're going to want to do it based on the integration with the upstream deployment API and controllers.
smarterclayton commentedon Feb 3, 2016
They want an imperative API? Can we describe exactly the action they'd want to take?
jcantrill commentedon Feb 5, 2016
@smarterclayton Not sure what you are asking here but an api that would provide:
oc deploy DEPLOYMENTCONFIG [--latest|--retry|--cancel|--enable-triggers]I would expect to be able to make a REST call with something like:
https://localhost:8443/oapi/v1/mynamespace/deploymentconfig/foo/deploy?version=latestor maybe:
https://localhost:8443/oapi/v1/mynamespace/deploymentconfig/foo/deploy?cancel=trueand its logic is the same as our CLI and provides the same outcome
0xmichalis commentedon Jan 30, 2017
--latest runs on the server now, --retry and --cancel need to be discussed upstream as part of the more general discussion around custom deployments. --enable-triggers won't end up in the server anytime soon (although I am entertaining the idea of a Trigger as a TPR but that won't happen anytime soon too).