Add oc set deployment-strategy command.
@juanvallejo is already working on this.
Since Oct 10, 2018.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.