Brsherwi/refacatordeploy
Type of PR
- Code changes
Purpose
This PR is a rewrite of the bash shell scripts for the e2e_samples/parking_sensors so that the scripts are more modular and easier to maintain. They were rewritten to be functions and not sequential scripts. When values are required, they are queried rather than necessarily passed in as environment values. This makes the scripts able to be restarted if there is a failure at some step in the deployment process.
Author pre-publish checklist
- [X] No PII in logs
Validation steps
- Run the
deploy.shscript from the root folder. - If you choose, press
ctrl+cto stop the script at any point and restart it. - Additionally, you could run individual scripts from the
scriptsfolder.
I had a quick look through.. looks great! I like how you wrapped things in functions so it's what the script is doing. Also, I also like the pattern of looking up what was deployed (similar to using the bicep existing).
Walk through with @bsherwin and it all looks good to me.
Attaching image of successful deploy
Matt Luker doesn't have write access to approve, but we walkthrough a pair code review. @jose-perales or @devlace can you give a write approval?