Open Tom-Slattery opened 4 months ago
@Tom-Slattery You can already do galasactl properties get --namespace xxx --format yaml
And you can find the list of namespaces with a galasactl properties namespaces get
Is that not good enough for now ?
I've created a script that walks through all the namespaces and gets the properties out and adds them to a file, I think it would be nicer to have something that properly exports everything to a file from Galasactl
Story
As a Galasa Ecosystem Administrator I want to be able to export all CPS properties used in the Ecosystem, so that I am able to use a configuration as code approach to maintaining the ecosystem.
Background
I am looking to implement a config as code approach to CPS properties where a properties file is applied to the Ecosystem from a GitHub repo. This gives us the ability to control the changes applied to the ecosystem and to roll back if necessary (for this to be effective we would also need to implement Role Based Access to usage of the "galasactl properties set" command - opening a separate issue for that).
To do this, initially I will need to export all the properties for all namespaces (except secure).
I am hoping for a command something like this:
galasactl resources export --format yaml