def get_secret_configs()

in liminal/kubernetes/secret_util.py [0:0]


def get_secret_configs(liminal_config):
    secrets_config = liminal_config.get('secrets', [])

    for volume_config in secrets_config:
        if 'secret' in volume_config and 'local_path_file' not in volume_config:
            secret_path = f"{os.getcwd()}/credentials-{volume_config['secret']}.txt"
            open(secret_path, 'a').close()
            volume_config['local_path_file'] = secret_path
    return secrets_config