{
  "name": "wait-for-rollout",
  "title": "Wait for rollout",
  "category": "Kubernetes",
  "tags": [
    "kubectl",
    "kubernetes"
  ],
  "version": "1.0.6",
  "date": "2026-10-19",
  "notes": "Repin bitnami/kubectl:latest on the tag's current digest. What is still open against it is recorded in hack/image-cve-exceptions.txt. Same tool, same arguments; nothing about what the step runs changes.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/wait-for-rollout/1.0.6.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/wait-for-rollout/1.0.6/template.yaml",
  "entrypoint": "wait",
  "parameters": [
    {
      "name": "name",
      "title": "Name",
      "type": "string",
      "required": true
    },
    {
      "name": "kind",
      "title": "Kind",
      "description": "Rollout-capable kind: deployment, statefulset, or daemonset.",
      "type": "string",
      "required": false,
      "default": "deployment"
    },
    {
      "name": "namespace",
      "title": "Namespace",
      "type": "string",
      "required": false,
      "default": "default"
    },
    {
      "name": "timeout",
      "title": "Timeout",
      "description": "Max time to wait, e.g. 300s or 5m.",
      "type": "string",
      "required": false,
      "default": "300s"
    }
  ],
  "images": [
    {
      "ref": "bitnami/kubectl@sha256:bedd34c910e2a5ce9836813d16444af449d7fe07a29136d59f34e861e8e660c5",
      "repository": "bitnami/kubectl",
      "tag": "latest",
      "digest": "sha256:bedd34c910e2a5ce9836813d16444af449d7fe07a29136d59f34e861e8e660c5"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/wait-for-rollout/1.0.6/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/wait-for-rollout/1.0.6/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: wait-for-rollout\n  labels:\n    dagweave.io/catalog-item: wait-for-rollout\n  annotations:\n    dagweave.io/catalog-version: \"1.0.6\"\n    dagweave.io/catalog-category: \"Kubernetes\"\nspec:\n  entrypoint: wait\n  templates:\n    - name: wait\n      metadata:\n        annotations:\n          # Dagweave Local reads these off the body, the only part of an item that lands in a user's file.\n          dagweave.io/local-support: unsupported\n          dagweave.io/local-support-reason: \u003e-\n            kubectl rollout status has to read and watch the workload before it can wait\n            on it. On Dagweave Local the pod runs as the default service account of the\n            hidden cluster's argo namespace, which holds nothing in the apps group, so\n            that read is refused and the step fails on a 403 without ever waiting for\n            anything. The rollout you meant to watch is on a cluster this run cannot\n            reach.\n      inputs:\n        parameters:\n          # Rollout-capable kind: deployment, statefulset, or daemonset.\n          - name: kind\n            default: deployment\n          - name: name\n          - name: namespace\n            default: default\n          # Max time to wait, e.g. 300s or 5m.\n          - name: timeout\n            default: 300s\n      container:\n        # bitnami/kubectl:latest\n        image: bitnami/kubectl@sha256:bedd34c910e2a5ce9836813d16444af449d7fe07a29136d59f34e861e8e660c5\n        command: [sh, -c]\n        # Blocks until the rollout completes or the timeout elapses, using the\n        # in-cluster serviceAccount.\n        args:\n          - |\n            set -eu\n            kubectl rollout status \"${KIND}/${NAME}\" -n \"${NAMESPACE}\" --timeout=\"${TIMEOUT}\"\n        env:\n          - name: KIND\n            value: \"{{inputs.parameters.kind}}\"\n          - name: NAME\n            value: \"{{inputs.parameters.name}}\"\n          - name: NAMESPACE\n            value: \"{{inputs.parameters.namespace}}\"\n          - name: TIMEOUT\n            value: \"{{inputs.parameters.timeout}}\"\n",
  "templateSha256": "3191ce2ec9133a0deb86ff23c42837ff21d7f4551e99b96cfea75d00802d4fbd",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/wait-for-rollout",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
