Oodles was engaged to improve deployment logic for a Google Cloud Platform (GCP) environment by implementing a configuration-based flag system. The objective was to provide users with a choice to either clean the existing GCP setup or reuse it, but only if the existing setup matched the defined configuration parameters. The feature aimed to safeguard against unauthorized resets and misaligned infrastructure setups.
The client required enhancements to the main.py script to introduce a user-controlled flag (1 or 0) for managing GCP deployments. If the flag was set to 1, the system would clean the current setup; if set to 0, it had to validate the current infrastructure against the values in a local config.json file (such as number of nodes) before proceeding. In case of mismatches, a clear error message had to be shown to prevent unintended overwrites. The solution needed to integrate seamlessly with the existing deploy-sut.sh script and GCP APIs.
To meet the client’s configuration control needs, Oodles delivered:
main.py
with a binary flag (1/0) for deployment logic controldeploy-sut.sh
for cleaning GCP setup when flag = 1config.json
with actual GCP state via API