From f15558a930cf5391d0679362fc9f7f77e61f088d Mon Sep 17 00:00:00 2001 From: Morten Andersen Date: Fri, 1 May 2026 11:40:58 +0200 Subject: [PATCH] ci(deploy): parameterize ArgoCD sync wait timeout [NOJIRA] Replaces the hard-coded 300s ArgoCD sync timeout in component-deploy-v2 with a configurable `argocd-sync-wait-seconds` input (default: 300), and passes it through from deploy-kotlin-v2. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/component-deploy-v2.yml | 7 ++++++- .github/workflows/deploy-kotlin-v2.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/component-deploy-v2.yml b/.github/workflows/component-deploy-v2.yml index ea151ac..a1c9ce4 100644 --- a/.github/workflows/component-deploy-v2.yml +++ b/.github/workflows/component-deploy-v2.yml @@ -42,6 +42,11 @@ on: required: false type: string description: 'ArgoCD application name prefix (without stage). Defaults to service-identifier. Used for kube-manifests lookup (apps/{argocd-app-name}/{stage}/...) and ArgoCD app name ({argocd-app-name}-{stage}).' + argocd-sync-wait-seconds: + required: false + default: 300 + type: number + description: 'Timeout duration in seconds to wait for ArgoCD sync to apply' secrets: MANIFEST_REPO_PAT: required: true @@ -247,7 +252,7 @@ jobs: app-name: ${{ format('{0}-{1}', inputs.argocd-app-name || inputs.service-identifier, inputs.stage) }} auth-token: ${{ secrets.ARGOCD_TOKEN }} revision: ${{ steps.manifest-sha.outputs.sha }} - timeout: 300 + timeout: ${{ inputs.argocd-sync-wait-seconds }} manifest-repo: monta-app/${{ inputs.repository-name || format('service-{0}', inputs.service-identifier) }} github-token: ${{ secrets.MANIFEST_REPO_PAT }} - name: Publish result message to slack diff --git a/.github/workflows/deploy-kotlin-v2.yml b/.github/workflows/deploy-kotlin-v2.yml index 4c18cf9..239271f 100644 --- a/.github/workflows/deploy-kotlin-v2.yml +++ b/.github/workflows/deploy-kotlin-v2.yml @@ -271,6 +271,7 @@ jobs: repository-name: ${{ inputs.repository-name }} argocd-server: ${{ inputs.argocd-server }} argocd-app-name: ${{ inputs.argocd-app-name }} + argocd-sync-wait-seconds: ${{ inputs.argocd-sync-wait-seconds }} secrets: MANIFEST_REPO_PAT: ${{ secrets.MANIFEST_REPO_PAT }} SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}