feat: add --converge-checks flag for updates
This commit is contained in:
@ -969,8 +969,9 @@ def deploy(recipes: Tuple[str], execute_hooks: bool, force: bool, converge_check
|
||||
@click.option('-e', '--execute-hooks', is_flag=True, help='run post-upgrade commands.')
|
||||
@click.option('-d', '--dry-run', is_flag=True, help="don't execute the upgrade process")
|
||||
@click.option('-rd', '--redeploy', is_flag=True, help="use undeploy and deploy for the updating process")
|
||||
@click.option('-c', '--converge-checks', is_flag=True, help='perform convergence checks during deployment.')
|
||||
@click.option('noninteractive', '-n', '--non-interactive', is_flag=True, help='Run this command non-interactively')
|
||||
def upgrade(recipes: Tuple[str], execute_hooks: bool, dry_run: bool, redeploy: bool, noninteractive: bool) -> None:
|
||||
def upgrade(recipes: Tuple[str], execute_hooks: bool, dry_run: bool, redeploy: bool, converge_checks: bool, noninteractive: bool) -> None:
|
||||
"""
|
||||
Upgrades specified applications by executing the upgrade commands via the 'abra' command-line interface.
|
||||
It checks the current deployment status of the apps and performs upgrades only where necessary, with options to execute additional commands or perform a dry run. It either took the target version from the configuration or it uses the latest available version.
|
||||
@ -987,7 +988,7 @@ def upgrade(recipes: Tuple[str], execute_hooks: bool, dry_run: bool, redeploy: b
|
||||
if not upgrade_version:
|
||||
upgrade_version = get_latest_version(app)
|
||||
upgrade_cmd = ["upgrade", "-n"]
|
||||
if not execute_hooks:
|
||||
if not execute_hooks and not converge_checks:
|
||||
upgrade_cmd.append("--no-converge-checks")
|
||||
upgrade_cmd.append(domain)
|
||||
if deployed_version == 'unknown':
|
||||
|
||||
Reference in New Issue
Block a user