Skip to content

Commit

Permalink
Move "additional" build args from required to optional in Breeze (apa…
Browse files Browse the repository at this point in the history
…che#25567)

The "required" build args in Breeze are replaced with empty
`--build-arg arg=`. This is problematic if those parameters will
have default values set. We move them from required to optional
to skip the build args entirely when "build" command is run.
  • Loading branch information
potiuk authored Aug 6, 2022
1 parent 3fc895b commit f1d1914
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions dev/breeze/src/airflow_breeze/params/build_ci_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ def md5sum_cache_dir(self) -> Path:
@property
def required_image_args(self) -> List[str]:
return [
"additional_airflow_extras",
"additional_dev_apt_command",
"additional_dev_apt_deps",
"additional_dev_apt_env",
"additional_pip_install_flags",
"additional_python_deps",
"additional_runtime_apt_command",
"additional_runtime_apt_deps",
"additional_runtime_apt_env",
"airflow_branch",
"airflow_constraints_mode",
"airflow_constraints_reference",
Expand All @@ -88,6 +79,15 @@ def required_image_args(self) -> List[str]:
@property
def optional_image_args(self) -> List[str]:
return [
"additional_airflow_extras",
"additional_dev_apt_command",
"additional_dev_apt_deps",
"additional_dev_apt_env",
"additional_pip_install_flags",
"additional_python_deps",
"additional_runtime_apt_command",
"additional_runtime_apt_deps",
"additional_runtime_apt_env",
"dev_apt_command",
"dev_apt_deps",
"runtime_apt_command",
Expand Down
18 changes: 9 additions & 9 deletions dev/breeze/src/airflow_breeze/params/build_prod_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,6 @@ def docker_context_files(self) -> str:
@property
def required_image_args(self) -> List[str]:
return [
"additional_airflow_extras",
"additional_dev_apt_command",
"additional_dev_apt_deps",
"additional_dev_apt_env",
"additional_pip_install_flags",
"additional_python_deps",
"additional_runtime_apt_command",
"additional_runtime_apt_deps",
"additional_runtime_apt_env",
"airflow_branch",
"airflow_constraints_mode",
"airflow_extras",
Expand All @@ -227,6 +218,15 @@ def required_image_args(self) -> List[str]:
@property
def optional_image_args(self) -> List[str]:
return [
"additional_airflow_extras",
"additional_dev_apt_command",
"additional_dev_apt_deps",
"additional_dev_apt_env",
"additional_pip_install_flags",
"additional_python_deps",
"additional_runtime_apt_command",
"additional_runtime_apt_deps",
"additional_runtime_apt_env",
"dev_apt_command",
"dev_apt_deps",
"runtime_apt_command",
Expand Down

0 comments on commit f1d1914

Please sign in to comment.