{
  "name": "argocd-sync",
  "title": "Sync an Argo CD application",
  "description": "Tell Argo CD to sync an application to its Git source and wait until the sync finishes and the application is healthy. Logs in with an API token from a Kubernetes Secret.",
  "category": "Kubernetes",
  "tags": [
    "kubernetes",
    "python"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "app",
    "server-url",
    "insecure",
    "prune",
    "revision",
    "timeout",
    "token-secret-key",
    "token-secret-name",
    "wait-for-health"
  ],
  "images": [
    "cgr.dev/chainguard/python@sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/argocd-sync.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/argocd-sync/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/argocd-sync/",
  "entrypoint": "sync",
  "parameterDetails": [
    {
      "name": "app",
      "title": "App",
      "description": "Name of the Argo CD application.",
      "type": "string",
      "required": true,
      "example": "checkout-api"
    },
    {
      "name": "server-url",
      "title": "Server url",
      "description": "Address of the Argo CD server, with https://.",
      "type": "string",
      "required": true,
      "example": "https://argocd.example.com"
    },
    {
      "name": "insecure",
      "title": "Insecure",
      "description": "Set to \"true\" to skip TLS certificate checks, for a server with a self-signed certificate.",
      "type": "string",
      "required": false,
      "default": "false",
      "enum": [
        "true",
        "false"
      ]
    },
    {
      "name": "prune",
      "title": "Prune",
      "description": "Set to \"true\" to delete resources that are no longer in Git.",
      "type": "string",
      "required": false,
      "default": "false",
      "enum": [
        "true",
        "false"
      ]
    },
    {
      "name": "revision",
      "title": "Revision",
      "description": "Git revision to sync to. Leave blank to use the revision the application tracks.",
      "type": "string",
      "required": false,
      "default": ""
    },
    {
      "name": "timeout",
      "title": "Timeout",
      "description": "Seconds to wait for the sync, counted again from the same start for health.",
      "type": "string",
      "required": false,
      "default": "300"
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "description": "Key in that Secret that holds the token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Name of the Kubernetes Secret that holds an Argo CD API token.",
      "type": "string",
      "required": false,
      "default": "argocd-auth"
    },
    {
      "name": "wait-for-health",
      "title": "Wait for health",
      "description": "Set to \"true\" to wait for the application to report Healthy after the sync.",
      "type": "string",
      "required": false,
      "default": "true",
      "enum": [
        "true",
        "false"
      ]
    }
  ],
  "imageDetails": [
    {
      "ref": "cgr.dev/chainguard/python@sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c",
      "repository": "cgr.dev/chainguard/python",
      "tag": "latest-dev",
      "digest": "sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/argocd-sync/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/argocd-sync/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/argocd-sync",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
