Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions veadk/cli/cli_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ def deploy(
"No requirements.txt found in the user project, we will use a default one."
)

# avoid upload user's config.yaml
if (user_proj_abs_path / "config.yaml").exists():
logger.warning(
f"Find a config.yaml in {user_proj_abs_path}/config.yaml, we will not upload it by default."
)
shutil.move(agent_dir / "config.yaml", Path(TEMP_PATH) / tmp_dir_name)
else:
logger.info(
"No config.yaml found in the user project. Some environment variables may not be set."
)

# load
logger.debug(
f"Load deploy module from {Path(TEMP_PATH) / tmp_dir_name / 'deploy.py'}"
Expand Down
6 changes: 5 additions & 1 deletion veadk/integrations/ve_faas/ve_faas.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ def _create_function(self, function_name: str, path: str):
envs=envs,
)
)
logger.debug(f"Function creation response: {res}")

# avoid print secrets
logger.debug(
f"Function creation in {res.project_name} project with ID {res.id}"
)

function_id = res.id

Expand Down