Dagweave catalog

Run a Redis command

redis-commandv1.0.0updated 2026-07-171 version

Run a command against a Redis server with redis-cli, using an AUTH password read from a Kubernetes Secret.

Install v1.0.0

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml

Facts

Category
Databases
Tags
databases redis
Entrypoint
run
Template SHA-256
afc41bab5e864a3d8ecf6bc9307530708c30698f349a0c92dcb58c9ae088387c
Source
redis-command at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
redisnone recordedsha256:21090af93f8324db2f0f0f4f38a7c60369d47d917e000c3423d89d2ae2883537

Parameters

NameDescriptionDefault
command required The Redis command to run.
Example GET
none
host required Redis server host.
Example redis.default.svc
none
args Space-separated arguments for the command.
Example mykey myvalue
empty
password-secret-key Key within the Secret that holds the password. password
password-secret-name Name of the Kubernetes Secret holding the AUTH password. redis-password
port Redis server port. 6379

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: redis-command
  labels:
    dagweave.io/catalog-item: redis-command
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "Databases"
spec:
  entrypoint: run
  templates:
    - name: run
      inputs:
        parameters:
          # Redis server host.
          - name: host
          # Redis server port.
          - name: port
            default: "6379"
          # The Redis command to run (e.g. GET, SET, LPUSH).
          - name: command
          # Space-separated arguments for the command (e.g. "mykey myvalue").
          - name: args
            default: ""
          # Name of the Kubernetes Secret holding the AUTH password. Defaults let a
          # user leave them blank in the Inspector.
          - name: password-secret-name
            default: redis-password
          - name: password-secret-key
            default: password
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # redis:8-alpine (ships redis-cli)
        image: redis@sha256:21090af93f8324db2f0f0f4f38a7c60369d47d917e000c3423d89d2ae2883537
        command: [sh, -c]
        # Host, port, command and args are passed as env vars (below), never
        # interpolated from Argo into the shell, so they carry no injection risk.
        # redis-cli reads the AUTH password from REDISCLI_AUTH, so it never appears on
        # the command line. $COMMAND and $ARGS are intentionally left unquoted so the
        # args string is split into separate redis-cli arguments.
        args:
          - |
            set -eu
            redis-cli -h "$HOST" -p "$PORT" $COMMAND $ARGS
        env:
          - name: HOST
            value: "{{inputs.parameters.host}}"
          - name: PORT
            value: "{{inputs.parameters.port}}"
          - name: COMMAND
            value: "{{inputs.parameters.command}}"
          - name: ARGS
            value: "{{inputs.parameters.args}}"
          - name: REDISCLI_AUTH
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.password-secret-name}}"
                key: "{{inputs.parameters.password-secret-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.0 latest 2026-07-17

    Initial release.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/redis-command/1.0.0/template.yaml

    version document, template.yaml

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/redis-command \
  -p command=GET \
  -p host=redis.default.svc

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: redis-command-
spec:
  workflowTemplateRef:
    name: redis-command
  arguments:
    parameters:
      - name: command
        value: "GET"
      - name: host
        value: "redis.default.svc"

As a step of a larger workflow

steps:
  - - name: redis-command
      templateRef:
        name: redis-command
        template: run