config_capture module

Helper module for configuration in notebooks.

aiv_utils.config_capture.dump_configuration(configuration_filepath, namespaces=None)

Captures the state of the K8s and Tango environment in a JSON file written to configuration_filepath.

Return type:

None

aiv_utils.config_capture.get_charts(namespaces)

Get the chart configuration for given namespaces.

Parameters:

namespaces (list[str]) – the namespaces to inspect

Return type:

dict

Returns:

a (json) dict

aiv_utils.config_capture.get_pods(namespaces)

Get the pod configuration for given namespaces.

Parameters:

namespaces (list[str]) – the namespaces to inspect

Return type:

dict

Returns:

a (json) dict

aiv_utils.config_capture.get_tango_config(tango_hosts=None, attributes=())

Get tango database device server configuration.

Parameters:

tango_hosts (Optional[list[str]]) – a list of “<hostname>[:<port>]” strings

Return type:

dict

Returns:

a dictionary containing Tango configurations for each of tango_hosts