GoogleCloudPlatform / cloud-ops-sandbox

Cloud Operations Sandbox is an open source collection of tools that helps practitioners to learn O11y and R9y practices from Google and apply them using Cloud Operations suite of tools.
Apache License 2.0
406 stars 148 forks source link

Reduce a number of scripts that implement Sandbox CLI #987

Closed minherz closed 1 year ago

minherz commented 2 years ago

Description

Consolidate CLI implementation inside two scripts

Host the scripts in the (new) /cli folder. The script execution logic that is based on the relative location of the scripts should be adjusted accordingly. Call Bash script from Python script for executing "create" and "delete" operations. Migrate all implementations of "recipes" operations into Python script. Implement telemetry for "create" and "delete" operations in the Bash script using gcloud pubsub CLI. Implement telemetry for "recipes" operations in Python script using gcloud pubsub CLI.

Keep Python required packages to minimum. Update markdown documentation to reflect how Sandbox can be installed.

Warning This feature breaks "one-click" deployment because it requires installing Python dependencies and running sandboxctl as two separate commands.