-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to redeploy a non blue-green application #367
Comments
I've just got the same issue with a non blue/green application. My DeploymentConfig definition was something like this :
It seems that once a DeploymentConfig resource is deployed, it cannot be patched if the labels defined in I removed the dynamic parts this section and it worked ! 🎉
Once deployed and patched :
|
What if we use the |
It doesn't work (see @lunika's comment in Possible solution) |
So, in case of version upgrade, should we delete and then create the object instead of patching it? |
If we do it that way (delete / create), all interesting features of the DeploymentConfig (like rollback or deployment strategies) will not be usable. What do you think about the solution i proposed ? |
If thought it was a test to understand the issue, not a solution per se 😅 So if we follow your recommendation, we will loose version labels in pods, right? Knowing that the information is in the image tag, I think it's a reasonable approach. |
You're right, we lose the version label in pods but we keep it in deploymentconfig. |
Bug Report
Expected behavior/code
When I deploy an application with blue-green settings set to false and parameters changed in a template (
DeploymentConfig
mostly), I expect a to deploy without error with a rolling-update strategyActual Behavior
The deploy fail with this kind of error:
Steps to Reproduce
Environment
Possible Solution
I tried to use the
force
parameter in the stepOpenShift deployments with deployment_stamp[{{ deployment_stamp }}] must be {{ deployment_state | default('present') }}
inmanage_app.yml
task but I have a new error I don't really understand:The text was updated successfully, but these errors were encountered: