Skip to content

Refactor 'deploy' code to be server-side for reuse by all clients #6980

Closed

Description

@jcantrill

JBossTools is looking to add 'redeploy' functionality to the IDE which requires a java client side impl that essentially duplicates: https://github.com/openshift/origin/blob/master/pkg/cmd/cli/cmd/deploy.go#L208

Would like to start making this and other cli logic to a server endpoint.

Activity

  1. bparees commented on Feb 3, 2016

    @bparees
    Contributor

    @openshift/api-review is there any chance of this being accepted?

  2. smarterclayton commented on Feb 3, 2016

    @smarterclayton
    Contributor

    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.

  3. smarterclayton commented on Feb 3, 2016

    @smarterclayton
    Contributor

    They want an imperative API? Can we describe exactly the action they'd want to take?

  4. jcantrill commented on Feb 5, 2016

    @jcantrill
    ContributorAuthor

    @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=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

  5. 0xmichalis commented on Jan 30, 2017

    @0xmichalis
    Contributor

    --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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions