Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployer: add --skip-refresh flag to deploy command #4141

Merged
merged 3 commits into from
Jul 4, 2024
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
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