{
  "name": "scale-deployment",
  "title": "Scale deployment",
  "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/scale-deployment/1.0.6.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/scale-deployment/1.0.6/template.yaml",
  "entrypoint": "scale",
  "parameters": [
    {
      "name": "name",
      "title": "Deployment name",
      "type": "string",
      "required": true
    },
    {
      "name": "replicas",
      "title": "Replicas",
      "description": "Target replica count.",
      "type": "string",
      "required": true,
      "default": "1"
    },
    {
      "name": "namespace",
      "title": "Namespace",
      "type": "string",
      "required": false,
      "default": "default"
    }
  ],
  "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/scale-deployment/1.0.6/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/scale-deployment/1.0.6/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: scale-deployment\n  labels:\n    dagweave.io/catalog-item: scale-deployment\n  annotations:\n    dagweave.io/catalog-version: \"1.0.6\"\n    dagweave.io/catalog-category: \"Kubernetes\"\nspec:\n  entrypoint: scale\n  templates:\n    - name: scale\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            This step shells out to kubectl scale with whatever identity the pod is\n            given. On Dagweave Local that is the default service account of the hidden\n            cluster's argo namespace, whose permissions cover pods, workflows and Argo's\n            own task objects, and nothing in the apps group. There is no Deployment it\n            can read or patch, so the step fails on a 403 rather than scaling anything\n            by accident. The Deployment you meant is on a cluster this run cannot reach.\n      inputs:\n        parameters:\n          - name: name\n          - name: namespace\n            default: default\n          - name: replicas\n            default: \"1\"\n      container:\n        # bitnami/kubectl:latest\n        image: bitnami/kubectl@sha256:bedd34c910e2a5ce9836813d16444af449d7fe07a29136d59f34e861e8e660c5\n        command: [sh, -c]\n        # Scales a Deployment to N replicas using the in-cluster serviceAccount.\n        args:\n          - |\n            set -eu\n            kubectl scale deployment \"${NAME}\" -n \"${NAMESPACE}\" --replicas=\"${REPLICAS}\"\n        env:\n          - name: NAME\n            value: \"{{inputs.parameters.name}}\"\n          - name: NAMESPACE\n            value: \"{{inputs.parameters.namespace}}\"\n          - name: REPLICAS\n            value: \"{{inputs.parameters.replicas}}\"\n",
  "templateSha256": "db34ddb89b8acf08ea568c7a62799b01b46af11faf4563043c9a00cb5ea6317e",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/scale-deployment",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
