Based on the content in the url…
Private research annotation
Sign in to add a private research label or note.
- User
Based on the content in the url https://www.getambassador.io/docs/argo/latest/howtos/deployment-to-rollout , generate a shell script which takes in a deployment manifest and creates a rollout manifest. The script should take deployment manifest, rollout strategy, Weight and pause duration as a command line inputs.
- Assistant
- User
generate a shell script which takes in a deployment manifest and creates a rollout manifest based on the deployment manifest. The script should take deployment manifest, rollout strategy, Weight and pause duration as a command line inputs.
- Assistant
Sure, here is an example shell script in Bash that takes a deployment manifest file path, rollout strategy, weight, and pause duration as command line inputs, and generates a rollout manifest based on the deployment manifest:
- User
generate a shell script which takes in a deployment manifest and creates a argo rollout manifest based on the deployment manifest. The script should handle both canary and bluegreen rollout strategies. The script should take deployment manifest, rollout strategy, Weight and pause duration as a command line inputs. Please note that the output is for using with Argo Rollouts.
- Assistant
- User
Your first version of the shell script was more apt. I am looking for something on similar lines
- Assistant
- User
The value of STRATEGY_FIELDS in the above shell script is incorrect for BlueGreen Strategy. Can you fix it ?
- Assistant
You are correct, I apologize for the mistake. Here is an updated version of the script with the correct for the BlueGreen strategy: