Agentic Data Plane

rpk ai sandbox-template diff

Dry-run of apply for sandbox templates. Prints, per manifest, whether apply would create, update (and which fields), or leave the resource unchanged. Exits non-zero when any change is pending, so CI can gate on no drift.

Every writable field is compared, including the ones a manifest omits: an omitted field is drift when live differs from what a create would have produced. What diff does not detect is a resource that exists live but is absent from the manifests (no prune).

Usage

rpk ai sandbox-template diff -f <file|dir|-> [flags]

Examples

This section provides examples of how to use rpk ai sandbox-template diff.

python.yaml

name: sandboxTemplates/python
display_name: Python
idle_timeout: 1800s
image: docker.io/library/python@sha256:<digest>
resources:
  cpu_millicores: 500
  memory_bytes: 536870912
rpk ai sandbox-template diff -f python.yaml
rpk ai sandbox-template apply -f python.yaml

Flags

Value Type Description

-f, --filename

strings

manifest file, directory, or - for stdin (repeatable).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.