Skip to content

Commit

Permalink
Merge pull request 2i2c-org#4141 from AIDEA775/deployer-skip-update
Browse files Browse the repository at this point in the history
deployer: add --skip-update flag to deploy command
  • Loading branch information
yuvipanda authored Jul 4, 2024
2 parents fcc2ba4 + 36c2ca1 commit 3f39a80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion deployer/commands/deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,17 @@ def deploy(
"--dry-run",
help="""When present, the `--dry-run` flag will be passed to the `helm upgrade` command.""",
),
skip_refresh: bool = typer.Option(
False,
"--skip-refresh",
help="""When present, the helm charts and schemas will not be updated.""",
),
):
"""
Deploy one or more hubs in a given cluster
"""
validate_cluster_config(cluster_name)
validate_hub_config(cluster_name, hub_name)
validate_hub_config(cluster_name, hub_name, skip_refresh)

config_file_path = find_absolute_path_to_cluster_file(cluster_name)
with open(config_file_path) as f:
Expand Down
4 changes: 3 additions & 1 deletion deployer/commands/validate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ def cluster_config(
def hub_config(
cluster_name: str = typer.Argument(..., help="Name of cluster to operate on"),
hub_name: str = typer.Argument(None, help="Name of hub to operate on"),
skip_refresh: bool = typer.Argument(False, help="Skip the helm dep update"),
):
"""
Validates the provided non-encrypted helm chart values files for each hub of
a specific cluster.
"""
_prepare_helm_charts_dependencies_and_schemas()
if not skip_refresh:
_prepare_helm_charts_dependencies_and_schemas()

config_file_path = find_absolute_path_to_cluster_file(cluster_name)

Expand Down

0 comments on commit 3f39a80

Please sign in to comment.