Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
1.5K

argocd-rollout argocd-rollout

This pipeline plugin trigger a rollout for ArgoCD app

arguments

  • additional_flags_for_wait_cmd - Additional flags for argocd app wait command ( like --grpc-web, so on )
  • app_name - The argocd application to wait health status
  • context - Name of argocd context from integrations
  • debug - Debug sync command ( print in terminal )
  • host - Host for argo integration, examlple https://argo. Used only when context is not provided!
  • k8s_context - Kubernetes context
  • password - Password of argo integration. Used only when context is not provided!
  • rollout_name - The name of the rollout to be promoted
  • rollout_namespace - The namespace of the rollout
  • skip_wait_rollout - Skip wait rollout
  • username - Username of argo integration. Used only when context is not provided!
  • wait_healthy - Specify whether to wait for sync to be completed (in canary consider wait for suspended status)
    promote_rollout:
  title: Promote Argo rollout
  type: argocd-rollout
  arguments:
    k8s_context: '${{K8S_CONTEXT}}'
    rollout_name: '${{ROLLOUT_NAME}}'
    rollout_namespace: '${{ROLLOUT_NAMESPACE}}'
    context: argocd
    app_name: '${{ARGOCD_APP_NAME}}'
    wait_healthy: true

  
    promote_rollout_without_context:
  title: Promote Argo rollout
  type: argocd-rollout
  arguments:
    k8s_context: '${{K8S_CONTEXT}}'
    rollout_name: '${{ROLLOUT_NAME}}'
    rollout_namespace: '${{ROLLOUT_NAMESPACE}}'

  
github.com
Nazar Rohozhuk
May 19, 2023