34.3K

argocd-sync argocd-sync

This pipeline plugin trigger a sync for ArgoCD app

arguments

  • additional_flags - Additional flags for argocd command ( like --grpc-web, so on )
  • additional_flags_for_wait_cmd - Additional flags for argocd app wait command ( like --grpc-web, so on )
  • app_name - The argocd application to be synced
  • context - Name of argocd context from integrations
  • debug - Debug sync command ( print in terminal )
  • env_name - Environment from codefresh for auto sync
  • host - Host for argo integration, examlple https://argo. Used only when context is not provided!
  • password - Password of argo integration. Used only when context is not provided!
  • prune - Allow deleting unexpected resources
  • revision - Sync to a specific revision. Preserves parameter overrides
  • rollback - Do rollback to previous rollout if wait command get failed
  • sync - Specify whether to trigger an ArgoCD sync
  • username - Username of argo integration. Used only when context is not provided!
  • wait_for_suspend - Specify whether to wait for application suspended status
  • wait_healthy - Specify whether to wait for sync to be completed (in canary consider wait for suspended status)
    sync_and_wait:
  title: Sync ArgoCD app and wait
  type: argocd-sync
  arguments:
    context: argo-demo
    app_name: demo_app

  
    sync_and_wait_with_flags:
  title: Sync ArgoCD app and wait
  type: argocd-sync
  arguments:
    context: argo-demo
    app_name: demo_app
    additional_flags: '--loglevel debug --timeout 1200 --grpc-web --grpc-web-root-path /argocd'

  
github.com
Nazar Rohozhuk
Oct 19, 2021