@classmethod<EOL><INDENT>def get_stores_secrets_volumes(cls, stores_secrets):<DEDENT>
volumes = []<EOL>volume_mounts = []<EOL>for store_secret in stores_secrets:<EOL><INDENT>store = store_secret['<STR_LIT:store>']<EOL>if store in {GCS, S3}:<EOL><INDENT>secrets_volumes, secrets_volume_mounts = get_volume_from_secret(<EOL>volume_name=cls.STORE_SECRET_VOLUME_NAME.format(store),<EOL>mount_path=cls.STORE_SECRET_KEY_MOUNT_PATH.format(store),<EOL>secret_name=store_secret['<STR_LIT>'],<EOL>)<EOL>volumes += secrets_volumes<EOL>volume_mounts += secrets_volume_mounts<EOL><DEDENT><DEDENT>return volumes, volume_mounts<EOL>
Handles the case of GCS and S3 and create a volume with secret file.