Skip to content

Need a way to promote deployment to deployment config and other way around #16763

Open

Description

@mfojtik

Upstream deployments are almost identical feature wise with our deployment configs (except hooks and custom strategy). Additionally upstream deployments does not run deployer job which makes them faster to rollout, but less feature rich (hooks).

It would be nice to have a command to convert a deployment config into deployment or promote a deployment to deployment config if users need more features (hooks/custom deployments).

This command should be able to run in batch (I want to convert all deployment configs without hooks to deployments including converting the ICT to annotation trigger and setting lookup policy for images?).

@smarterclayton @Kargakis @tnozicka

Activity

  1. added this to the milestone on Oct 9, 2017
  2. self-assigned this
    on Oct 9, 2017
  3. mfojtik commented on Oct 9, 2017

    @mfojtik
    ContributorAuthor

    brainstorming:

    $ oc switch dc/foo --to=apps/deployment
    $ oc switch deploymentconfigs --to=apps/deployment --exclude-custom --exclude-hooks
    $ oc switch deployment/foo --to=apps.openshift.io/deploymentconfig 
  4. 0xmichalis commented on Oct 9, 2017

    @0xmichalis
    Contributor

    We already have oc convert, we are just missing the conversions.

  5. smarterclayton commented on Oct 9, 2017

    @smarterclayton
    Contributor
  6. mfojtik commented on Oct 10, 2017

    @mfojtik
    ContributorAuthor

    Also think about converting all DC RC into RS and other way around.

  7. tnozicka commented on Oct 10, 2017

    @tnozicka
    Contributor

    also you might have just the file and you want to run the converted object or just save it:

    oc convert dc -f dc.yaml --to=apps/deployment -o yaml | oc create -f -
    oc convert dc -f dc.yaml --to=apps/deployment -o yaml > deployment.yaml
    
  8. mfojtik commented on Oct 10, 2017

    @mfojtik
    ContributorAuthor

    @tnozicka you might want to also convert all dc in your cluster to deployments but only dc without hooks which is making that command chain more complicated. Not mentioning that you might want to set a lookup for the image the DC is using to make deployment trigger work.

    I think I agree with @smarterclayton that we need a first class command (dc->d, route->igress, rc ->rs, etc...).

  9. openshift-bot commented on Feb 22, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  10. added
    lifecycle/stale
    on Feb 22, 2018
  11. openshift-bot commented on Mar 24, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  12. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Mar 24, 2018
  13. tnozicka commented on Apr 5, 2018

    @tnozicka
    Contributor

    /lifecycle frozen

  14. added
    lifecycle/frozen
    on Apr 5, 2018
  15. 0xmichalis commented on Apr 5, 2018

    @0xmichalis
    Contributor

    /remove-lifecycle rotten

  16. removed
    lifecycle/rotten
    on Apr 5, 2018
  17. fasho commented on Oct 18, 2019

    @fasho

    Is this idea still in works?

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

Metadata

Metadata

Assignees

Labels

component/appslifecycle/frozenpriority/P2sig/master

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions