openshift / openshift/origin

Add oc set deployment-strategy command.

Open
#17,462 4 comments 4 reactions 2 assignees View on GitHub

@juanvallejo is already working on this.

Since Oct 10, 2018.

area/usability component/cli lifecycle/frozen priority/P3
Dominant language
Go
Stars
8.7k
Forks
4.8k
Avg merge
4d 10h
Merged PRs (30d)
53

Description

The only way I know of for changing deployment strategy from command line is using oc edit or oc patch. There really should be an oc set deployment-strategy option to allow the strategy to be changed, as well as set other parameters of dc.spec.strategy.

It is a common enough problem when only having RWO persistent volumes, of needing to swap the deployment strategy to Recreate to avoid pods hanging due to persistent volume not being able to be mounted against multiple nodes.

Being able to run:

oc set deployment-strategy dc/blog --strategy Recreate

is more understandable than having to run:

oc patch dc/blog --patch '{"spec":{"strategy":{"type":"Recreate"}}}'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.