opencompose
opencompose copied to clipboard
Add support for deployment strategy
In kompose development we discovered some issues with deployment strategy, like if a pod had volumeMounts and it had deployment strategy as RollingUpdate it would cause issues there.
So I propose we do similar things here in OpenCompose, if a pod has volumeMounts we change the deployment strategy to Recreate.
We can do something similar that is done in kompose.
Deployment Strategy:
$ oc explain deployment.spec.strategy
RESOURCE: strategy <Object>
DESCRIPTION:
The deployment strategy to use to replace existing pods with new ones.
DeploymentStrategy describes how to replace existing pods with new ones.
FIELDS:
rollingUpdate <Object>
Rolling update config params. Present only if DeploymentStrategyType =
RollingUpdate.
type <string>
Type of deployment. Can be "Recreate" or "RollingUpdate". Default is
RollingUpdate.