Simple demo code for Blue Green Deployments
Using an env var; set the application to display a blue square
oc env dc/bluegreen COLOR=blue
Same as you did above; set it to a green square with
oc env dc/bluegreen COLOR=green
The app defaults to blue unless you set it to green. Any other string or empty COLOR var will default the square to blue